HomeFreeBSD

Significantly improve pf purge cpu usage by only taking locks

Description

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

Details

Committed
jmgSep 16 2018, 12:44 AM
Differential Revision
D17097: only lock row in pf purge thread when work to do
Parents
rS338697: Pull in r325478 from upstream clang trunk (by Ivan A. Kosarev):
Branches
Unknown
Tags
Unknown