On Fri, 27 Jul 2001, Tabor Kelly wrote:

> I have found how to collect limited system statistics with
> sysctlbyname(), but I need to know how to do more. In specific I need
> to know how much memory is being used, and what percentage of
> processor cycles are being used.

You can get memory utilization stats from sysctl; look in the 'vm' group.

CPU usage still has to come from kmem I think. Check the vmstat / top
code.

Doug White                    |  FreeBSD: The Power to Serve
[EMAIL PROTECTED]     |  www.FreeBSD.org


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to