From: Andrew Morton <akpm@osdl.org>
To: Nathan Scott <nathans@sgi.com>
Cc: piggin@cyberone.com.au, linux-kernel@vger.kernel.org,
linux-mm@kvack.org, linux-xfs@oss.sgi.com
Subject: Re: Page cache write performance issue
Date: Tue, 12 Oct 2004 23:19:45 -0700 [thread overview]
Message-ID: <20041012231945.2aff9a00.akpm@osdl.org> (raw)
In-Reply-To: <20041013054452.GB1618@frodo>
Nathan Scott <nathans@sgi.com> wrote:
>
> So, any ideas what happened to 2.6.9?
Does reverting the below fix it up?
> Whats the rationale for commencing writeout earlier in 2.6
> (even when there's
> so much free memory available)?
There wasn't much rationale behind that patch - that's why I dropped it the
first three times ;) I have no problem with making it four times.
It could be that small values of unmapped_ratio are making background_ratio
too small.
--- a/mm/page-writeback.c 10 Aug 2004 04:16:17 -0000 1.43
+++ a/mm/page-writeback.c 13 Oct 2004 06:12:03 -0000
@@ -153,9 +153,11 @@
if (dirty_ratio < 5)
dirty_ratio = 5;
- background_ratio = dirty_background_ratio;
- if (background_ratio >= dirty_ratio)
- background_ratio = dirty_ratio / 2;
+ /*
+ * Keep the ratio between dirty_ratio and background_ratio roughly
+ * what the sysctls are after dirty_ratio has been scaled (above).
+ */
+ background_ratio = dirty_background_ratio * dirty_ratio/vm_dirty_ratio;
background = (background_ratio * total_pages) / 100;
dirty = (dirty_ratio * total_pages) / 100;
--
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>
next prev parent reply other threads:[~2004-10-13 6:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-13 5:44 Nathan Scott
2004-10-13 6:19 ` Andrew Morton [this message]
2004-10-13 6:39 ` Nathan Scott
2004-10-13 7:02 ` Andrew Morton
2004-10-13 7:23 ` Nathan Scott
2004-10-13 8:15 ` Nick Piggin
2004-10-13 8:39 ` Andrew Morton
2004-10-14 0:53 ` Nathan Scott
2004-10-14 3:20 ` Andrew Morton
2004-10-14 7:16 ` Nathan Scott
2004-10-14 7:31 ` Nick Piggin
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=20041012231945.2aff9a00.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-xfs@oss.sgi.com \
--cc=nathans@sgi.com \
--cc=piggin@cyberone.com.au \
/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