linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Anand Eswaran <aeswaran@andrew.cmu.edu>
To: linux-mm@kvack.org
Subject: Doubt regarding kswapd
Date: Fri, 27 Feb 2004 11:03:50 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.58-035.0402271047590.3342@unix49.andrew.cmu.edu> (raw)

    Im using the 2.4.18 kernel version for implementing
reservation of pages for selective applications.

    In the kswapd loop, I noted that the do_try_to_free_pages, the
page_launder loop is executed before the refill_inactive or the
refill_freelist.

  When a page is added to the pagecache for the first time , it is added
to the active list. So it seems to me that if it is the very first time
kswapd executes, kswapd is guaranteed to skip its laundering loop (
because the list is empty) since refill_inactive_list() which is
responible for populating the inactive_dirty_list() has not executed yet.

  Is there anything Im missing that necessitates the page_launder loop
coming first? I guess one explanation could be when kswapd() is called,
you need pages real quick, so it might be logical to execute that loop
before running through the other lists.

  Could someone please explain the true rationale.

  In particular, would an implementation with refill_inactive_list() before page_launder()
in the do_try_to_free_pages()  be wrong? ( this is not a quibble,
it really matters to my design)

Thanks a lot,
----
Anand.




--
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/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

                 reply	other threads:[~2004-02-27 16:03 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.58-035.0402271047590.3342@unix49.andrew.cmu.edu \
    --to=aeswaran@andrew.cmu.edu \
    --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