From owner-freebsd-hackers Sat Mar 11 23:39:53 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from kalypso.iqm.unicamp.br (kalypso.iqm.unicamp.br [143.106.51.1]) by hub.freebsd.org (Postfix) with ESMTP id 9859B37B817 for ; Sat, 11 Mar 2000 23:39:50 -0800 (PST) (envelope-from vazquez@iqm.unicamp.br) Received: by kalypso.iqm.unicamp.br (V-MTA, from userid 105) id 3B6D37268B; Sun, 12 Mar 2000 04:39:44 -0300 (EST) Date: Sun, 12 Mar 2000 04:39:44 -0300 From: Pedro A M Vazquez To: Kris Kennaway Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Getting CPU usage in FreeBSD Message-ID: <20000312043943.A50685@kalypso.iqm.unicamp.br> References: <200003120459.FAA54518@dorifer.heim3.tu-clausthal.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre4i In-Reply-To: ; from kris@hub.freebsd.org on Sat, Mar 11, 2000 at 11:37:18PM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG |o|... Sat, Mar 11, 2000 at 11:37:18PM -0800, Kris Kennaway ...|o| wrote: > On Sun, 12 Mar 2000, Oliver Fromme wrote: > > > Then look up the definition of kread() in the same file, and > > how the contents of cur.cp_time are used in the cpustats() > > function. Note that "cur" is a "struct statinfo", which is > > defined in /usr/include/devstat.h. The CPU states are defined > > in /usr/include/sys/dkstat.h. > > We probably should make this into a sysctl to divorce the binaries from > having to read kvm. it's already there: vm.loadavg: { 1.40 1.33 1.23 } pedro > > Kris > > ---- > In God we Trust -- all others must submit an X.509 certificate. > -- Charles Forsythe > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- .sig: license expired, contact your vendor To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message