* Multiple concurrent async ops per IoCtx?
@ 2012-08-29 10:57 Rutger ter Borg
2012-08-29 13:40 ` qemu-rbd : savevm monitor command don't save vmstate, is it normal ? Alexandre DERUMIER
2012-08-29 14:41 ` Multiple concurrent async ops per IoCtx? Josh Durgin
0 siblings, 2 replies; 10+ messages in thread
From: Rutger ter Borg @ 2012-08-29 10:57 UTC (permalink / raw)
To: ceph-devel
Dear list,
are Rados' IoCtx objects able to process multiple asynchronous
operations at the same time, or is it necessary to wait for an operation
to complete, before issuing a following operation?
I.e., can I do the following and expect it to work?
IoCtx ctx;
ctx.aio_read( ... read 1 ... );
ctx.aio_read( ... read 2 ... );
ctx.aio_read( ... read 3 ... );
... time passes ...
read 3 completes (e.g.)
read 1 completes
read 2 completes
TIA,
Cheers,
Rutger
^ permalink raw reply [flat|nested] 10+ messages in thread
* qemu-rbd : savevm monitor command don't save vmstate, is it normal ?
2012-08-29 10:57 Multiple concurrent async ops per IoCtx? Rutger ter Borg
@ 2012-08-29 13:40 ` Alexandre DERUMIER
2012-08-29 13:48 ` Smart Weblications GmbH - Florian Wiessner
2012-08-29 16:15 ` Josh Durgin
2012-08-29 14:41 ` Multiple concurrent async ops per IoCtx? Josh Durgin
1 sibling, 2 replies; 10+ messages in thread
From: Alexandre DERUMIER @ 2012-08-29 13:40 UTC (permalink / raw)
To: ceph-devel
Hi,
I'm trying to take a full vm state snapshot with savevm monitor command (qemu 0.12rc1 + rbd 0.48.1)
it seem that vmstate is not saved in the snapshot. (I also don't notice any vm hang during snapshot)
Snapshot of disk is correctly made.
using loadvm monitor command, rollback correctly to disk snapshot but vm hang.
starting qemu with -loadvm snapshotname give
kvm: Error -22 while loading VM state
Is it normal ? Not implemented ?
Regards,
Alexandre
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: qemu-rbd : savevm monitor command don't save vmstate, is it normal ?
2012-08-29 13:40 ` qemu-rbd : savevm monitor command don't save vmstate, is it normal ? Alexandre DERUMIER
@ 2012-08-29 13:48 ` Smart Weblications GmbH - Florian Wiessner
2012-08-29 14:25 ` Alexandre DERUMIER
2012-08-29 16:15 ` Josh Durgin
1 sibling, 1 reply; 10+ messages in thread
From: Smart Weblications GmbH - Florian Wiessner @ 2012-08-29 13:48 UTC (permalink / raw)
To: Alexandre DERUMIER; +Cc: ceph-devel
Am 29.08.2012 15:40, schrieb Alexandre DERUMIER:
> Hi,
>
> I'm trying to take a full vm state snapshot with savevm monitor command (qemu 0.12rc1 + rbd 0.48.1)
>
Have you tried qemu 1.1.1? 0.12 seems very old!
--
Mit freundlichen Grüßen,
Florian Wiessner
Smart Weblications GmbH
Martinsberger Str. 1
D-95119 Naila
fon.: +49 9282 9638 200
fax.: +49 9282 9638 205
24/7: +49 900 144 000 00 - 0,99 EUR/Min*
http://www.smart-weblications.de
--
Sitz der Gesellschaft: Naila
Geschäftsführer: Florian Wiessner
HRB-Nr.: HRB 3840 Amtsgericht Hof
*aus dem dt. Festnetz, ggf. abweichende Preise aus dem Mobilfunknetz
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: qemu-rbd : savevm monitor command don't save vmstate, is it normal ?
2012-08-29 13:48 ` Smart Weblications GmbH - Florian Wiessner
@ 2012-08-29 14:25 ` Alexandre DERUMIER
0 siblings, 0 replies; 10+ messages in thread
From: Alexandre DERUMIER @ 2012-08-29 14:25 UTC (permalink / raw)
To: f wiessner; +Cc: ceph-devel
damn, I wanted to say, qemu 1.2rc1 ;)
----- Mail original -----
De: "Smart Weblications GmbH - Florian Wiessner" <f.wiessner@smart-weblications.de>
À: "Alexandre DERUMIER" <aderumier@odiso.com>
Cc: ceph-devel@vger.kernel.org
Envoyé: Mercredi 29 Août 2012 15:48:05
Objet: Re: qemu-rbd : savevm monitor command don't save vmstate, is it normal ?
Am 29.08.2012 15:40, schrieb Alexandre DERUMIER:
> Hi,
>
> I'm trying to take a full vm state snapshot with savevm monitor command (qemu 0.12rc1 + rbd 0.48.1)
>
Have you tried qemu 1.1.1? 0.12 seems very old!
--
Mit freundlichen Grüßen,
Florian Wiessner
Smart Weblications GmbH
Martinsberger Str. 1
D-95119 Naila
fon.: +49 9282 9638 200
fax.: +49 9282 9638 205
24/7: +49 900 144 000 00 - 0,99 EUR/Min*
http://www.smart-weblications.de
--
Sitz der Gesellschaft: Naila
Geschäftsführer: Florian Wiessner
HRB-Nr.: HRB 3840 Amtsgericht Hof
*aus dem dt. Festnetz, ggf. abweichende Preise aus dem Mobilfunknetz
--
--
Alexandre D e rumier
Ingénieur Systèmes et Réseaux
Fixe : 03 20 68 88 85
Fax : 03 20 68 90 88
45 Bvd du Général Leclerc 59100 Roubaix
12 rue Marivaux 75002 Paris
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: qemu-rbd : savevm monitor command don't save vmstate, is it normal ?
2012-08-29 13:40 ` qemu-rbd : savevm monitor command don't save vmstate, is it normal ? Alexandre DERUMIER
2012-08-29 13:48 ` Smart Weblications GmbH - Florian Wiessner
@ 2012-08-29 16:15 ` Josh Durgin
2012-08-29 16:25 ` Yehuda Sadeh
2012-08-29 16:29 ` Alexandre DERUMIER
1 sibling, 2 replies; 10+ messages in thread
From: Josh Durgin @ 2012-08-29 16:15 UTC (permalink / raw)
To: Alexandre DERUMIER; +Cc: ceph-devel
On 08/29/2012 06:40 AM, Alexandre DERUMIER wrote:
> Hi,
>
> I'm trying to take a full vm state snapshot with savevm monitor command (qemu 0.12rc1 + rbd 0.48.1)
>
> it seem that vmstate is not saved in the snapshot. (I also don't notice any vm hang during snapshot)
> Snapshot of disk is correctly made.
AFAIK the only block backend that supports saving the vmstate is qcow2.
For rbd, the savevm/loadvm monitor commands are equivalent to
'rbd snap create' and 'rbd snap rollback'. They just save/rollback the
disk.
> using loadvm monitor command, rollback correctly to disk snapshot but vm hang.
If you don't quiesce i/o i.e. via xfsfreeze (it works on the vfs level
now, so it's not xfs-specific anymore) before snapshotting a running
vm, the fs might require a fsck to be usable. This is only rolling back
the disk, and not the memory state, so doing it while the vm is running
is likely to cause problems.
> starting qemu with -loadvm snapshotname give
> kvm: Error -22 while loading VM state
>
>
> Is it normal ? Not implemented ?
bdrv_{save|load}_vmstate are not implemented.
>
> Regards,
>
> Alexandre
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: qemu-rbd : savevm monitor command don't save vmstate, is it normal ?
2012-08-29 16:15 ` Josh Durgin
@ 2012-08-29 16:25 ` Yehuda Sadeh
2012-08-29 17:05 ` Josh Durgin
2012-08-29 16:29 ` Alexandre DERUMIER
1 sibling, 1 reply; 10+ messages in thread
From: Yehuda Sadeh @ 2012-08-29 16:25 UTC (permalink / raw)
To: Josh Durgin; +Cc: Alexandre DERUMIER, ceph-devel
On Wed, Aug 29, 2012 at 9:15 AM, Josh Durgin <josh.durgin@inktank.com> wrote:
> On 08/29/2012 06:40 AM, Alexandre DERUMIER wrote:
>>
>> Hi,
>>
>> I'm trying to take a full vm state snapshot with savevm monitor command
>> (qemu 0.12rc1 + rbd 0.48.1)
>>
>> it seem that vmstate is not saved in the snapshot. (I also don't notice
>> any vm hang during snapshot)
>> Snapshot of disk is correctly made.
>
>
> AFAIK the only block backend that supports saving the vmstate is qcow2.
> For rbd, the savevm/loadvm monitor commands are equivalent to
> 'rbd snap create' and 'rbd snap rollback'. They just save/rollback the
> disk.
>
>
>> using loadvm monitor command, rollback correctly to disk snapshot but vm
>> hang.
>
>
> If you don't quiesce i/o i.e. via xfsfreeze (it works on the vfs level
> now, so it's not xfs-specific anymore) before snapshotting a running
> vm, the fs might require a fsck to be usable. This is only rolling back
> the disk, and not the memory state, so doing it while the vm is running
> is likely to cause problems.
>
>
>> starting qemu with -loadvm snapshotname give
>> kvm: Error -22 while loading VM state
>>
>>
>> Is it normal ? Not implemented ?
>
>
> bdrv_{save|load}_vmstate are not implemented.
>
How complicated would it be to implement it? Looking at the api it
seems trivial. We can add a new block with a .vmstate prefix and keeps
the raw data on it. We should probably add some librbd functionality
that stores and retrieves alternative data payloads and use it for
that.
Yehuda
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: qemu-rbd : savevm monitor command don't save vmstate, is it normal ?
2012-08-29 16:25 ` Yehuda Sadeh
@ 2012-08-29 17:05 ` Josh Durgin
0 siblings, 0 replies; 10+ messages in thread
From: Josh Durgin @ 2012-08-29 17:05 UTC (permalink / raw)
To: Yehuda Sadeh; +Cc: Alexandre DERUMIER, ceph-devel
On 08/29/2012 09:25 AM, Yehuda Sadeh wrote:
> On Wed, Aug 29, 2012 at 9:15 AM, Josh Durgin <josh.durgin@inktank.com> wrote:
>> On 08/29/2012 06:40 AM, Alexandre DERUMIER wrote:
>>>
>>> Hi,
>>>
>>> I'm trying to take a full vm state snapshot with savevm monitor command
>>> (qemu 0.12rc1 + rbd 0.48.1)
>>>
>>> it seem that vmstate is not saved in the snapshot. (I also don't notice
>>> any vm hang during snapshot)
>>> Snapshot of disk is correctly made.
>>
>>
>> AFAIK the only block backend that supports saving the vmstate is qcow2.
>> For rbd, the savevm/loadvm monitor commands are equivalent to
>> 'rbd snap create' and 'rbd snap rollback'. They just save/rollback the
>> disk.
>>
>>
>>> using loadvm monitor command, rollback correctly to disk snapshot but vm
>>> hang.
>>
>>
>> If you don't quiesce i/o i.e. via xfsfreeze (it works on the vfs level
>> now, so it's not xfs-specific anymore) before snapshotting a running
>> vm, the fs might require a fsck to be usable. This is only rolling back
>> the disk, and not the memory state, so doing it while the vm is running
>> is likely to cause problems.
>>
>>
>>> starting qemu with -loadvm snapshotname give
>>> kvm: Error -22 while loading VM state
>>>
>>>
>>> Is it normal ? Not implemented ?
>>
>>
>> bdrv_{save|load}_vmstate are not implemented.
>>
> How complicated would it be to implement it? Looking at the api it
> seems trivial. We can add a new block with a .vmstate prefix and keeps
> the raw data on it. We should probably add some librbd functionality
> that stores and retrieves alternative data payloads and use it for
> that.
>
> Yehuda
>
We probably wouldn't want to keep it in a single object, since it could
be very large, but it wouldn't be hard to reuse the regular I/O code to
stripe it across objects as well. It wouldn't be very complicated to
implement.
Josh
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: qemu-rbd : savevm monitor command don't save vmstate, is it normal ?
2012-08-29 16:15 ` Josh Durgin
2012-08-29 16:25 ` Yehuda Sadeh
@ 2012-08-29 16:29 ` Alexandre DERUMIER
1 sibling, 0 replies; 10+ messages in thread
From: Alexandre DERUMIER @ 2012-08-29 16:29 UTC (permalink / raw)
To: Josh Durgin; +Cc: ceph-devel
Thanks Josh,
that's exactly what I want to know.
(BTW: I think that sheepdog block driver also support the save of the vmstate
http://lists.wpkg.org/pipermail/sheepdog/2010-April/000368.html
)
Regards,
Alexandre
----- Mail original -----
De: "Josh Durgin" <josh.durgin@inktank.com>
À: "Alexandre DERUMIER" <aderumier@odiso.com>
Cc: ceph-devel@vger.kernel.org
Envoyé: Mercredi 29 Août 2012 18:15:17
Objet: Re: qemu-rbd : savevm monitor command don't save vmstate, is it normal ?
On 08/29/2012 06:40 AM, Alexandre DERUMIER wrote:
> Hi,
>
> I'm trying to take a full vm state snapshot with savevm monitor command (qemu 0.12rc1 + rbd 0.48.1)
>
> it seem that vmstate is not saved in the snapshot. (I also don't notice any vm hang during snapshot)
> Snapshot of disk is correctly made.
AFAIK the only block backend that supports saving the vmstate is qcow2.
For rbd, the savevm/loadvm monitor commands are equivalent to
'rbd snap create' and 'rbd snap rollback'. They just save/rollback the
disk.
> using loadvm monitor command, rollback correctly to disk snapshot but vm hang.
If you don't quiesce i/o i.e. via xfsfreeze (it works on the vfs level
now, so it's not xfs-specific anymore) before snapshotting a running
vm, the fs might require a fsck to be usable. This is only rolling back
the disk, and not the memory state, so doing it while the vm is running
is likely to cause problems.
> starting qemu with -loadvm snapshotname give
> kvm: Error -22 while loading VM state
>
>
> Is it normal ? Not implemented ?
bdrv_{save|load}_vmstate are not implemented.
>
> Regards,
>
> Alexandre
--
--
Alexandre D e rumier
Ingénieur Systèmes et Réseaux
Fixe : 03 20 68 88 85
Fax : 03 20 68 90 88
45 Bvd du Général Leclerc 59100 Roubaix
12 rue Marivaux 75002 Paris
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Multiple concurrent async ops per IoCtx?
2012-08-29 10:57 Multiple concurrent async ops per IoCtx? Rutger ter Borg
2012-08-29 13:40 ` qemu-rbd : savevm monitor command don't save vmstate, is it normal ? Alexandre DERUMIER
@ 2012-08-29 14:41 ` Josh Durgin
2012-08-30 12:16 ` Rutger ter Borg
1 sibling, 1 reply; 10+ messages in thread
From: Josh Durgin @ 2012-08-29 14:41 UTC (permalink / raw)
To: Rutger ter Borg; +Cc: ceph-devel
On 08/29/2012 03:57 AM, Rutger ter Borg wrote:
>
> Dear list,
>
> are Rados' IoCtx objects able to process multiple asynchronous
> operations at the same time, or is it necessary to wait for an operation
> to complete, before issuing a following operation?
>
> I.e., can I do the following and expect it to work?
>
> IoCtx ctx;
> ctx.aio_read( ... read 1 ... );
> ctx.aio_read( ... read 2 ... );
> ctx.aio_read( ... read 3 ... );
>
> ... time passes ...
>
> read 3 completes (e.g.)
> read 1 completes
> read 2 completes
>
> TIA,
> Cheers,
>
> Rutger
Yes, all the asynchronous functions can run in parallel. An IoCtx
has little bearing on performance - it mostly just saves you from
specifying the full set of parameters (i.e. pool, snapshot id, snapshot
context, etc.) for each operation.
Are you seeing behavior that looks like the aio operations aren't being
run in parallel?
Josh
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Multiple concurrent async ops per IoCtx?
2012-08-29 14:41 ` Multiple concurrent async ops per IoCtx? Josh Durgin
@ 2012-08-30 12:16 ` Rutger ter Borg
0 siblings, 0 replies; 10+ messages in thread
From: Rutger ter Borg @ 2012-08-30 12:16 UTC (permalink / raw)
To: ceph-devel
On 2012-08-29 16:41, Josh Durgin wrote:
> Yes, all the asynchronous functions can run in parallel. An IoCtx
> has little bearing on performance - it mostly just saves you from
> specifying the full set of parameters (i.e. pool, snapshot id, snapshot
> context, etc.) for each operation.
>
> Are you seeing behavior that looks like the aio operations aren't being
> run in parallel?
>
> Josh
Thanks, that's all I wanted to check at this point!
Cheers,
Rutger
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2012-08-30 12:17 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-29 10:57 Multiple concurrent async ops per IoCtx? Rutger ter Borg
2012-08-29 13:40 ` qemu-rbd : savevm monitor command don't save vmstate, is it normal ? Alexandre DERUMIER
2012-08-29 13:48 ` Smart Weblications GmbH - Florian Wiessner
2012-08-29 14:25 ` Alexandre DERUMIER
2012-08-29 16:15 ` Josh Durgin
2012-08-29 16:25 ` Yehuda Sadeh
2012-08-29 17:05 ` Josh Durgin
2012-08-29 16:29 ` Alexandre DERUMIER
2012-08-29 14:41 ` Multiple concurrent async ops per IoCtx? Josh Durgin
2012-08-30 12:16 ` Rutger ter Borg
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.