From: David Miller <davem@davemloft.net>
To: torvalds@linux-foundation.org
Cc: peterz@infradead.org, jack@suse.cz, linux-kernel@vger.kernel.org,
linux-mm@kvack.org, npiggin@suse.de
Subject: Re: Increase dirty_ratio and dirty_background_ratio?
Date: Wed, 07 Jan 2009 12:51:33 -0800 (PST) [thread overview]
Message-ID: <20090107.125133.214628094.davem@davemloft.net> (raw)
In-Reply-To: <alpine.LFD.2.00.0901070833430.3057@localhost.localdomain>
From: Linus Torvalds <torvalds@linux-foundation.org>
Date: Wed, 7 Jan 2009 08:39:01 -0800 (PST)
> On Wed, 7 Jan 2009, Peter Zijlstra wrote:
> >
> > > So the question is: What kind of workloads are lower limits supposed to
> > > help? Desktop? Has anybody reported that they actually help? I'm asking
> > > because we are probably going to increase limits to the old values for
> > > SLES11 if we don't see serious negative impact on other workloads...
> >
> > Adding some CCs.
> >
> > The idea was that 40% of the memory is a _lot_ these days, and writeback
> > times will be huge for those hitting sync or similar. By lowering these
> > you'd smooth that out a bit.
>
> Not just a bit. If you have 4GB of RAM (not at all unusual for even just a
> regular desktop, never mind a "real" workstation), it's simply crazy to
> allow 1.5GB of dirty memory. Not unless you have a really wicked RAID
> system with great write performance that can push it out to disk (with
> seeking) in just a few seconds.
>
> And few people have that.
>
> For a server, where throughput matters but latency generally does not, go
> ahead and raise it. But please don't raise it for anything sane. The only
> time it makes sense upping that percentage is for some odd special-case
> benchmark that otherwise can fit the dirty data set in memory, and never
> syncs it (ie it deletes all the files after generating them).
>
> In other words, yes, 40% dirty can make a big difference to benchmarks,
> but is almost never actually a good idea any more.
I have to say that my workstation is still helped by reverting this
change and all I do is play around in GIT trees and read email.
It's a slow UltraSPARC-IIIi 1.5GHz machine with a very slow IDE disk
and 2GB of ram.
With the dirty ratio changeset there, I'm waiting for disk I/O
seemingly all the time. Without it, I only feel the machine seize up
in disk I/O when I really punish it.
Maybe all the dirty I/O is from my not using 'noatime', and if that's
how I should "fix" this then we can ask why isn't it the default? :)
I did mention this when the original changeset went into the tree.
--
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:[~2009-01-07 20:51 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20090107154517.GA5565@duck.suse.cz>
2009-01-07 16:25 ` Peter Zijlstra
2009-01-07 16:39 ` Linus Torvalds
2009-01-07 20:51 ` David Miller [this message]
2009-01-08 11:02 ` Andrew Morton
2009-01-08 16:24 ` David Miller
2009-01-08 16:48 ` Linus Torvalds
2009-01-08 16:55 ` Chris Mason
2009-01-08 17:05 ` Linus Torvalds
2009-01-08 19:57 ` Jan Kara
2009-01-08 20:01 ` David Miller
2009-01-09 18:02 ` Jan Kara
2009-01-09 19:00 ` Andrew Morton
2009-01-09 19:07 ` Chris Mason
2009-01-09 22:31 ` david
2009-01-09 21:34 ` Peter Zijlstra
2009-01-14 3:29 ` 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=20090107.125133.214628094.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=jack@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=npiggin@suse.de \
--cc=peterz@infradead.org \
--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