All of lore.kernel.org
 help / color / mirror / Atom feed
* [LSF/VM TOPIC] Dynamic sizing of dirty_limit
@ 2010-02-24 14:34 ` Jan Kara
  0 siblings, 0 replies; 7+ messages in thread
From: Jan Kara @ 2010-02-24 14:34 UTC (permalink / raw)
  To: lsf10-pc; +Cc: linux-fsdevel, linux-mm

  Hi,

  one more suggestion for discussion:
Currently, the amount of dirtiable memory is fixed - either to a percentage
of ram (dirty_limit) or to a fix number of megabytes. The problem with this
is that if you have application doing random writes on a file (like some
simple databases do), you'll get a big performance improvement if you
increase the amount of dirtiable memory (because you safe quite some
rewrites and also get larger chunks of sequential IO) (*)
On the other hand for sequential IO increasing dirtiable memory (beyond
certain level) does not really help - you end up doing the same IO.  So for
a machine is doing sequential IO, having 10% of memory dirtiable is just
fine (and you probably don't want much more because the memory is better
used for something else), when a machine does random rewrites, going to 40%
might be well worth it. So I'd like to discuss how we could measure that
increasing amount of dirtiable memory helps so that we could implement
dynamic sizing of it.

(*) We ended up increasing dirty_limit in SLES 11 to 40% as it used to be
with old kernels because customers running e.g. LDAP (using BerkelyDB
heavily) were complaining about performance problems.

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-03-08  7:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-24 14:34 [LSF/VM TOPIC] Dynamic sizing of dirty_limit Jan Kara
2010-02-24 14:34 ` Jan Kara
2010-02-24 16:10 ` Christoph Lameter
2010-02-24 23:30   ` Andreas Dilger
2010-02-24 23:30     ` Andreas Dilger
2010-03-08  7:33   ` Boaz Harrosh
2010-03-08  7:33     ` Boaz Harrosh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.