From: Dave Chinner <david@fromorbit.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: xfs@oss.sgi.com, Florian Weimer <fweimer@bfk.de>
Subject: Re: XFS on 2.6.26: reading the first 4K of a large file takes ages
Date: Thu, 20 May 2010 09:27:31 +1000 [thread overview]
Message-ID: <20100519232731.GR8120@dastard> (raw)
In-Reply-To: <20100519114826.GA18224@infradead.org>
On Wed, May 19, 2010 at 07:48:26AM -0400, Christoph Hellwig wrote:
> On Wed, May 19, 2010 at 11:33:27AM +0000, Florian Weimer wrote:
> > 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?
>
> Yes, XFS always reads in the extent map, and no this hasn't changed
> recently.
And demand paging the in-memory information is hard. It's on a to-do
list somewhere 'round here....
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2010-05-19 23:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100519232731.GR8120@dastard \
--to=david@fromorbit.com \
--cc=fweimer@bfk.de \
--cc=hch@infradead.org \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.