From owner-freebsd-hackers Mon Feb 28 12:22:36 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from server1.huntsvilleal.com (www.huntsvilleal.com [207.13.224.7]) by hub.freebsd.org (Postfix) with ESMTP id D682C37B857 for ; Mon, 28 Feb 2000 12:22:29 -0800 (PST) (envelope-from kris@hiwaay.net) Received: from barricuda.bsd.nws.net (kris.huntsvilleal.com [207.13.224.46]) by server1.huntsvilleal.com (8.9.3/8.9.3) with ESMTP id PAA18106; Mon, 28 Feb 2000 15:03:44 -0500 Received: from localhost (localhost [127.0.0.1]) by barricuda.bsd.nws.net (8.9.3/8.9.3) with ESMTP id OAA05165; Mon, 28 Feb 2000 14:20:58 -0600 (CST) (envelope-from kris@hiwaay.net) Date: Mon, 28 Feb 2000 14:20:48 -0600 (CST) From: Kris Kirby To: Arun Sharma Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Finding percent idle In-Reply-To: <200002261917.LAA16205@c62443-a.frmt1.sfba.home.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > As another poster pointed out, all of the FreeBSD programs (top, vmstat, > xosview, ktop) get this stuff from kvm - which is a non portable (across > different versions of FreeBSD) interface. FreeBSD also doesn't keep > these numbers on a per CPU basis on a SMP box. > > I wrote a patch for fixing the SMP case and a KLD to get them via > sysctl. With slight modifications to the KLD, you can get those values > exported via sysctl. It would be interesting to see a SMP box with an attached LCD showing load per CPU. --- Kris Kirby, KE4AHR | TGIFreeBSD... 'Nuff said. | ------------------------------------------------------- "God gave them the ability to reproduce... ... Science gave us the hope they won't." -KBK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message