From owner-freebsd-hackers Fri Jul 27 17: 3:40 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.122.47]) by hub.freebsd.org (Postfix) with ESMTP id 43A6037B403 for ; Fri, 27 Jul 2001 17:03:35 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.11.3/8.10.1) with ESMTP id f6S03ei84974; Fri, 27 Jul 2001 17:03:40 -0700 (PDT) Date: Fri, 27 Jul 2001 17:03:40 -0700 (PDT) From: Doug White To: Tabor Kelly Cc: Subject: Re: Collecting System Statistics Programatically In-Reply-To: <1801448262.20010727135401@dsl-only.net> Message-ID: X-All-Your-Base: are belong to us MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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