From: Tim Smith <tim.smith@citrix.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Kevin Wolf <kwolf@redhat.com>, Max Reitz <mreitz@redhat.com>,
Eric Blake <eblake@redhat.com>
Subject: Re: [Qemu-devel] Very slow finding extents in QCOW2-backed nbd
Date: Mon, 28 Jan 2019 16:50:31 +0000 [thread overview]
Message-ID: <3048424.2nWJ6aN5el@dhcp-3-135.uk.xensource.com> (raw)
In-Reply-To: <23d84b3a-f4ac-07e0-5ce2-f86ec899cc2c@virtuozzo.com>
On Monday, 28 January 2019 14:41:35 GMT Vladimir Sementsov-Ogievskiy wrote:
> 28.01.2019 14:58, Tim Smith wrote:
>
> > Hi all, I have a question about the intent of the last call to
> > bdrv_co_block_status() in bdrv_co_block_status(), in block/io.c about
> > line
> > 2195, which looks like this:
> >
> >
> > ret2 = bdrv_co_block_status(local_file, want_zero, local_map,
> >
> > *pnum, &file_pnum, NULL, NULL);
> >
> > if (ret2 >= 0) {
> >
> > /* Ignore errors. This is just providing extra information,
> > it
> >
> > * is useful but not necessary.
> > */
>
>
> Hi Tim!
>
> The question is highly discussed now on list, in short: yes it's a problem,
> and, I hope, we'll soon reach a consensus about how to finally fix it.
> This second block_status request is needed when we have qcow2 image with
> metadata preallocation, which means that qcow2 data clusters are actually
> backed by holes on filesystem level.
>
> You can follow the discussion under the following threads:
>
> initial discussion:
> https://lists.gnu.org/archive/html/qemu-devel/2018-12/msg05749.html
>
> solutions:
>
> cache lseek results, by Kevin:
> https://lists.gnu.org/archive/html/qemu-devel/2019-01/msg06271.html
>
> detect preallocation, and don't do second block_status for not
> preallocated, my last try:
> https://lists.gnu.org/archive/html/qemu-devel/2019-01/msg06598.html
Thanks, I'll keep an eye on these. My use-case does not require preallocation
so I'll carry a patch for a bit and see how it works out.
--
Tim Smith <tim.smith@citrix.com>
prev parent reply other threads:[~2019-01-28 16:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-28 11:58 [Qemu-devel] Very slow finding extents in QCOW2-backed nbd Tim Smith
2019-01-28 14:41 ` Vladimir Sementsov-Ogievskiy
2019-01-28 16:50 ` Tim Smith [this message]
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=3048424.2nWJ6aN5el@dhcp-3-135.uk.xensource.com \
--to=tim.smith@citrix.com \
--cc=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=vsementsov@virtuozzo.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).