[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <0733FB88-3E6E-47B7-A55D-704B5C0DB239@cam.ac.uk>
Date: Fri, 4 May 2007 09:12:31 +0100
From: Anton Altaparmakov <aia21@....ac.uk>
To: Bernd Eckenfels <ecki@...a.inka.de>
Cc: linux-kernel@...r.kernel.org
Subject: Re: Ext3 vs NTFS performance
On 3 May 2007, at 23:40, Bernd Eckenfels wrote:
> In article <20070503211450.GA3869@...ty> you wrote:
>> For this particular case, Ted is probably right and the only place
>> we'll ever see this insane poor man's pre-allocate pattern is from
>> the
>> Windows CIFS client, in which case fixing this in Samba makes sense -
>> although I'm a bit horrified by the idea of writing 128K of zeroes to
>> pre-allocate... oh well, it's temporary, and what we care about here
>> is the read performance, more than the write performance.
>
> What about an ioctl or advice to avoid holes? Which could be issued by
> samba? Is that related to SetFileValidData and SetEndOfFile win32
> functions?
> What is the windows client calling, and what command is transmitted
> by smb?
Nothing to do with win32 functions. Windows does NOT create sparse
files therefore it never can have an issue like ext3 does in this
scenario. Windows will cause nice allocations to happen because of
this and the 1-byte writes are perfectly sensible in this regard.
(Although a little odd as Windows has a proper API for doing
preallocation so I don't get why it is not using that instead...)
As far as I know the only time Windows will create sparse files is if
you specifically mark a file as sparse using the FSCTL_SET_SPARSE
ioctl and then create a sparse region using the FSCTL_SET_ZERO_DATA
ioctl.
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer, http://www.linux-ntfs.org/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists