4 ms·
But do cgroups really allow setting maximum CPU shares? man 7 cgroups says this about the cpu subsystem: > Cgroups can be guaranteed a minimum number of "CPU s
by cesnja 10y ago
But do cgroups really allow setting maximum CPU shares? man 7 cgroups says this about the cpu subsystem:
> Cgroups can be guaranteed a minimum number of "CPU shares" when a system is busy. This does not limit a cgroup's CPU usage if the CPUs are not busy.
Granted my english isn't the best, but this doesn't seem to indicate any throttling.
- geofft 10y agoI'm not very familiar with cgroups, but the documentation mention in that manpage ( https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt https://www.kernel.org/doc/Documentation/scheduler/sched-bwc... ) talks about throttling and maximum CPU usage. I'd guess that it's just a matter of how you view it - putting a minimum number of CPU shares on the root cgroup is the same as putting a maximum on the rest of the cgroups, right? But maybe one or the other documentation is wrong.
- cesnja 10y agoBoth manpage and documentation are probably right, though I'd expect CPU throttling to be significant enough at least to be mentioned. I'm not so sure about your guess, because that apparently works only when CPU is fully utilized. I'm not so sure about my reading comprehension either.