From: Paolo Bonzini <pbonzini@redhat.com>
To: Max Reitz <mreitz@redhat.com>, Kevin Wolf <kwolf@redhat.com>,
Stefan Hajnoczi <stefanha@gmail.com>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [RFC] qemu-img: Drop BLK_ZERO from convert
Date: Wed, 7 Mar 2018 17:33:29 +0100 [thread overview]
Message-ID: <adaf915b-50fc-c0a4-a27f-12b9e609c14a@redhat.com> (raw)
In-Reply-To: <a9315872-40fa-16fe-7107-7d74e2b24e52@redhat.com>
On 07/03/2018 16:57, Max Reitz wrote:
>>>> (2) For sparse raw images, this is absolutely devastating. Reading them
>>>> now takes more than (ext4) or nearly (xfs) twice as much time as reading
>>>> a fully allocated image. So much for "if a filesystem driver has any
>>>> sense".
>> Are you sure that only the filesystem is the problem? Checking for every
>> single byte of an image whether it is zero has to cost some performance.
> Well, yes, but "read data location from FS metadata" + "realize it's a
> hole" + memset() + "repe scasb" shouldn't take twice as much time as
> "read data location from FS metadata" + "read data from SSD".
>
> I expected the "realize it's a hole" part to fall out for free, so this
> would that memset() + repe scasb take much longer than reading data from
> the SSD -- and that's just pretty much impossible.
>
This makes a lot of sense, but just to double-check, what does profiling
say?
Paolo
next prev parent reply other threads:[~2018-03-07 16:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-26 17:03 [Qemu-devel] [RFC] qemu-img: Drop BLK_ZERO from convert Max Reitz
2018-02-27 16:17 ` Stefan Hajnoczi
2018-02-28 18:08 ` Max Reitz
2018-02-28 20:11 ` Max Reitz
2018-02-28 20:23 ` Max Reitz
2018-03-06 13:47 ` Stefan Hajnoczi
2018-03-06 17:37 ` Kevin Wolf
2018-03-07 15:57 ` Max Reitz
2018-03-07 16:33 ` Paolo Bonzini [this message]
2018-03-07 17:11 ` Max Reitz
2018-03-07 17:05 ` Kevin Wolf
2018-03-07 17:22 ` Max Reitz
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=adaf915b-50fc-c0a4-a27f-12b9e609c14a@redhat.com \
--to=pbonzini@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.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).