Date: Tue, 30 Jan 2001 15:21:38 -0800 (PST) From: Matt Dillon <dillon@earth.backplane.com> To: Thomas Moestl <tmoestl@gmx.net> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: removing setgid kmem from top, collecting per-device swap stats Message-ID: <200101302321.f0UNLcB95520@earth.backplane.com> References: <20010130224759.A1589@crow.dom2ip.de>
next in thread | previous in thread | raw e-mail | index | archive | help
: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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101302321.f0UNLcB95520>