* RBD stall when creating and listing images
@ 2012-04-21 11:26 Wido den Hollander
2012-04-22 4:34 ` Sage Weil
0 siblings, 1 reply; 3+ messages in thread
From: Wido den Hollander @ 2012-04-21 11:26 UTC (permalink / raw)
To: ceph-devel@vger.kernel.org
Hi,
I was just playing with my libvirt driver and I noticed a stall.
On one host I had running:
for i in {0..8192}; do rbd create --size 64 image-$i; echo "created
image-$i"; done
And on the other host I was running a pool-refresh in libvirt.
As I was tailing the libvirt log I noticed that it had stalled, so I
checked my other terminal and saw that the creation of new images had
also stalled.
This situation persisted for about ~20 seconds and then everything
started to continue.
At the moment of the stall libvirt was calling rbd_list and was not
doing any rbd_stat yet.
I'm trying to reproduce it here, but I wonder if there is a logical
explanation for this situation?
I'm running 0.44 on my cluster and 0.45 on the client btw.
Wido
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: RBD stall when creating and listing images
2012-04-21 11:26 RBD stall when creating and listing images Wido den Hollander
@ 2012-04-22 4:34 ` Sage Weil
2012-04-23 9:03 ` Wido den Hollander
0 siblings, 1 reply; 3+ messages in thread
From: Sage Weil @ 2012-04-22 4:34 UTC (permalink / raw)
To: Wido den Hollander; +Cc: ceph-devel@vger.kernel.org
On Sat, 21 Apr 2012, Wido den Hollander wrote:
> Hi,
>
> I was just playing with my libvirt driver and I noticed a stall.
>
> On one host I had running:
>
> for i in {0..8192}; do rbd create --size 64 image-$i; echo "created image-$i";
> done
>
> And on the other host I was running a pool-refresh in libvirt.
>
> As I was tailing the libvirt log I noticed that it had stalled, so I checked
> my other terminal and saw that the creation of new images had also stalled.
>
> This situation persisted for about ~20 seconds and then everything started to
> continue.
>
> At the moment of the stall libvirt was calling rbd_list and was not doing any
> rbd_stat yet.
>
> I'm trying to reproduce it here, but I wonder if there is a logical
> explanation for this situation?
>
> I'm running 0.44 on my cluster and 0.45 on the client btw.
Nothing comes to mind.. unless libvirt is doing something silly on
pool-refresh and actually modifies each image header (which would make
users stop and refresh).
If you can reproduce this with some logs (ideally the stalling client),
I'd love to see what's going on.
sage
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: RBD stall when creating and listing images
2012-04-22 4:34 ` Sage Weil
@ 2012-04-23 9:03 ` Wido den Hollander
0 siblings, 0 replies; 3+ messages in thread
From: Wido den Hollander @ 2012-04-23 9:03 UTC (permalink / raw)
To: Sage Weil; +Cc: ceph-devel@vger.kernel.org
On 04/22/2012 06:34 AM, Sage Weil wrote:
> On Sat, 21 Apr 2012, Wido den Hollander wrote:
>> Hi,
>>
>> I was just playing with my libvirt driver and I noticed a stall.
>>
>> On one host I had running:
>>
>> for i in {0..8192}; do rbd create --size 64 image-$i; echo "created image-$i";
>> done
>>
>> And on the other host I was running a pool-refresh in libvirt.
>>
>> As I was tailing the libvirt log I noticed that it had stalled, so I checked
>> my other terminal and saw that the creation of new images had also stalled.
>>
>> This situation persisted for about ~20 seconds and then everything started to
>> continue.
>>
>> At the moment of the stall libvirt was calling rbd_list and was not doing any
>> rbd_stat yet.
>>
>> I'm trying to reproduce it here, but I wonder if there is a logical
>> explanation for this situation?
>>
>> I'm running 0.44 on my cluster and 0.45 on the client btw.
>
> Nothing comes to mind.. unless libvirt is doing something silly on
> pool-refresh and actually modifies each image header (which would make
> users stop and refresh).
>
No, it doesn't. This is the libvirt code:
https://github.com/wido/libvirt/blob/rbd/src/storage/storage_backend_rbd.c#L312
> If you can reproduce this with some logs (ideally the stalling client),
> I'd love to see what's going on.
I think a "rbd ls" on one host and "rbd create" on another host should
give the same result.
I'll try with that and see what comes out of it.
Wido
>
> sage
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-23 9:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-21 11:26 RBD stall when creating and listing images Wido den Hollander
2012-04-22 4:34 ` Sage Weil
2012-04-23 9:03 ` Wido den Hollander
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.