summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-02-26 20:47:52 +0000
committerrwatson <rwatson@FreeBSD.org>2007-02-26 20:47:52 +0000
commitfdcdf27f8008b78cf159fbc5e87092ebded35ab3 (patch)
tree54a8b6877ce01fc143b93df18b1783539873c273 /sys/net/bpf.c
parentdcb274ad6ec6d4ec7a925a716a97f49a4288d078 (diff)
downloadFreeBSD-src-fdcdf27f8008b78cf159fbc5e87092ebded35ab3.zip
FreeBSD-src-fdcdf27f8008b78cf159fbc5e87092ebded35ab3.tar.gz
Revise locking strategy used for UNIX domain sockets in order to improve
concurrency: - Add per-unpcb mutexes protecting unpcb connection state, fields, etc. - Replace global UNP mutex with a global UNP rwlock, which will protect the UNIX domain socket connection topology, v_socket, and be acquired exclusively before acquiring more than per-unpcb at a time in order to avoid lock order issues. In performance measurements involving MySQL, this change has little or no overhead on UP (+/- 1%), but leads to a significant (5%-30%) improvement in multi-processor measurements using the sysbench and supersmack benchmarks. Much testing by: kris Approved by: re (kensmith)
Diffstat (limited to 'sys/net/bpf.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud