linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* The meaning of data=ordered as it relates to delayed allocation
@ 2009-01-19  0:52 Theodore Ts'o
  2009-01-19  4:43 ` Aneesh Kumar K.V
  2009-01-19 19:10 ` Andreas Dilger
  0 siblings, 2 replies; 6+ messages in thread
From: Theodore Ts'o @ 2009-01-19  0:52 UTC (permalink / raw)
  To: linux-ext4


An Ubuntu user recently complained about a large number of recently
updated files which were zero-length after an crash.  I started looking
more closely at that, and it's because we have an interesting
interpretation of data=ordered.  It applies for blocks which are already
allocated, but not for blocks which haven't been allocated yet.  This
can be surprising for users; and indeed, for many workloads where you
aren't using berk_db some other database, all of the files written will 
be newly created files (or files which are getting rewritten after
opening with O_TRUNC), so there won't be any difference between
data=writeback and data=ordered.

So I wonder if we should either:

(a) make data=ordered force block allocation and writeback --- which
    should just be a matter of disabling the
    redirty_page_for_writepage() code path in ext4_da_writepage()

(b) add a new mount option, call it data=delalloc-ordered which is (a)

(c) change the default mount option to be data=writeback

(d) Do (b) and make it the default

(e) Keep things the way they are

Thoughts, comments?   My personal favorite is (b).   This allows users
who want something that works functionally much more like ext3 to get
that, while giving us the current speed advantages of a more aggressive
delayed allocation.

						- Ted

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

end of thread, other threads:[~2009-01-26 13:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-19  0:52 The meaning of data=ordered as it relates to delayed allocation Theodore Ts'o
2009-01-19  4:43 ` Aneesh Kumar K.V
2009-01-19 12:45   ` Theodore Tso
2009-01-19 14:45     ` Aneesh Kumar K.V
2009-01-26 13:24       ` Jan Kara
2009-01-19 19:10 ` Andreas Dilger

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).