:vm.swapdev1.total (this is the one that is currently hard to get)
You can't move swapinfo into the kernel as a sysctl unless you
solve this problem. Traversing the radix tree is expensive enough
that the entire system will stall for a short period of time if you run
the loop in the kernel.
The issue here is that swapinfo tries to break the useage down by
swap area, whereas the kernel has no real concept of swap areas
in the allocation map -- it just sees one big contiguous allocation
map. So the kernel does not track allocations on a per-swap-area
basis.
This is why 'swapinfo' (aka pstat -s) takes so long to run.
-Matt
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message