> X points for every page rss
> -Y points for every second of execution time
> Z points for not having uid=0
> Z/2 points for not having euid=0
>
> The process with the biggest score gets killed.
<clip>
This proposition is very much like mine, but this doesn't include the
root-reserved memory block. It would be useful to have a small amount of
root-only memory, so that you could log in even if you have a process
which rapidly creates a memory-hogger processes.
As I noted before, reserving ~4 MB from swap isn't that much..