Frequency vs. power consumption
Posted Feb 29, 2012 18:05 UTC (Wed) by jzbiciak
(✭ supporter ✭
In reply to: Frequency vs. power consumption
Parent article: The Linaro Connect scheduler minisummit
I just amused myself wondering what a good API would be for hinting to the OS about this... Maybe not madvise(MADV_CACHE_THRASHY) (for the simple reason that it's an attribute of the task, not an attribute of a memory page), but then what?
On a more serious note, I wonder if the OS could use hardware performance counters to auto-detect this sort of stuff. If the ratio of stall to execute cycles is above a certain threshold, decrease the task's desired clock speed, and if it's above another threshold, increase it. Hmmm....
to post comments)