From: Andrew Morton <akpm@osdl.org>
To: Badari Pulavarty <pbadari@us.ibm.com>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: Memory pressure handling with iSCSI
Date: Tue, 26 Jul 2005 16:07:28 -0700 [thread overview]
Message-ID: <20050726160728.55245dae.akpm@osdl.org> (raw)
In-Reply-To: <1122418089.6433.62.camel@dyn9047017102.beaverton.ibm.com>
Badari Pulavarty <pbadari@us.ibm.com> wrote:
>
> Here is the data with 5 ext2 filesystems. I also collected /proc/meminfo
> every 5 seconds. As you can see, we seem to dirty 6GB of data in 20
> seconds of starting the test. I am not sure if its bad, since we have
> lots of free memory..
It's bad. The logic in balance_dirty_pages() should block those write()
callers as soon as we hit 40% dirty memory or whatever is in
/proc/sys/vm/dirty_ratio. So something is horridly busted.
Can you try reducing the number of filesystems even further?
Either the underlying block driver is doing something most bizarre to the
VFS or something has gone wrong with the arithmetic in page-writeback.c.
If total_pages or ratelimit_pages are totally wrong or if
get_dirty_limits() is returning junk then we'd be seeing something like
this.
It'll be something simple - if you have time, stick some printks in
balance_dirty_pages(), work out why it is not remaining in that `for' loop
until dirty memory has fallen below the 40%.
I'll take a shot at reproducing this on my 4G x86_64 box, but this is so
grossly wrong that I'm sure it would have been noted before now if it was
commonly happening (famous last words).
--
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:[~2005-07-26 23:07 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-26 17:35 Badari Pulavarty
2005-07-26 18:04 ` Roland Dreier
2005-07-26 18:11 ` Andrew Morton
2005-07-26 18:39 ` Badari Pulavarty
2005-07-26 18:48 ` Andrew Morton
2005-07-26 19:12 ` Andrew Morton
2005-07-26 20:36 ` Badari Pulavarty
2005-07-26 21:11 ` Badari Pulavarty
2005-07-26 21:24 ` Andrew Morton
2005-07-26 21:45 ` Badari Pulavarty
2005-07-26 22:10 ` Andrew Morton
2005-07-26 22:48 ` Badari Pulavarty
2005-07-26 23:07 ` Andrew Morton [this message]
2005-07-26 23:26 ` Badari Pulavarty
2005-07-27 0:31 ` Andrew Morton
2005-07-27 1:20 ` Martin J. Bligh
2005-07-27 1:26 ` Andrew Morton
2005-07-27 1:47 ` Martin J. Bligh
2005-07-27 1:31 ` Badari Pulavarty
2005-07-27 1:40 ` Andrew Morton
2005-07-26 19:31 ` Sonny Rao
2005-07-26 20:37 ` Badari Pulavarty
2005-07-26 21:21 ` Andrew Morton
2005-07-26 20:59 ` Rik van Riel
2005-07-26 21:05 ` Badari Pulavarty
2005-07-26 21:33 ` Martin J. Bligh
2005-07-26 22:05 ` Adam Litke
2005-07-26 21:12 ` Andrew Morton
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=20050726160728.55245dae.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=pbadari@us.ibm.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