]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Optimize HPTS so that little work is done until we have a hpts thread that is over...
authorRandall Stewart <rrs@FreeBSD.org>
Thu, 28 Mar 2024 12:12:37 +0000 (08:12 -0400)
committerRandall Stewart <rrs@FreeBSD.org>
Thu, 28 Mar 2024 12:12:37 +0000 (08:12 -0400)
commitb7b78c1c169dd2213b4cb3e14e19c045b2c5e5af
treeb258b5ad8220d8321c39c80bd57c8b5d07cbf04b
parent1c091d11261a3c8cc3728b92760e65242c0f5949
Optimize HPTS so that little work is done until we have a hpts thread that is over the connection threshold

HPTS inserts a softclock for system call return that optimizes performance. However when
no HPTS threads need the help (i.e. when they have less than 100 or so connections) then
there should be little work done i.e. check the counter and return instead of running through
all the threads getting locks etc.ptimize HPTS so that little work is done until we have a hpts
thread that is over the connection threshold.

Reported by:    eduardo
Reviewed by:    gallatin, glebius, tuexen
Tested by:      gallatin
Differential Revision: https://reviews.freebsd.org/D44420
sys/kern/subr_trap.c
sys/netinet/tcp_hpts.c
sys/sys/systm.h