Originally Posted by Gunark
Is there some sort of daemon or utility out there that could monitor your free RAM and warn you / freeze processes when you're almost out? I've accidently ran out a few times while in KDE (see my thread about X taking 460+ megs of RAM
), and it gets pretty ugly. Often I can't even kill X with Ctrl+Alt+Backspace. It'd be nice if I had something that would watch my remaining free memory and stop whatever is eating it before it's too late.
Gkrellm can monitor memory usage and alert you when you're getting close. It can also run a command, so you can write a script to kill processes.
I usually have enough RAM and swap, but sometimes, I accidentally go over the limit. For example, this flash movie tried to load a whole video into memory.
I guess there's no easy way of preventing something like this from happening, except a huge swap partition/file.