]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
thread: add more fine-grained tidhash locking
authorMateusz Guzik <mjg@FreeBSD.org>
Wed, 11 Nov 2020 08:51:04 +0000 (08:51 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Wed, 11 Nov 2020 08:51:04 +0000 (08:51 +0000)
commit26007fe37c06fe0b61634083befb7f9eb87c08c0
treebaddf8e2ab6cf050c724f111679eda8dab191f02
parentaae3547be3f9f3072cf41ed1368a488defada7c7
thread: add more fine-grained tidhash locking

Note this still does not scale but is enough to move it out of the way
for the foreseable future.

In particular a trivial benchmark spawning/killing threads stops contesting
on tidhash.
sys/kern/kern_thread.c