From: Eric Wong <normalperson@yhbt.net>
To: Fredrik Tolf <fredrik@dolda2000.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: I/O blocked while dirty pages are being flushed
Date: Sun, 24 Mar 2013 06:56:06 +0000 [thread overview]
Message-ID: <20130324065605.GA19984@dcvr.yhbt.net> (raw)
In-Reply-To: <alpine.DEB.2.02.1303240543280.4028@shack.dolda2000.com>
Fredrik Tolf <fredrik@dolda2000.com> wrote:
> It is worth noting, also, that this seems to be a situation
> introduced somewhere between 2.6.26 and 2.6.32, because I started
> noticing it when I upgraded from Debian 5.0 to 6.0. I've since tried
> it on 3.2.0, 3.5.4 and 3.7.1, and it appears in every version.
> However, I can't easily go back and bisect, because the new init
> scripts don't support kernels older than 2.6.32, unfortunately.
I'm not sure about Debian-specific changes to the kernel, but
in the stock kernel, the dirty*ratios changes could affect you:
before 2.6.22 dirty_ratio=40 dirty_background_ratio=10
2.6.22-2.6.29 dirty_ratio=10 dirty_background_ratio=5
2.6.30-... dirty_ratio=20 dirty_background_ratio=10
So try lowering these sysctls to 2.6.26 levels (or lower) and see if
that helps.
Fwiw, I usually use dirty_ratio=2 dirty_background_ratio=1 on servers
with a few gigs of RAM (or appropriately low dirty*bytes values).
Lowering dirty*ratio helps servers get more consistent performance under
constant I/O pressure and aggressively throttles processes before a
large amount of dirty pages becomes a problem (as you've noticed).
High dirty*ratio is good for some bursty desktop workloads and some
benchmarks, though...
ref: commit 07db59bd6b0f279c31044cba6787344f63be87ea
ref: commit 1b5e62b42b55c509eea04c3c0f25e42c8b35b564
Heck, on a particularly bad server (2.6.18, pre-dirty_*bytes sysctl)
with lots of RAM and horrible disk throughput (~10M/s), I set both
dirty_writeback_centisecs and dirty_expire_centisecs to 100 to get
acceptable performance for writing HTTP access logs.
next prev parent reply other threads:[~2013-03-24 6:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-24 5:12 Fredrik Tolf
2013-03-24 6:56 ` Eric Wong [this message]
2013-03-25 7:34 ` Fredrik Tolf
2013-03-24 10:27 ` Bart Van Assche
2013-03-25 7:31 ` Fredrik Tolf
2013-04-09 22:11 ` Jan Kara
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=20130324065605.GA19984@dcvr.yhbt.net \
--to=normalperson@yhbt.net \
--cc=fredrik@dolda2000.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®