1

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 Nov 1 '17 at 7:27
  • @Ipor Sircar is it possible to include all applications except a few ones in a cgroup? – saga Nov 1 '17 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 Nov 1 '17 at 8:06
1

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. – terdon Nov 1 '17 at 8:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.