From owner-freebsd-questions@FreeBSD.ORG Sat Aug 6 17:33:20 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 503E916A41F for ; Sat, 6 Aug 2005 17:33:20 +0000 (GMT) (envelope-from ph.schulz@gmx.de) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 42AA743D46 for ; Sat, 6 Aug 2005 17:33:18 +0000 (GMT) (envelope-from ph.schulz@gmx.de) Received: (qmail invoked by alias); 06 Aug 2005 17:33:17 -0000 Received: from p54A44075.dip0.t-ipconnect.de (EHLO [192.168.1.35]) [84.164.64.117] by mail.gmx.net (mp003) with SMTP; 06 Aug 2005 19:33:17 +0200 X-Authenticated: #1954550 Message-ID: <42F4F44E.9060804@gmx.de> Date: Sat, 06 Aug 2005 19:33:02 +0200 From: "Philip S. Schulz" User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050724) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joost Bekkers References: <20050806170133.GA14870@bps.jodocus.org> In-Reply-To: <20050806170133.GA14870@bps.jodocus.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: questions@freebsd.org Subject: Re: measuring avg cpu speed while powerd(8) is running X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Aug 2005 17:33:20 -0000 Joost Bekkers wrote: > Hi > > Is there a way to calculate (over eg. a 5 minute interval) the average amount > the cpu was throttled? In this case by powerd(8). > No, powerd currently reads the CPU usage periodically and adjusts the clock speed based on the current CPU idle value. You can somewhat influence the behavior with the options described in the powerd man page. powerd does not keep a history of CPU usage and it does not record the adjustments it makes. However, you could kind of record powerd activities by starting it with the -v option and redirect stdout to a file. > I was thinking there might be a counter/timer which is linked to the cpu clock, > but sofar I haven't been able to find one. > Well, you can see the current CPU frequency by looking at dev.cpu.0.freq where 0 is the id of the CPU you want to query. Regards, Phil.