4 ms·
See "How do I use cgroups ?" in the kernel docs: https://www.kernel.org/doc/Documentation/cgroup-v1/cgroups.txt https://www.kernel.org/doc/Documentation/cgroup-
by kevincox 9y ago
See "How do I use cgroups ?" in the kernel docs: https://www.kernel.org/doc/Documentation/cgroup-v1/cgroups.txt https://www.kernel.org/doc/Documentation/cgroup-v1/cgroups.t...
You can do it simply by mounting the cgroup fs and writing numbers to files.
- tedunangst 9y agoSeems like there should be a better solution than making every slack user read that document.
- Spivak 9y agoSure, but sometimes we have to wrestle with shitty software. There's a scanning tool we use that unrestrained will consume all system resources, lock up all the useful software, and occasionally crash severs. Set up a cgroup with a quota and problem solved.