From: Wido den Hollander <wido@42on.com>
To: Jason Dillaman <dillaman@redhat.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: Speeding up rbd_stat() in libvirt
Date: Mon, 4 Jan 2016 16:59:13 +0100 [thread overview]
Message-ID: <568A96D1.8040802@42on.com> (raw)
In-Reply-To: <780342854.4132479.1451921916433.JavaMail.zimbra@redhat.com>
On 04-01-16 16:38, Jason Dillaman wrote:
> Short term, assuming there wouldn't be an objection from the libvirt community, I think spawning a thread pool and concurrently executing several rbd_stat calls concurrently would be the easiest and cleanest solution. I wouldn't suggest trying to roll your own solution for retrieving image sizes for format 1 and 2 RBD images directly within libvirt.
>
I'll ask in the libvirt community if they allow such a thing.
> Longer term, given this use case, perhaps it would make sense to add an async version of rbd_open. The rbd_stat call itself just reads the data from memory initialized by rbd_open. On the Jewel branch, librbd has had some major rework and image loading is asynchronous under the hood already.
>
Hmm, that would be nice. In the callback I could call rbd_stat() and
populate the volume list within libvirt.
I would very much like to go that route since it saves me a lot of code
inside libvirt ;)
Wido
next prev parent reply other threads:[~2016-01-04 15:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-28 13:48 Speeding up rbd_stat() in libvirt Wido den Hollander
2016-01-04 15:38 ` Jason Dillaman
2016-01-04 15:59 ` Wido den Hollander [this message]
2016-01-06 15:31 ` Wido den Hollander
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=568A96D1.8040802@42on.com \
--to=wido@42on.com \
--cc=ceph-devel@vger.kernel.org \
--cc=dillaman@redhat.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.