All of lore.kernel.org
 help / color / mirror / Atom feed
From: tytso@mit.edu
To: Daniel Taylor <Daniel.Taylor@wdc.com>
Cc: Eric Sandeen <sandeen@redhat.com>,
	amir73il@gmail.com, linux-ext4@vger.kernel.org
Subject: Re: inconsistent file placement
Date: Tue, 6 Jul 2010 19:14:12 -0400	[thread overview]
Message-ID: <20100706231412.GA7646@thunk.org> (raw)
In-Reply-To: <469D2D911E4BF043BFC8AD32E8E30F5B24AEDB@wdscexbe07.sc.wdc.com>

On Tue, Jul 06, 2010 at 03:15:00PM -0700, Daniel Taylor wrote:
> 
> It is an unfortunate fact of life that simplistic benchmarks often
> drive sales.  This product will be a consumer NAS and when our
> internal runs of the common NAS benchmarks get inconsistent results,
> it creates a lot of concern.

Out of curiosity, what *are* the "common NAS benchmarks" in use today,
and who chooses them?

There have been times in the past when "common benchmarks" promulgated
by reviewers have done active harm in the industry, driving disk drive
manufacturers to chose unsafe defaults, all because the only thing
people paid attention to was crappy benchmarks.

Sometimes the right answer is to put a spotlight on deficient
benchmarks, and to try to change them...

> There's an option for ext4 (delayed allocation) that looks like it
> bypasses the "pid % 16" coloration.  I'll tinker some more with
> that and see how it goes.

Delayed allocation is the default for ext4.  If you are seeing random
behaviour there it's probably because you need to be smarter in how
you write them --- see my previous e-mail about using fallocate.

Speaking of fallocate.... if this is a NAS box than the file is
probably written using CIFS, right?  Are you using a modern version of
Samba?  If you are use a new enough libc (that understands the
fallocate system call) and a new enough version of Samba, the
userspace should be using fallocate() to more efficiently allocate the
space.  This is a feature which is not in ext3, but it is supported by
ext4, and it's a major win.  The basic idea was discovered a while
ago, and was written up here:

http://software.intel.com/en-us/articles/windows-client-cifs-behavior-can-slow-linux-nas-performance/

(This was a 2007 report, and back then ext4 wasn't ready, so the only
file system available was XFS, which did have both delayed allocation
and fallocate support for preallocation.  XFS is a good filesystem,
although it often tends to be a bit memory-hungry for many bookshelf
NAS systems.)

See also see here for a patch (but I'm pretty sure this functionality
is already in the most recent version of Samba if I recall correctly):

https://bugzilla.redhat.com/show_bug.cgi?id=525532

I know a fair number of folks on the Samba core team; most of them
have been hired by companies to work full-time on CIFS support
(usually using Samba), but some of them may still be available to help
out on a consulting basis... let me know if you'd like me to make some
introductions.

							- Ted

P.S.  Amir, this is one of the reason why you folks should seriously think
about merging Next3 support into ext4.  :-)

  reply	other threads:[~2010-07-06 23:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-06  1:49 inconsistent file placement Daniel Taylor
2010-07-06  2:38 ` Eric Sandeen
2010-07-06  6:52 ` Amir G.
2010-07-06 18:55 ` tytso
2010-07-06 18:59   ` Eric Sandeen
2010-07-06 22:01     ` tytso
2010-07-06 22:15     ` Daniel Taylor
2010-07-06 23:14       ` tytso [this message]
2010-07-06 23:39         ` Eric Sandeen
2010-07-07  1:08         ` Daniel Taylor
2010-07-07  2:29           ` Eric Sandeen
2010-07-06 23:34       ` Eric Sandeen

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=20100706231412.GA7646@thunk.org \
    --to=tytso@mit.edu \
    --cc=Daniel.Taylor@wdc.com \
    --cc=amir73il@gmail.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=sandeen@redhat.com \
    /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 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.