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.

3
  • You can use cgroups to limit the resource heavy program memory usage. Commented Nov 1, 2017 at 7:27
  • @Ipor Sircar is it possible to include all applications except a few ones in a cgroup? Commented 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. Commented Nov 1, 2017 at 8:06

1 Answer 1

1

Use cgroups. This is the ultimate solution for resource management

1
  • 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. Commented Nov 1, 2017 at 8:57

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.