Steve Shockley wrote: > I would have preferred to have the sa-learn process just crash instead > of bringing the system down. I don't know that I necessarily want to > put a specific memory limit on the process, I just don't want a process > to be able to crowd out the kernel. Is there a sane way to do so?
This is tough. We provide resource limits to prevent runaway processes, but you don't want to use them. I have a problem. Here's the solution. No, no, I want a different solution... Limits are preferrable to OOM killing because: 1. It kills the right process, not the process unlucky enough to be targetted by the "smart" algorithm that decides who's using too much memory. 2. It gives the process the opportunity to deal with the condition gracefully. It probably won't do much, but at least it's an option.