linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Significantly longer fallocate times with Flag Unwritten Extents disabled
@ 2017-03-06 12:02 Bill McDuck
  2017-03-06 13:05 ` Brian Foster
  2017-03-08 15:56 ` Christoph Hellwig
  0 siblings, 2 replies; 5+ messages in thread
From: Bill McDuck @ 2017-03-06 12:02 UTC (permalink / raw)
  To: linux-xfs

Hello.

I have been testing the performance of XFS with "Flag Unwritten
Extents" enabled and disabled.

For security reasons I know XFS flags all unwritten extents by
default, so that uninitialized disk space cannot be read by the user.
In my application I actually want to have access to this uninitialized
disk space. I have been modifying the superblocks using xfs_repair to
enable this functionality.

Interestingly, I have found that creating a 10 GB file using fallocate
is significantly slower with unwritten flag extents disabled.  For
instance, creating a 10GB file takes 32 seconds on my (slow) machine,
whereas with the flag enabled, the process is almost instantaneous.

Does anyone know why creating an uninitialized file is so much slower
when the unwritten extents flag functionality is disabled?  I know
that the disk is not being initialized to zero, as I can read back non
zero content.

For my application I'm interested in creating large uninitialised
files quickly, so I'm very interested to know what additional
operations are being performed with the flagging disabled.

Thanks for the help.

Bill.

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

end of thread, other threads:[~2017-03-08 21:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-06 12:02 Significantly longer fallocate times with Flag Unwritten Extents disabled Bill McDuck
2017-03-06 13:05 ` Brian Foster
2017-03-08 15:56 ` Christoph Hellwig
2017-03-08 16:48   ` Bill
2017-03-08 21:50     ` Dave Chinner

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