Restricting process CPU usage using nice, cpulimit, and cgroups
blog.scoutapp.com
blog.scoutapp.com
So doesn't this mean cgroups can't be used in the same way as cpulimit? cpulimit lets me limit the total max CPU usage of a process regardless of the rest of the system. The article makes it look like cgroups only allows setting the _partitioning of CPU_, not _total allowed CPU_.
Edit: Looks like the way to do it is to use cpu.cfs_period_us and cpu.cfs_quota_us instead of cpu.shares
https://access.redhat.com/documentation/en-US/Red_Hat_Enterp...
I'm hoping cgroups can do better.
That said, I'm pretty sure that niceness is mostly just a suggestion to the kernel. The scheduler's heuristics have the final say.