On 02/19/2017 07:53 AM, Helmut Jarausch wrote: > Hi, > > sometime I have some memory hungry ebuilds in the background, when I > start (e.g.) Chromium which needs very much memory if you have a lot of > open tabs. > > In that case my system nearly freezes. I cannot even kill chrome. > What can I do in that case. (Remote login doesn't work either) > > Can I have any additional program (like Chromium) die if there is not > enough memory.
Yes, just disable swap as that is what happens when you run out of swap. You can configure the likelihood of a process being killed through /proc/<pid>/oom_adj. If you disable it for all processes after boot (ie. through a script) then only the "additional" programs can be killed but that may any program that's using a lot of memory so it may not be a good idea for a desktop. See http://www.oracle.com/technetwork/articles/servers-storage-dev/oom-killer-1911807.html > Many thanks for a hint, > Helmut > -- Fernando Rodriguez

