public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* XFS on 2.6.26: reading the first 4K of a large file takes ages
@ 2010-05-19 11:33 Florian Weimer
  2010-05-19 11:48 ` Christoph Hellwig
  0 siblings, 1 reply; 7+ messages in thread
From: Florian Weimer @ 2010-05-19 11:33 UTC (permalink / raw)
  To: xfs

We've got a couple of rather large files, and with a cold cache,
reading the first 4K bytes of the file (e.g., just running
"head --bytes 4096" on it) takes ages, up to several minutes,
sometimes triggering the hang check timer.

I wonder if XFS reads the whole extent information into RAM when the
file is opened.  Is this the case, at least on 2.6.26?  Has this
changed in later versions, perhaps?

The files in question are heavily fragmented (they have been created
with holes first, and the holes have been filled in subsequently).
I'll try to run xfs_fsr on those files, but it's going to be
tough. 8-/

-- 
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

end of thread, other threads:[~2010-05-21  8:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-19 11:33 XFS on 2.6.26: reading the first 4K of a large file takes ages Florian Weimer
2010-05-19 11:48 ` Christoph Hellwig
2010-05-19 23:27   ` Dave Chinner
2010-05-20 12:11   ` Florian Weimer
2010-05-21  6:20     ` Stewart Smith
2010-05-21  6:43       ` Florian Weimer
2010-05-21  8:26         ` Dave Chinner

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