I use process size (RSS), divided by the square root
of age and the square root of the square root of CPU
time used (both in 8 second intervals).
Then there are bonusses for suid, root and other
stuff. IOPL processes never get any points, so
they won't be killed.
If you want to know all details, please get the
patch from my homepage and read it -- Claus and
I went into great length to make it readable for
first-time kernel hackers as well...
> But of course the very first thing you want to do is to make sure
> that OOM will not kill your whole system.
That's the idea, the rest is somewhat of a luxury;
however, since the OOM code path is hardly ever
taken, we can afford ourselves the luxury of a
full-featured algorithm...
Rik.
+-------------------------------------------------------------------+
| Linux memory management tour guide. H.H.vanRiel@phys.uu.nl |
| Scouting Vries cubscout leader. http://www.phys.uu.nl/~riel/ |
+-------------------------------------------------------------------+
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/