On Mon, Apr 25, 2005 at 02:33:00PM +0200, Leonardo Macchia wrote:
> Package: cpufreqd
> Version: 1.2.2-3
> Severity: minor
> 
> Hello.
> 
> While cicle in "main.c" (inside "get_running_programs", line 767)
> consumes lot of CPU (my 1 GHz laptop powers on every two-three second
> its fan because of cpufreqd); just a little sleep between each cycle
> should be better.

well... how many processes are running on your laptop? :)
I usually have less than 70/75, I believe a gnome desktop could reach
100, so we are not talking about big numbers... And probably a much more
consuming task is checking the prorgams list against the configured one
(it's an No_processes * No_rules_having_processes_configured *
No_configured_processes).
Maybe changing the loop order there could save some cpu cycles.

...Anyway :) did you already tried your solution? I'm sorry, I'm pretty
sceptical because it's battery checking that usually sucks much cpu
with ACPI because of the kernel doing busy wait, but it's a known issue.

-- 
mattia
:wq!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to