summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/memmove.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2014-07-19 00:26:03 +0000
committerdelphij <delphij@FreeBSD.org>2014-07-19 00:26:03 +0000
commita40e35ce6bf95caeab6ee509a1dc5ca3d9334e39 (patch)
treebca472fb6edd1be99716ae956b3e5d8881d2d305 /lib/libc/string/memmove.c
parentc9de77e94aa98ff1b2d1c7edae7bb9af52c347b8 (diff)
downloadFreeBSD-src-a40e35ce6bf95caeab6ee509a1dc5ca3d9334e39.zip
FreeBSD-src-a40e35ce6bf95caeab6ee509a1dc5ca3d9334e39.tar.gz
Reduce lock contention on the z_teardown_lock under heavily cached
read workload by splitting the single teardown rrw lock into RRM_NUM_LOCKS (17) of them. Read acquisitions are randomly distributed among these locks based on curthread pointer. Write acquisitions are going to all the locks, which for the usage of this type of lock should be rare. Illumos issue: 5008 lock contention (rrw_exit) while running a read only load MFC after: 2 weeks
Diffstat (limited to 'lib/libc/string/memmove.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud