]> sourceware.org Git - systemtap.git/commit
Optimize: increase the default size of the vma map hash table
authorYichun Zhang (agentzh) <yichun@openresty.com>
Wed, 21 Oct 2020 21:24:37 +0000 (14:24 -0700)
committerYichun Zhang (agentzh) <yichun@openresty.com>
Wed, 21 Oct 2020 21:27:17 +0000 (14:27 -0700)
commit03bcbc7665173c3b3968e5b91b50dd1b0e83b075
tree8a18d6f1f9933cb972d7c834b2add7052df9ee41
parent4b937c5e9d321a1495b6affe2b151db4f80f0c7f
Optimize: increase the default size of the vma map hash table

Hash conflicts is severe when the vma tracker keeps track of many
processes given the current hash table size of mere 16 buckets.
Increased it to 256 buckets by default and also make it tunable
via the macro __STP_TF_HASH_BITS.

In our test, this significantly reduces hash conflicts when
stap/staprun's -x PID option is not specified.
runtime/task_finder_vma.c
This page took 0.027261 seconds and 5 git commands to generate.