Bug 123138 - akregator should renice itself, so that it doesn't use 100% CPU load
Summary: akregator should renice itself, so that it doesn't use 100% CPU load
Status: RESOLVED INTENTIONAL
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: 1.2.1
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-05 22:35 UTC by Helge Deller
Modified: 2006-12-16 14:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helge Deller 2006-03-05 22:35:36 UTC
Version:           1.2.1 (using KDE 3.5.1, compiled sources)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15.8-default

When using Akregator on a Laptop, it's always bad if an application uses 100% CPU time when doing stuff, since then the fans start to spin and the total battery life goes fast down.
Especially Akregator regulary cleans it cache or fetches new feeds, which easily takes up to a few minutes time and brings up the load. For this kind of  work it would be favourable, if Akregator could renice itself (see: man 2 nice) and drops itself to a lower priority to avoid the high load.
Comment 1 Teemu Rytilahti 2006-12-16 04:57:53 UTC
Hmm, did you confirm this Frank? Imho Akregator, like any other application, shouldn't itself try to adjust nice levels...
Comment 2 Eckhart Wörner 2006-12-16 14:08:58 UTC
As Teemu has written, an application should not renice itself.

Regarding the reason mentioned: If your CPU runs at 100% renice will not change this behaviour at all. Renice does not set an absolute limit to CPU usage but only a relative limit compared to other processes. So if there are other processes in need of the CPU, they will use CPU time; if not, Akregator will use 100% of CPU time (as before).
Comment 3 Helge Deller 2006-12-16 14:55:47 UTC
That's correct. It will still use 100% CPU. BUT: If you are running it on a Laptop, all processes which got "niced" will prevent the fans to turn faster and keep the processor speed at lower rates. You know, if I close akregator all fans turn on and that is really anoying. I still think it would be a good idea...