I'm having a bit of trouble gettings the hang of cgroups and have been following this tutorial: https://www.devinhoward.ca/technolog...untu-or-debian
I'm trying to limit the CPU usage of handbrake (It uses a lot of CPU, and setting the niceness and IO values via System Monitor only goes so far).
What would be the best way to limit the CPU and I/O useage of the handbrake process?
So far I've done:
But this hasn't been very effective, and it's still using above 80% CPU for some reason.
I also don't really understand what I'm doing exactly.
For example:
I'm not sure what this does.
How can I limit handbrake's CPU and I/O usage to 50% using cgroups?
I'm trying to limit the CPU usage of handbrake (It uses a lot of CPU, and setting the niceness and IO values via System Monitor only goes so far).
What would be the best way to limit the CPU and I/O useage of the handbrake process?
So far I've done:
Code:
sudo cgcreate -a sarah -t sarah -g cpu:limitgroup echo 512 > cpu/limitgroup/cpu.shares cgexec -g cpu:limitgroup handbrake
I also don't really understand what I'm doing exactly.
For example:
Code:
:limitgroup
How can I limit handbrake's CPU and I/O usage to 50% using cgroups?
Comment