Not really a problem, just something I've been wondering.

So, when Linux runs out of memory (physical RAM and swap exhausted), it
starts killing processes to free up space.  How does the kernel decide
what to terminate?  Does it start with the ones taking the most space? 
The least space?  Is there some strategy to free only as much as it
needs, with a minimum number of terminated threads?  Or is it just
random?

-- 
Pete, too lazy to google..
[EMAIL PROTECTED]

There's going to be a spontaneous mob stormin' the castle in, oh,
half an hour.  Put the word out.
                -- Nanny Ogg
                   (Terry Pratchett, Carpe Jugulum)

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to