From owner-freebsd-stable@FreeBSD.ORG Thu Mar 10 07:35:33 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3203416A4CE for ; Thu, 10 Mar 2005 07:35:33 +0000 (GMT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16DD643D39 for ; Thu, 10 Mar 2005 07:35:33 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 0981A72DD4; Wed, 9 Mar 2005 23:35:33 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 0466672DCB; Wed, 9 Mar 2005 23:35:33 -0800 (PST) Date: Wed, 9 Mar 2005 23:35:32 -0800 (PST) From: Doug White To: Pete French In-Reply-To: Message-ID: <20050309233127.E53915@carver.gumbysoft.com> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: stable@FreeBSD.ORG Subject: Re: Just a sanity check before I sumbit a buig report X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 07:35:33 -0000 On Tue, 8 Mar 2005, Pete French wrote: > The man page for getrusage says that the frequency of the statistics > clock is given by sysconf(_SC_CLK_TCK). > > The source code to /usr/bin/time uses a function 'getstathz' to get > the frequency of the statistics clock which is does using sysctl > and KERN_CLOCKRATE 'sysctl kern.clockrate' will return this information if you don't want to write a program to do it for you :) > On my system the first returns 100Hz and the second 128Hz!!! What are the two machines? stathz is 128 on i386, 100 on sparc64, and 130 on amd64. Or thats the defaults at least. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org