summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/tools
diff options
context:
space:
mode:
authorsimonb <simonb@NetBSD.org>2021-07-24 13:42:05 +0000
committersimonb <simonb@NetBSD.org>2021-07-24 13:42:05 +0000
commitfbbd738fbc8351223020a8d24be4a990fa04e52d (patch)
tree4b9ec8567f6588aa553a865fa5d72ec2847d9e83 /sys/dev/microcode/tools
parented96ce5a703b9cfa0d51df38a48d7a183d72ebc4 (diff)
Instead of getting an estimate of the number of kernel buffers,
allocating memory for them, requesting all the metadata contents of these buffers (and repeating in the unlikely case of the number of buffers increasing too much since the estimate) and then straight away throwing all the contents out just to count how many buffers there were, just get the initial estimate from the kernel and subtract the slop. Reduces system CPU usage of "systat vm" by approx 80% for any system with a reasonable number of buffers.
Diffstat (limited to 'sys/dev/microcode/tools')
0 files changed, 0 insertions, 0 deletions