From: Szakacsits Szabolcs <szaka@sienet.hu>
To: Bryan Henderson <hbryan@us.ibm.com>
Cc: Chris Wedgwood <cw@f00f.org>,
linux@horizon.com, linux-fsdevel@vger.kernel.org
Subject: Re: SEEK_HOLE and SEEK_DATA
Date: Sat, 4 Feb 2006 01:41:52 +0200 (MET DST) [thread overview]
Message-ID: <Pine.LNX.4.61.0602040019550.16335@dhcppc0> (raw)
In-Reply-To: <OFFFF96225.C7A5DF87-ON8825710A.00774348-8825710A.0078E7E9@us.ibm.com>
On Fri, 3 Feb 2006, Bryan Henderson wrote:
> It isn't obvious to me that a series of seek/tell are noticeably slower
> when copying a file than a single system call that returns a list.
It depends on how fast one is able to copy.
A special but not so unusual case of this if one doesn't want to copy at
all and just interested in querying this information for analyses, future
decisions, etc. Then the numbers would be something like this for e.g. a
200 GB sparse file:
JFS + FIBMAP 137.80 sec 97% CPU
XFS + FIBMAP 117.81 sec 97% CPU
ext3 + FIBMAP 88.40 sec 96% CPU
XFS + XFS_IOC_GETBMAPX 0.05 sec 95% CPU
SEEK_HOLE/SEEK_DATA is somewhere between XFS_IOC_GETBMAPX and FIBMAP, in
the worst case half-way.
> I usually prefer a special version of read() that shows you holes
> explicitly to either of the other approaches, but SEEK_HOLE/SEEK_DATA has
> the definite advantage of being a smaller perturbance of the API and
> easier to understand.
Absolutely. For the price being less useful and efficient.
Szaka
next prev parent reply other threads:[~2006-02-03 23:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-02 9:03 SEEK_HOLE and SEEK_DATA linux
2006-02-03 18:08 ` Chris Wedgwood
2006-02-03 18:23 ` Szakacsits Szabolcs
2006-02-03 19:37 ` Chris Wedgwood
2006-02-03 22:00 ` Bryan Henderson
2006-02-03 23:41 ` Szakacsits Szabolcs [this message]
2006-02-03 23:53 ` Chris Wedgwood
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=Pine.LNX.4.61.0602040019550.16335@dhcppc0 \
--to=szaka@sienet.hu \
--cc=cw@f00f.org \
--cc=hbryan@us.ibm.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux@horizon.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 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).