From owner-freebsd-hackers Fri Jul 27 22:59: 4 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from tabby.sonn.com (tabby.sonn.com [206.79.239.6]) by hub.freebsd.org (Postfix) with ESMTP id C836E37B403 for ; Fri, 27 Jul 2001 22:59:02 -0700 (PDT) (envelope-from gersh@tabby.sonn.com) Received: from localhost (gersh@localhost) by tabby.sonn.com (8.9.3/8.9.3) with ESMTP id XAA65877; Fri, 27 Jul 2001 23:03:20 -0700 (PDT) Date: Fri, 27 Jul 2001 23:02:55 -0700 (PDT) From: Gersh To: Tabor Kelly Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Collecting System Statistics Programatically In-Reply-To: <1801448262.20010727135401@dsl-only.net> Message-ID: 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 As for memory look at the output of a vmstat -m. That will show you your kernel memory useage. For processor cycles build a profiling kernel (config -p). Look at the man pages for kgmon and gprof to see how to use the profiler. 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. > > Any help is greatly appreciated, Thank You. > > Tabor Kelly > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message