3 ms·
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
by loeg 9y ago
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.
- nerpderp83 9y agoWhen 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.
- geoka9 9y agoNo 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.