From owner-freebsd-stable@FreeBSD.ORG Tue Apr 12 16:52:28 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C0EC1065670 for ; Tue, 12 Apr 2011 16:52:28 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 0FB2C8FC15 for ; Tue, 12 Apr 2011 16:52:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id p3CGqPHc060450; Wed, 13 Apr 2011 02:52:25 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Wed, 13 Apr 2011 02:52:24 +1000 (EST) From: Ian Smith To: Daniel Gerzo In-Reply-To: <4DA37E31.4020700@FreeBSD.org> Message-ID: <20110413024230.Y35056@sola.nimnet.asn.au> References: <4D9EEDAF.3020803@rulez.sk> <20110411125416.S35056@sola.nimnet.asn.au> <4DA37E31.4020700@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-stable@freebsd.org Subject: Re: powerd / cpufreq question X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2011 16:52:28 -0000 On Tue, 12 Apr 2011, Daniel Gerzo wrote: > On 11.4.2011 6:08, Ian Smith wrote: > > > > As you see, total of differences for each cpu is here 89 ticks, but I've > > no idea of the interval between your two readings, or your value of HZ? > > the interval may have been around 1-2 seconds. > My value of HZ is default, 1000. Ok, seems it depends on stathz, not HZ, so 89'd be less than 1 second if your stathz is 128 .. I gather that may be changed with the 9.x timers? > > Are those kern.cp_times values as they came, or did you remove trailing > > zeroes? Reason I ask is that on my Thinkpad T23, single-core 1133/733 > > MHz, sysctl kern.cp_time shows the usual 5 values, but kern.cp_times has > > the same 5 values for cpu0, but then 5 zeroes for each of cpu1 through > > cpu31, on 8.2-PRE about early January. I need to update the script to > > remove surplus data for non-existing cpus, but wonder if the extra data > > also appeared on your 12 core box? > > I haven't removed anything, it's a pure copy&paste. Thanks. I'll check the single-cpu case again after updating to 8.2-R cheers, Ian