Re: Linux 2.6.9-ac16

Chris Ross
2004-12-17T15:45:28Z

Hi Chris,

Chris Friesen escreveu:
> As it stands, 2.6.10-rc2-mm4 still shows nasty behaviour in OOM
> conditions, killing off more tasks than strictly required, and
> locking up the system for 10-15secs while doing it.
>
> I'd be much happier doing a quick and dirty scan and knocking off
> something *now* rather than locking up the system. Surely it can't
> take 60 billion cycles of cpu time to pick a task to kill.

Thomas Gleixner has been particularly interested the algorithms for
deciding which task to kill (like me he got fed up with it picking the
ssh daemon first).

See for example the thread at
http://marc.theaimsgroup.com/?t=110189482200001&r=1&w=2

Some of the delay is by design: when OOM is reached we kill something
off, wait a bit for the memory to be freed and become available to the
system again, check whether now have enough memory, if not rinse and
repeat. However, as I recall this is compounded by 2.6.9 having some
nasty rentrancy problems causing the OOM killer to be called something
like 100 times instead of once.

Perhaps Thomas could enlighten us as to the current state of play here?

Regards,
Chris R.