Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2001 17:03:40 -0700 (PDT)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Tabor Kelly <pdxmax@dsl-only.net>
Cc:        <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: Collecting System Statistics Programatically
Message-ID:  <Pine.BSF.4.33.0107271703030.80982-100000@resnet.uoregon.edu>
In-Reply-To: <1801448262.20010727135401@dsl-only.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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
dwhite@resnet.uoregon.edu     |  www.FreeBSD.org


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?Pine.BSF.4.33.0107271703030.80982-100000>