4 ms·
could you post some examples of limiting slack with cgroups?
by hippich 9y ago
could you post some examples of limiting slack with cgroups?
- kevincox 9y agoSee "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.
- Piskvorrr 9y agoAfter some failed attempts, I gave up, copy-pasted and mangled what Sam Thursfield made for Firefox, substituting Slack where applicable and uncommenting the CPU quota: https://samthursfield.wordpress.com/2015/05/07/running-firefox-in-a-cgroup-using-systemd/ https://samthursfield.wordpress.com/2015/05/07/running-firef...