Skip to content

Limit CPU Usage for all processes

I am trying to find a way to limit all processes to use a maximum of 90% of the CPU. I know I can use cpulimit to limit one specific process, but I would like to have this for every process, automatically.

E.g. I open 25 tabs in the morning to check several news sites, and the system simply gets stuck for about a minute. I want to keep it responsive, and therefore have to reduce CPU usage (that's the bottleneck).

Any help or idea would be appreciated, thanks!

2 points9 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 100% up
Kind
Text
ID
77eb7k

Author

4
posts
17
comments
0
media
View profile

9 comments

In theory, your scheduler should already do that. In practice, CFS sucks for desktop use and nothing will make the system actually snappy.

Linux-ck contains a different scheduler, MuQSS, that's optimized for desktops and should help with your particular use case.

4 points

Thanks for the hint, I am already using linux-zen, (also for responsiveness), but under high load it is far from perfect. I think I'll linux-ck a try!

Still, I am a bit confused by your argument, a scheduler or CFS as one of them is regulating the IO not the CPU to my knowledge?

2 points

Zen apparently includes MuQSS too, so check if it's enabled. If that doesn't improve things, well… not much you can do.

CPUs and I/O both need schedulers; CFS is the standard CPU scheduler in Linux, and CFQ the standard I/O queue scheduler. -ck replaces the former with MuQSS (successor to BFS) and the latter with BFQ.

2 points

Just an FYI, I am running linux-ck now since 4 day with MuQSS - and it is f*cKING amazing O.O My t440s (2013) feels as responsive as the Macbook Pro 13 (2015) I use at work - under 100% load. The MuQSS scheduler is absolutely amazing, this should be the default for every non-server installation!

Huge thanks to /u/Creshal !

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.