From: Wu Fengguang <fengguang.wu@intel.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Adrian Bunk <bunk@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
Natalie Protasevich <protasnb@gmail.com>,
Kernel Testers List <kernel-testers@vger.kernel.org>,
Network Development <netdev@vger.kernel.org>,
Linux ACPI <linux-acpi@vger.kernel.org>,
Linux PM List <linux-pm@lists.linux-foundation.org>,
Linux SCSI List <linux-scsi@vger.kernel.org>,
Nick Piggin <npiggin@suse.de>,
Peter Zijlstra <a.p.zijlstra@chello.nl>
Subject: Re: 2.6.29-rc8-git5: Reported regressions from 2.6.28
Date: Mon, 23 Mar 2009 08:57:38 +0800 [thread overview]
Message-ID: <20090323005738.GB6003@localhost> (raw)
In-Reply-To: <20090321200534.GA30238@elte.hu>
On Sun, Mar 22, 2009 at 04:05:34AM +0800, Ingo Molnar wrote:
>
> * Rafael J. Wysocki <rjw@sisk.pl> wrote:
>
> > Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=12809
> > Subject : iozone regression with 2.6.29-rc6
> > Submitter : Lin Ming <ming.m.lin@intel.com>
> > Date : 2009-02-27 9:13 (23 days old)
> > First-Bad-Commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1cf6e7d83bf334cc5916137862c920a97aabc018
> > References : http://marc.info/?l=linux-kernel&m=123572630504360&w=4
> > http://lkml.org/lkml/2009/3/14/265
> > Handled-By : Wu Fengguang <fengguang.wu@intel.com>
>
> I think this was tracked back to the effective halving of
> dirty_ratio by 1cf6e7d83 ("mm: task dirty accounting fix") and
> doubling the ratio fixed the iozone regression.
Yes, exactly. The patch for fixing this regression is trivial.
However it may be better to revert 1cf6e7d83 for 2.6.29,
and merge 1cf6e7d83 together with this patch for 2.6.30-rc1.
This allows a larger window for testing out the possible impacts
on other workloads.
Thanks,
Fengguang
---
writeback: double the dirty thresholds
Enlarge default dirty ratios from 5/10 to 10/20.
This fixes [Bug #12809] iozone regression with 2.6.29-rc6.
The iozone benchmarks are performed on a 1200M file, with 8GB ram.
iozone -i 0 -i 1 -i 2 -i 3 -i 4 -r 4k -s 64k -s 512m -s 1200m -b tmp.xls
iozone -B -r 4k -s 64k -s 512m -s 1200m -b tmp.xls
The performance regression is triggered by commit 1cf6e7d83bf3(mm: task
dirty accounting fix), which makes more correct/thorough dirty accounting.
The default 5/10 dirty ratios were picked (a) with the old dirty
logic and (b) largely at random and (c) designed to be aggressive. In
particular, that (a) means that having fixed some of the dirty accounting,
maybe the real bug is now that it was always too aggressive, just hidden
by an accounting issue.
The enlarged 10/20 dirty ratios are just about enough to fix the regression.
Cc: Nick Piggin <npiggin@suse.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Reported-by: "Lin, Ming M" <ming.m.lin@intel.com>
Tested-by: "Lin, Ming M" <ming.m.lin@intel.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
---
mm/page-writeback.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- mm.orig/mm/page-writeback.c
+++ mm/mm/page-writeback.c
@@ -66,7 +66,7 @@ static inline long sync_writeback_pages(
/*
* Start background writeback (via pdflush) at this percentage
*/
-int dirty_background_ratio = 5;
+int dirty_background_ratio = 10;
/*
* dirty_background_bytes starts at 0 (disabled) so that it is a function of
@@ -83,7 +83,7 @@ int vm_highmem_is_dirtyable;
/*
* The generator of dirty data starts writeback at this percentage
*/
-int vm_dirty_ratio = 10;
+int vm_dirty_ratio = 20;
/*
* vm_dirty_bytes starts at 0 (disabled) so that it is a function of
next prev parent reply other threads:[~2009-03-23 0:58 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-21 16:28 2.6.29-rc8-git5: Reported regressions from 2.6.28 Rafael J. Wysocki
2009-03-21 16:28 ` [Bug #12419] possible circular locking dependency on i915 dma Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12490] ath5k related kernel panic in 2.6.29-rc1 Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12499] Problem with using bluetooth adaper connected to usb port Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12670] BUG: unable to handle kernel paging request at pin_to_kill+0x21 Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12668] USB flash disk surprise disconnect Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12667] Badness at kernel/time/timekeeping.c:98 in pmud (timekeeping_suspended) Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12574] possible circular locking dependency detected Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12681] s2ram: fails to wake up on Acer Extensa 4220 (SMP disabled) Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12705] X200: Brightness broken since 2.6.29-rc4-58-g4c098bc Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12671] uvc_status_cleanup(): undefined reference to `input_unregister_device' Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12763] Different cpu MHz values for processor0 and processor1 Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12765] i915 VT switch with AIGLX causes X lock up Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12771] Oops in i915_gem_flush Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12778] suspend regression from 29rc5 to 29rc6 Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12792] 2.6.29-rc6-git4 boot failure Rafael J. Wysocki
2009-03-22 21:49 ` Benjamin Herrenschmidt
2009-03-23 5:04 ` Sachin Sant
2009-03-23 6:05 ` Benjamin Herrenschmidt
2009-03-21 16:39 ` [Bug #12800] x86 PAT invalid vm_insert_pfn assumptions Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12808] Suspend regression with 2.6.29-rc Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12809] iozone regression with 2.6.29-rc6 Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12846] Regression issue with kernel 2.6.29-rc6-git1: high power consumption during sleep Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12836] 2.6.29-rc breaks STD using Intel 945 Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12856] Thinkpad freezes with X.org and acpi=rsdt Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12867] 2.6.29-rc7 broke r8169 MAC on Thecus n2100 ARM board Rafael J. Wysocki
2009-03-22 13:51 ` Mikael Pettersson
2009-03-21 16:39 ` [Bug #12870] 2.6.29-rc "TKIP: replay detected" regression Rafael J. Wysocki
2009-03-21 19:51 ` Hugh Dickins
2009-03-21 16:39 ` [Bug #12861] Xorg fails to start "Failed to allocate space for kernel memory manager" Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12871] usb bluetooth crashes system Rafael J. Wysocki
2009-03-22 10:06 ` Pavel Machek
2009-03-21 16:39 ` [Bug #12908] acpi_ex_extract_from_field -- div by zero Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12909] boot/kernel init duration regression from 2.6.28 Rafael J. Wysocki
2009-03-21 16:39 ` [Bug #12872] pwc mmap always fails with EAGAIN Rafael J. Wysocki
2009-03-22 12:37 ` Markus
2009-03-22 14:28 ` Alan Cox
2009-03-22 14:45 ` Ingo Molnar
2009-03-22 19:58 ` Markus
2009-03-22 20:05 ` Ingo Molnar
2009-04-02 15:49 ` Markus
[not found] ` <7b6bb4a50903230341r6ab4a910l401a49d41aa289c7@mail.gmail.com>
2009-03-23 10:49 ` Alan Cox
2009-03-23 14:12 ` Arjan van de Ven
2009-03-21 16:39 ` [Bug #12910] Wierd iteractions with CPUFREQ Rafael J. Wysocki
2009-03-21 20:05 ` 2.6.29-rc8-git5: Reported regressions from 2.6.28 Ingo Molnar
2009-03-23 0:57 ` Wu Fengguang [this message]
2009-03-23 16:23 ` Linus Torvalds
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=20090323005738.GB6003@localhost \
--to=fengguang.wu@intel.com \
--cc=a.p.zijlstra@chello.nl \
--cc=akpm@linux-foundation.org \
--cc=bunk@kernel.org \
--cc=kernel-testers@vger.kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=netdev@vger.kernel.org \
--cc=npiggin@suse.de \
--cc=protasnb@gmail.com \
--cc=rjw@sisk.pl \
--cc=torvalds@linux-foundation.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;
as well as URLs for NNTP newsgroup(s).