From: Mel <mel@csn.ul.ie>
To: linux-mm@kvack.org
Subject: When is oom_kill in 2.4.10?
Date: Tue, 25 Sep 2001 16:19:49 +0100 (IST) [thread overview]
Message-ID: <Pine.LNX.4.32.0109251536010.22098-100000@skynet> (raw)
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/
reply other threads:[~2001-09-25 15:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.32.0109251536010.22098-100000@skynet \
--to=mel@csn.ul.ie \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox