public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Ext3 vs NTFS performance
@ 2007-05-01 20:43 Cabot, Mason B
  2007-05-01 21:23 ` Andrew Morton
                   ` (4 more replies)
  0 siblings, 5 replies; 39+ messages in thread
From: Cabot, Mason B @ 2007-05-01 20:43 UTC (permalink / raw)
  To: linux-kernel; +Cc: Cabot, Mason B

Hello all,

I've been testing the NAS performance of ext3/Openfiler 2.2 against
NTFS/WinXP and have found that NTFS significantly outperforms ext3 for
video workloads. The Windows CIFS client will attempt a poor-man's
pre-allocation of the file on the server by sending 1-byte writes at
128K-byte strides, breaking block allocation on ext3 and leading to
fragmentation and poor performance. This will happen for many
applications (including iTunes) as the CIFS client issues these
pre-allocates under the application layer.

I've posted a brief paper on Intel's OSS website
(http://softwarecommunity.intel.com/articles/eng/1259.htm). Please give
it a read and let me know what you think. In particular, I'd like to
arrive at the right place to fix this problem: is it in the filesystem,
VFS, or Samba?

thanks,
Mason 

(please CC responses to mason dot b dot cabot at intel dot com)

^ permalink raw reply	[flat|nested] 39+ messages in thread
* Re: Ext3 vs NTFS performance
@ 2007-05-03  3:51 Al Boldi
  0 siblings, 0 replies; 39+ messages in thread
From: Al Boldi @ 2007-05-03  3:51 UTC (permalink / raw)
  To: linux-kernel

David Chinner wrote:
> On Tue, May 01, 2007 at 01:43:18PM -0700, Cabot, Mason B wrote:
> > I've been testing the NAS performance of ext3/Openfiler 2.2 against
> > NTFS/WinXP and have found that NTFS significantly outperforms ext3 for
> > video workloads. The Windows CIFS client will attempt a poor-man's
> > pre-allocation of the file on the server by sending 1-byte writes at
> > 128K-byte strides, breaking block allocation on ext3 and leading to
> > fragmentation and poor performance. This will happen for many
> > applications (including iTunes) as the CIFS client issues these
> > pre-allocates under the application layer.
> > 
> > I've posted a brief paper on Intel's OSS website
> > (http://softwarecommunity.intel.com/articles/eng/1259.htm). Please give
> > it a read and let me know what you think. In particular, I'd like to
> > arrive at the right place to fix this problem: is it in the filesystem,
> > VFS, or Samba?

It's a Samba problem.  Samba doesn't do async writes, which v3.0 should have 
fixed.  Did you try that?

> As I commented on IRC to Val Henson - the XFS performance indicates
> that it is not a VFS or Samba problem.

XFS somewhat hides the Samba problem, by efficiently syncing to disk.


Thanks!

--
Al


^ permalink raw reply	[flat|nested] 39+ messages in thread
* Re: Ext3 vs NTFS performance
@ 2007-05-05  3:13 Xu CanHao
  2007-05-05 13:45 ` Theodore Tso
  0 siblings, 1 reply; 39+ messages in thread
From: Xu CanHao @ 2007-05-05  3:13 UTC (permalink / raw)
  To: linux-kernel

On Tue, 1 May 2007 13:43:18 -0700
"Cabot, Mason B" <mason.b.ca...@intel.com> wrote:

> Hello all,

> I've been testing the NAS performance of ext3/Openfiler 2.2 against
> NTFS/WinXP and have found that NTFS significantly outperforms ext3 for
> video workloads. The Windows CIFS client will attempt a poor-man's
> pre-allocation of the file on the server by sending 1-byte writes at
> 128K-byte strides, breaking block allocation on ext3 and leading to
> fragmentation and poor performance. This will happen for many
> applications (including iTunes) as the CIFS client issues these
> pre-allocates under the application layer.

On 5 Mai, 10:20, Theodore Tso <t...@mit.edu> wrote:
>
> This is being worked on already.  XFS has a per-filesystem ioctl, but
> we want to create a filesystem-independent system call,
> sys_fallocate(), that would wired into the already existing
> posix_fallocate() function exported by glibc.

The story told us: an application must look to the file-systems, ext3
is good at aaa, is not good at bbb; XFS is good at ccc, is not good at
ddd; reiserfs is good at eee, is not good at fff........

For this scenario, XFS is good at dealing with fragmentation while ext3 not.

^ permalink raw reply	[flat|nested] 39+ messages in thread
[parent not found: <8hiYr-2fJ-1@gated-at.bofh.it>]
* Re: Ext3 vs NTFS performance
@ 2007-05-06  1:48 Albert Cahalan
  0 siblings, 0 replies; 39+ messages in thread
From: Albert Cahalan @ 2007-05-06  1:48 UTC (permalink / raw)
  To: mason.b.cabot, akpm, linux-kernel, jra, tridge

Andrew Morton writes:
> "Cabot, Mason B" <mason.b.cabot@intel.com> wrote:

>> I've been testing the NAS performance of ext3/Openfiler 2.2 against
>> NTFS/WinXP and have found that NTFS significantly outperforms ext3 for
>> video workloads. The Windows CIFS client will attempt a poor-man's
>> pre-allocation of the file on the server by sending 1-byte writes at
>> 128K-byte strides, breaking block allocation on ext3 and leading to
>> fragmentation and poor performance. This will happen for many
>> applications (including iTunes) as the CIFS client issues these
>> pre-allocates under the application layer.
>
> Oh my gawd, what a stupid hack.  Now we know what the
> MS interoperability lab has been working on.

Stupid or not, this is their protocol. The cifs filesystem
driver needs a patch to do this. Probably that'll help get
better performance when Linux is writing to a Windows server.

^ permalink raw reply	[flat|nested] 39+ messages in thread
[parent not found: <8gShI-3hY-11@gated-at.bofh.it>]

end of thread, other threads:[~2007-09-12 23:47 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-01 20:43 Ext3 vs NTFS performance Cabot, Mason B
2007-05-01 21:23 ` Andrew Morton
2007-05-02 12:21   ` Andi Kleen
2007-05-02 16:04     ` Theodore Tso
2007-05-02 18:40       ` Andi Kleen
2007-05-02 19:28         ` Theodore Tso
2007-05-02 16:16   ` Theodore Tso
2007-05-02 18:08     ` Jeremy Allison
2007-05-02 19:34       ` Theodore Tso
2007-05-02 20:38         ` Jeff Garzik
2007-05-02 22:01           ` Theodore Tso
2007-05-02  3:54 ` Gerhard Mack
2007-05-02 15:46   ` David Chinner
2007-05-02 15:44 ` David Chinner
2007-05-02 19:46   ` Chris Mason
2007-05-03  0:15     ` David Chinner
2007-05-03 12:57       ` Chris Mason
2007-05-03 21:14   ` Valerie Henson
2007-05-03 22:40     ` Bernd Eckenfels
2007-05-04  8:12       ` Anton Altaparmakov
2007-05-04  9:46         ` Christoph Hellwig
2007-05-04 14:47           ` Anton Altaparmakov
2007-05-04 15:49           ` Michael Tokarev
2007-05-04 18:41             ` Theodore Tso
2007-05-05  9:59             ` Christoph Hellwig
2007-05-06 20:59           ` Jörn Engel
2007-05-04 12:23     ` Theodore Tso
2007-05-04 19:40       ` Valerie Henson
2007-05-04 18:56 ` Phillip Susi
2007-05-04 19:52   ` Cabot, Mason B
2007-05-07 14:31     ` Phillip Susi
2007-09-12 23:47 ` Update: " Cabot, Mason B
  -- strict thread matches above, loose matches on Subject: below --
2007-05-03  3:51 Al Boldi
2007-05-05  3:13 Xu CanHao
2007-05-05 13:45 ` Theodore Tso
     [not found] <8hiYr-2fJ-1@gated-at.bofh.it>
     [not found] ` <8huGm-2W4-33@gated-at.bofh.it>
2007-05-05 22:25   ` Bodo Eggert
2007-05-06  5:04     ` Xu CanHao
2007-05-06  1:48 Albert Cahalan
     [not found] <8gShI-3hY-11@gated-at.bofh.it>
     [not found] ` <8h1bh-8sG-11@gated-at.bofh.it>
     [not found]   ` <8h2Al-280-1@gated-at.bofh.it>
     [not found]     ` <8hW9y-2Lp-3@gated-at.bofh.it>
2007-05-07 11:21       ` Bodo Eggert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox