We put these numbers in sysfs because ACPI had them. Unfortunately, the ACPI numbers are not useful. Subsequently, cpuidle changes what these numbers means. They are an instantaneous relative ranking, not a real power number. We should remove them from sysfs.
thanks, -Len > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of Sundar > Sent: Sunday, November 20, 2011 9:11 PM > To: [email protected] > Cc: [email protected] > Subject: Re: [Discuss] cpuidle readouts > > > On Sun, Nov 20, 2011 at 8:08 PM, [email protected] <[email protected]> > > wrote: > > Ok, well is there a way to measure total CPU power consumption? Maybe by > > reading sysfs? > > > > Hi, > > You will need some extensive characterization (and measurement) of the > core power w.r.t the CPU frequency and the C-state residencies. > > You could create a table of the power consumption based on the core > frequency; and then individual residencies at that frequency; you > should discount all the state beyond the C-state for the CPU when > clock gating comes into effect, if your core supports clock gating at > all. Say for example, running at the lowest frequency constrained to a > 100% CPU utilization might be the number for starters. > > Cheers! > > -- > --------- > The views expressed in this email are personal and do not necessarily > echo my employers. > _______________________________________________ > Discuss mailing list > [email protected] > http://lists.lesswatts.org/listinfo/discuss _______________________________________________ Discuss mailing list [email protected] http://lists.lesswatts.org/listinfo/discuss
