News for hackers. Stuff that matters.
Re:Using cgroups to limit I/O by geoka9 on Thursday October 19, 2017 @09:46AM (#15507801)
A plug: I wrote a process launcher that uses cgroups to set a per process limit for memory and swap use (that was before Docker).

It was for an online game service; the challenge was to run multiple instances of the game app on the cluster with minimal latency for the users, but also to make sure that no user could hog server resources by spawning multiple instances of the game.

https://github.com/geokat/cgfy

Re:Using cgroups to limit I/O by loeg on Thursday October 19, 2017 @10:05AM (#15507952)
Thanks! I use cgroups (manually) to memory constrain applications that I know leak memory (e.g., rtorrent, chrome at one time). This looks like a nice way of making that a bit less manual.
Re:Using cgroups to limit I/O by geoka9 on Sunday October 29, 2017 @06:16PM (#15581781)
No problem. I've just checked and it looks like libcgroup is not maintained any more and fallen behind the cgroups development. This may work instead:

systemd-run --scope -p MemoryMax=4M rtorrent

You can also set other quotas - `man systemd.resource-control` for more info.

Re:Using cgroups to limit I/O by nerpderp83 on Thursday October 19, 2017 @02:34PM (#15510409)
When they hit a threshold, send them a check point event and kill and restart. Too bad chrome didn't thundering heard so hard when it comes back to life.