From owner-freebsd-ia64 Tue Mar 4 13:48:45 2003 Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A427737B401 for ; Tue, 4 Mar 2003 13:48:44 -0800 (PST) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id C554243FBF for ; Tue, 4 Mar 2003 13:48:43 -0800 (PST) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.12.8/8.12.8) with ESMTP id h24LfAG1027488 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 4 Mar 2003 16:41:10 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id h24Lf5973455; Tue, 4 Mar 2003 16:41:05 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15973.7537.476710.330402@grasshopper.cs.duke.edu> Date: Tue, 4 Mar 2003 16:41:05 -0500 (EST) To: raj@cup.hp.com Cc: ia64@FreeBSD.ORG Subject: Re: initial netperf tests on rx2600 In-Reply-To: <3E65180A.8B39FA19@hp.com> References: <3E6401FD.E2B384E3@hp.com> <20030304201227.GA523@athlon.pn.xcllnt.net> <3E65180A.8B39FA19@hp.com> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Rick Jones writes: > > I think getloadavg(3) might be the one. I don't know anything about > > netperf though... > > The manpage for getloadavg seems to return just that - the load average. > While that is a measure of load, it isn't the same as the CPU util. On > HP-UX I use pstat() calls, on Linux /proc/stat, on Solaris kstat(). > I think you want the kern.cp_time sysctl. Look at sys/dkstat.h (or sys/resource.h if your source is new enough). And see the sysctl(3) man page. This provides a whole-system measurement, as taken from the kernel's statclock routine. I hacked an older version of netperf to use this on an older version of freebsd (where I had to grovel in /dev/kmem). Drew PS: I work for Myricom now. I have the (empty) bag of Famous Amos cookies you gave Feldy for the first netperf submission hanging in an honored spot in my office. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message