3 ms·
You can just use cgroups on their own without docker
by tayo42 10y ago
You can just use cgroups on their own without docker
- tyingq 10y agoI would guess ulimit -v might work as well, so you may not even need cgroups.
- yebyen 10y agoHah! Something new is also something old. Thanks for that. But won't you run into issues with child processes, of which Chrome tends to spawn a zillion? (I'm reading that each one gets its own limit under ulimit...) And potentially get your browser killed when it hits the limit? I haven't tested this and I don't really know how ulimit works, but I think it's a less effective solution than the cgroups for at least one reason.
- tyingq 10y agoYes, it is per process, so it would only limit memory-per-tab. I believe you get the "aw snap" window in chrome if it hits the limit.