6
votes
2answers
6k views

How can I restrict RAM usage for a particular user or process?

I'm using a background service that leaks memory from time to time. To prevent using the Alt+SysRq REISUB[1], I'd like to restrict the RAM usage for one process or a system user. I really would like ...