* When is oom_kill in 2.4.10?
@ 2001-09-25 15:19 Mel
0 siblings, 0 replies; only message in thread
From: Mel @ 2001-09-25 15:19 UTC (permalink / raw)
To: linux-mm
I'm still getting to grips on various parts of the VM even if that usually
means trying to decipher discussions on the main kernel-list so pardon me
if this comes across as excessively clueless.
I was looking briefly at when oom_kill gets called in 2.4.10 and have
found that it doesn't appear to be called from anywhere.
In 2.4.9, we had the kswapd loop to do something like
for eternity do
once a second calculate VM statistics
do_try_to_free_pages()
if there is still a shortage
if out_of_memory() then oom_kill()
end if
end for
fine, thats straight forward enough. In 2.4.10, it has changed to
for eternity do
put kswapd on the wait queue
/* We can sleep when no zone needs to be balanced.
if kswapd_can_sleep() then schedule();
/* We are woken up when we run out of pages in a particular zone.... I
* think
*/
remove kswapd from the wait queue
kswapd_balance()
run_task_queue(&tq_disk); /* Flush dirty buffers to disk and free them
* from the buffer cache if possible? Not
* positive, I'm guessing because so many fs
* related code appears to add it'self to the
* tq_disk wait queue
*/
next
I still get parts of that although it's only in the last two days I've
managed to read any decent amount of the code. I still can't see where
oom_kill gets called. Is it a case that 2.4.10 will never admit it's out
of memory and endlessly try to flush buffers or am I missing something
thats obvious to a VM guru?
If this is a really dim question, flame me off-list.
--
Mel
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-09-25 15:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-25 15:19 When is oom_kill in 2.4.10? Mel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox