From: Marcelo Tosatti <marcelo@conectiva.com.br>
To: "Stephen C. Tweedie" <sct@redhat.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
Rik van Riel <riel@conectiva.com.br>,
linux-mm@kvack.org
Subject: Re: [PATCH] count for buffer IO in page_launder()
Date: Sat, 3 Mar 2001 01:52:19 -0300 (BRT) [thread overview]
Message-ID: <Pine.LNX.4.21.0103030133440.1033-100000@freak.distro.conectiva> (raw)
In-Reply-To: <20010302171020.W28854@redhat.com>
On Fri, 2 Mar 2001, Stephen C. Tweedie wrote:
> Hi,
>
> On Tue, Feb 27, 2001 at 04:09:09AM -0300, Marcelo Tosatti wrote:
> >
> > page_launder() is not counting direct ll_rw_block() IO correctly in the
> > flushed pages counter.
>
> Having not seen any follow to this, it's worth asking: what is the
> expected consequence of _not_ including this?
The page launder loop avoids flushing too many pages if it already
flushed/cleaned enough pages to remove the system from low memory
condition (mm/vmscan.c::page_launder()):
/*
* Disk IO is really expensive, so we make sure we
* don't do more work than needed.
* Note that clean pages from zones with enough free
* pages still get recycled and dirty pages from these
* zones can get flushed due to IO clustering.
*/
if (freed_pages + flushed_pages > target && !free_shortage())
break;
Dirty buffer pages and dirty pagecache pages with page->buffers mapping
which were being flushed (with try_to_free_buffers()) were not being
counted in the "flushed_pages" counter correctly.
So what could happen is that tasks trying to launder pages could
flush/swapout more than needed.
> Have you done an performance testing on it?
No. The code makes sense now.
--
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.eu.org/Linux-MM/
next prev parent reply other threads:[~2001-03-03 4:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-27 7:09 Marcelo Tosatti
2001-03-02 17:10 ` Stephen C. Tweedie
2001-03-03 4:52 ` Marcelo Tosatti [this message]
2001-03-05 10:49 ` Stephen C. Tweedie
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.21.0103030133440.1033-100000@freak.distro.conectiva \
--to=marcelo@conectiva.com.br \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-mm@kvack.org \
--cc=riel@conectiva.com.br \
--cc=sct@redhat.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