aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorAttilio Rao <attilio@FreeBSD.org>2013-03-21 19:58:25 +0000
committerAttilio Rao <attilio@FreeBSD.org>2013-03-21 19:58:25 +0000
commitd52d7aa8714929fc0f26e605aafa38461213e606 (patch)
treeaa51b7c3f2a12fd8f27845fcf927a1320bd05fc3 /lib/libc/sys
parentb7e2b86cec795c962bccd8b47c0d14552d49e849 (diff)
downloadsrc-d52d7aa8714929fc0f26e605aafa38461213e606.tar.gz
src-d52d7aa8714929fc0f26e605aafa38461213e606.zip
Fix a bug in UMTX_PROFILING:
UMTX_PROFILING should really analyze the distribution of locks as they index entries in the umtxq_chains hash-table. However, the current implementation does add/dec the length counters for *every* thread insert/removal, measuring at all really userland contention and not the hash distribution. Fix this by correctly add/dec the length counters in the points where it is really needed. Please note that this bug brought us questioning in the past the quality of the umtx hash table distribution. To date with all the benchmarks I could try I was not able to reproduce any issue about the hash distribution on umtx. Sponsored by: EMC / Isilon storage division Reviewed by: jeff, davide MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=248591
Diffstat (limited to 'lib/libc/sys')
0 files changed, 0 insertions, 0 deletions