Date: Fri, 02 Dec 2005 10:02:22 -0800 From: Nate Lawson <nate@root.org> To: Marco Calviani <marco.calviani@gmail.com> Cc: freebsd-acpi@freebsd.org, freebsd-stable@freebsd.org, freebsd-questions@freebsd.org Subject: Re: cpufreq and changing driver Message-ID: <43908C2E.9010000@root.org> In-Reply-To: <da5cd1900512020604p22e6a18fu@mail.gmail.com> References: <da5cd1900511300337t22728ec8y@mail.gmail.com> <20051201141724.GE17066@poupinou.org> <da5cd1900512020105t60c1191cw@mail.gmail.com> <200512022035.55854.doconnor@gsoft.com.au> <20051202134913.GD24254@poupinou.org> <da5cd1900512020604p22e6a18fu@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Marco Calviani wrote: > Hi list, > > 2005/12/2, Bruno Ducrot <ducrot@poupinou.org>: > > > >>>I don't see why you can't run powerd more frequently, I do.. Unless your ACPI >>>has a problem that means the transition is slow. >> >>I'm sure this could not be done under Linux without a lot of >>problems (it is required to use the /proc things and it's too slow in >>that case). >> >> >>>I can't imagine that doing 5 (or even 50) syscalls a second is a big CPU load >>>unless there is a specific problem with sysctls or the cpufreq >>>infrastructure. >> >>If that's possible being not so intrusive with, say 50 syscalls under FreeBSD, >>then all I said above is indeed stupid crap. >> >> >>>I run powerd like this -> >>>/usr/sbin/powerd -i 90 -r 30 -a adaptive -b adaptive -n adaptive -p 200 >>> > > > Well, i've tried decreasing the polling interval, but there is an > increased powerd cpu load: at 100ms polling interval the cpu load is > to an astonishing 20% circa, which i think it's too much for a normal > use. The sampling rate with ondemand governor in linux kernel is 10ms > but cpufreqd is at 0.6% on average cpu load. powerd is not intended to do high speed polling. If you do that, your system will almost never be idle and so we can't save power via Cx. We don't need high speed sampling right now, we need a predictive algorithm. So until someone implements this, it's moot. -- Nate
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43908C2E.9010000>