How can I reserve some amount of memory for a set of UI processes(window manager, x server, a terminal and a shell) running on my system. I'm tired of having to force a reboot because of some resource heavy program eating up all the memory.
- You can use cgroups to limit the resource heavy program memory usage.Ipor Sircer– Ipor Sircer2017-11-01 07:27:18 +00:00Commented Nov 1, 2017 at 7:27
- @Ipor Sircar is it possible to include all applications except a few ones in a cgroup?saga– saga2017-11-01 07:32:55 +00:00Commented Nov 1, 2017 at 7:32
- Yes, of course. You can create a default rule, and exactly specify the excluded ones. cgroups is very flexible. you can also use many groups with different rules, and hierarchy between groups.Ipor Sircer– Ipor Sircer2017-11-01 08:06:34 +00:00Commented Nov 1, 2017 at 8:06
Add a comment |
1 Answer
Use cgroups. This is the ultimate solution for resource management
- Yes, while this is very likely the right approach, please edit your answer and explain how to implement it. As it stands, this is just a comment offering a general direction and not an answer giving a solution.2017-11-01 08:57:52 +00:00Commented Nov 1, 2017 at 8:57