Reply to topic

Adjust process niceness towards current activity&desktop

3

Votes
3
0
Dietr1ch
Registered Member
Posts
4
Karma
0
OS
At least at startup, my cpu goes to 100% for about 30s being the bottleneck of my pc. Most of this high cpu usage is due to a lot of applications that are being resumed from the last Session.

Given this bottleneck, I'd like that my cpu is used more on my current activity and desktop's applications than on the applications that I can't see from other activities and desktops.

Maybe the user should be able to whitelist the programs than can have its niceness adjusted.

I think that by doing this (and fixing that NetworkManager/polkit issue), sessions restores would be blazing fast :3
airdrik
Registered Member
Posts
595
Karma
0
OS
Definitely an interesting idea worth considering - processes associated with the current activity are of more interest to me than processes associated with other activities and should therefore be given priority.

Another option which would also help in reducing CPU load at startup would be to delay starting applications on other activities until after everything on the current activity has been loaded, or until after a certain delay. Or start all activities other than the current one in the stopped state rather than in their last state.


airdrik, proud to be a member of KDE forums since 2008-Dec.
Dietr1ch
Registered Member
Posts
4
Karma
0
OS
airdrik wrote:Another option which would also help in reducing CPU load at startup would be to delay starting applications on other activities until after everything on the current activity has been loaded, or until after a certain delay. Or start all activities other than the current one in the stopped state rather than in their last state.


I think that arbitrary delays would only cause the system to start slower, the problem here isn't loading the CPU (an amount of "work" is required to start every app, so we are using that CPU anyways). The real problem is assuring responsiveness on the current desktop&activity, and that require us to tell the CPU scheduler (The monkey inside the kernel that splits the CPU between the programs) which applications are more valuable.

 
Reply to topic

Bookmarks



Who is online

Registered users: Atalanttore, Baidu [Spider], Bing [Bot], einar, Exabot [Bot], flya, Google [Bot], google01103, kdeuserk, koriun, Majestic-12 [Bot], pedrorodriguez, sashcroft, scottpetrovic, scummos, SecretCode, Sogatori, vascobasque, Yahoo [Bot]