> I also read the FreeBSD sourcecode, and saw a (somewhat) > elegant solution for this. If FreeBSD is out of memory, it > looks through the processes and kills off the largest one. > This should be doable in Linux too...
Oh dear. My largest process is the X server. On servers its probably stuff like web engines and database processes - just the stuff you don't want to hit!