XFS on 2.6.26: reading the first 4K of a large file takes ages
Stewart Smith
stewart at flamingspork.com
Fri May 21 01:20:46 CDT 2010
On Thu, 20 May 2010 12:11:00 +0000, Florian Weimer <fweimer at bfk.de> wrote:
> Thanks for confirming my hunch. I don't think it's worth fixing this
> in XFS. The database should call posix_fallocate() before flushing
> its internal cache to the file in essentially random order, but it's
> difficult to get upstream to implement this (the source code is a bit
> hard to follow, unfortunately).
Which database?
You could always mount with allocsize or use other tools to do the
preallocation before things got too bad.
--
Stewart Smith
More information about the xfs
mailing list