Summary: | adjusted/adjusteable priorities per application | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | Arne Babenhauserheide <arne_bab> |
Component: | kdeinit | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | wishlist | CC: | christoph |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Arne Babenhauserheide
2007-06-18 09:27:32 UTC
The problem is when KDE apps run with priority 1 (or even nicer), and non-KDE applications that are usually priority 0 steal their time you gain nothing. Actually important things should run with priority -1, but that requires root privileges. The second problem I now found is, that renice can increase the priority of a process, but never lower it. A scenario which I thought would work (but was proven wrong): - Konsole starts with prio 0 - I now renice Kontact (and everything else in KDE) to prio 5 - Then when I want Kontact in the foreground, I renice it to prio 0 result: $ renice -n 5 `pgrep kontact` 12150: Alte Priorität: 0, neue Priorität: 5 $ LANG=C renice -n 0 `pgrep kontact` renice: 12150: setpriority: Permission denied So adjusting permissions on the fly doesn't seem possible with renice. I don't know if there's a better tool which can lower the priority to the nicelevel of the shell which calls renice. What I would gain if it was possible is that when I only use KDE apps, KDE could do on the fly priority assignment. For example the foreground program could always be more important that the background programs. With the renice limitation the only thing which can be done is to call all processes with a lower priority which aren't time critical. This is for example what I do in my Gentoo: When I install programs, the compiling is done at nicelevel 10 (there's a setting in the config for that), so compiling in the background doesn't really bother me - I can simply ignore it. We removed kdeinit in KF6. |