From: Shantanu Goel <sgoel01@yahoo.com>
To: Rik van Riel <riel@surriel.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
linux-mm@kvack.org
Subject: Re: [VM PATCH] rotate_reclaimable_page fails frequently
Date: Sun, 5 Feb 2006 17:47:39 -0800 (PST) [thread overview]
Message-ID: <20060206014739.82993.qmail@web33003.mail.mud.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.61L.0602051138260.26086@imladris.surriel.com>
> The question is, why is the page not yet back on the
> LRU by the time the data write completes ?
>
One possibility is that dirtiness is being tracked by
buffers which are clean. When writepage() notices
that it simply marks the page clean and calls
end_page_writeback() which then calls
rotate_reclaimable_page() before the page scanner has
had the chance to put the page back on the LRU.
> Surely a disk IO is slow enough that the page will
> have been put on the LRU milliseconds before the IO
> completes ?
>
Agreed but if the scenario I described above is
possible, there would essentially be no delay. I have
not examined the ext3 code paths closely. Perhaps
someone on the list can verify if this can happen.
The statistics seem to clearly indicate that writeback
can complete before the scanner gets a chance to put
the page back.
> In what kind of configuration do you run into this
> problem ?
Not sure what you looking for here but there is
nothing unusual on this machine that I can think of.
The machine runs Ubuntu Breezy with Gnome. To force
that particular VM code path, I wrote a simple program
that gobbled a lot of mmap'ed memory and then ran the
dd test. The only VM parameter I adjusted was
swappiness which I set to 55 instead of the default
60.
Shantanu
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
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:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2006-02-06 1:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20060205150259.1549.qmail@web33007.mail.mud.yahoo.com>
2006-02-05 16:39 ` Rik van Riel
2006-02-06 1:47 ` Shantanu Goel [this message]
2006-02-06 4:50 ` Andrew Morton
2006-02-06 5:26 ` Shantanu Goel
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=20060206014739.82993.qmail@web33003.mail.mud.yahoo.com \
--to=sgoel01@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=riel@surriel.com \
/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