From owner-freebsd-ia64 Tue Mar 4 14: 1:50 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 50C6D37B401 for ; Tue, 4 Mar 2003 14:01:49 -0800 (PST) Received: from palrel10.hp.com (palrel10.hp.com [156.153.255.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id B414043FBD for ; Tue, 4 Mar 2003 14:01:48 -0800 (PST) (envelope-from rick_jones2@hp.com) Received: from tardy.cup.hp.com (tardy.cup.hp.com [15.244.44.58]) by palrel10.hp.com (Postfix) with ESMTP id 591F91C020B8 for ; Tue, 4 Mar 2003 14:01:48 -0800 (PST) Received: from hp.com (localhost [127.0.0.1]) by tardy.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id OAA23582 for ; Tue, 4 Mar 2003 14:01:47 -0800 (PST) Message-ID: <3E65224B.1DE56ADF@hp.com> Date: Tue, 04 Mar 2003 14:01:47 -0800 From: Rick Jones Reply-To: raj@cup.hp.com Organization: the Unofficial HP X-Mailer: Mozilla 4.79 [en] (X11; I; HP-UX B.11.00 9000/785) X-Accept-Language: en MIME-Version: 1.0 To: ia64@FreeBSD.ORG Subject: Re: initial netperf tests on rx2600 References: <3E6401FD.E2B384E3@hp.com> <20030304201227.GA523@athlon.pn.xcllnt.net> <3E65180A.8B39FA19@hp.com> <15973.7537.476710.330402@grasshopper.cs.duke.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 > 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. Looks like sys/resource.h will define the structure if I do a -D_KERNEL. I may "cheat" and copy the structure def into my own code. (btw, what predefine by the comiler should I be useing for FreeBSD? while I am at it I _may_ try to add BSD sendfile support for the TCP_SENDFILE test) the sysctl(3) manpage doesn't mention cp_time as being part of the CTL_KERN set - probably a manpage oversight? > 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). eeeew, /dev/kmem :) I try to avoid that now :) > 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. ah yes, the cookies - I'll have to get back to sending those out one of these days - probably after I manage to revamp the www.netperf.org site - which probably won't happen until my tribute to the second system effect and mythical manmonth - netperf4 - is ready :) rick -- Wisdom Teeth are impacted, people are affected by the effects of events. these opinions are mine, all mine; HP might not want them anyway... :) feel free to post, OR email to raj in cup.hp.com but NOT BOTH... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message