Date: Sat, 06 Aug 2005 19:33:02 +0200 From: "Philip S. Schulz" <ph.schulz@gmx.de> To: Joost Bekkers <joost@jodocus.org> Cc: questions@freebsd.org Subject: Re: measuring avg cpu speed while powerd(8) is running Message-ID: <42F4F44E.9060804@gmx.de> In-Reply-To: <20050806170133.GA14870@bps.jodocus.org> References: <20050806170133.GA14870@bps.jodocus.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42F4F44E.9060804>