Hi, * Solene Rapenne wrote: > I'm proposing a very simple change to the automatic policy of the CPU > frequency scheduler. > > Currently, every 100ms the scheduler is doing this: > > - when the CPU load exceeds the threshold, CPU frequency is set to the > maximum and the variable downbeats is set to 5. > - when the CPU load is below the threshold, downbeats is decremented, if > it's == 0 then the CPU load is reduced to 0 > > my proposal is to change the downbeat to be adaptive to the load, instead > of setting it to 5 all the time, I propose to increment it with a limit > of 5. Instead of having the frequency set at max for 500ms (5 cycles) > every time the CPU usage is above the treshold, we will keep the > frequency high for a number of cycles depending how long it was high > (up to 5). So, in case of short CPU usage burst like opening a new MP3 > file for decoding or a click on a GUI, we have a frequency burst of > 100ms instead of 500ms. > > I've been using it for a few days, I noticed a huge battery life > improvement with no responsiveness change.
I have the patch running since the weekend (when it was first shared) and noticed that my CPU on battery spins up less often than before. I have the feeling that my battery lasts longer, however, I need to do some more measurements to have a proof. Cheers Matthias