]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Significantly improve pf purge cpu usage by only taking locks
authorjmg <jmg@FreeBSD.org>
Sun, 16 Sep 2018 00:44:23 +0000 (00:44 +0000)
committerjmg <jmg@FreeBSD.org>
Sun, 16 Sep 2018 00:44:23 +0000 (00:44 +0000)
commit59ff9aa72cd47a8a7b3f9d98258fd66e607493d9
tree64cbabe88cb694cf685b1858209866c9ad3e7a5a
parent2430a7efe303f9a04f2ec28e542de7302fcffb65
Significantly improve pf purge cpu usage by only taking locks
when there is work to do.  This reduces CPU consumption to one
third on systems.  This will help keep the thread CPU usage under
control now that the default hash size has increased.

Reviewed by: kp
Approved by: re (kib)
Differential Revision: https://reviews.freebsd.org/D17097
sys/netpfil/pf/pf.c