Re: Alternate cpu policy on battery

2021-10-03 Thread Stefan Sperling
On Sat, Sep 25, 2021 at 08:26:06PM +0200, Solene Rapenne wrote: > +void > +setperf_powersaving(void *v) > +{ > + static uint64_t *idleticks, *totalticks; [...] > + > + if (!idleticks) > + if (!(idleticks = mallocarray(ncpusfound, sizeof(*idleticks), > +

Re: Alternate cpu policy on battery

2021-10-02 Thread prx
Hello, I've been using this diff for a week now. I didn't encounter any issue. As my laptop has a quite old battery, I noticed improvements : I can work 30min longer on battery now. The systemp is a bit slower though (ie libreoffice longer to start), but that was expected and I must say I didn't

Alternate cpu policy on battery

2021-09-25 Thread Solene Rapenne
Last time I proposed a CPU frequency scheduling change to make it more performance oriented, however this would hurt badly the battery life for nomad users. As we don't like tweaks and complicated settings, I create a new CPU frequency policy that is oriented for nomad users, it reduces