0

Occassionally, I run a command that hogs RAM and brings my system to a grind. Even pressing Ctrl-C takes 20 minutes to register, because the system is busy swapping to disk.

What solutions are available?

I have some ideas, but don't know exact solutions:

  1. Give maximum priority to the window-manager and system processes, while giving a lower priority to all other processes.

  2. Run a watch-dog process with highest priority that watches for runaway process behaviour. I remember KDE used to have such a tool couple of years back. Is there a modern (GNOME/Unity) equivalent?

HRJ
  • 474

1 Answers1

1

Read man bash or info bash and check out the ulimit bash command. It will let you limit your processes in many ways.

Also see this link about Hard and Soft ulimits.

waltinator
  • 36,399