[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 2/6] add basic backup support to block driver
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v4 2/6] add basic backup support to block driver |
Date: |
Mon, 25 Feb 2013 14:27:03 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Feb 25, 2013 at 06:48:39AM +0000, Dietmar Maurer wrote:
> > > > > + for (; start < end; start++) {
> > > > > + if (block_job_is_cancelled(&job->common)) {
> > > > > + ret = -1;
> > > > > + break;
> > > > > + }
> > > > > +
> > > > > + /* we need to yield so that qemu_aio_flush() returns.
> > > > > + * (without, VM does not reboot)
> > > > > + * Note: use 1000 instead of 0 (0 prioritize this task too
> > > > > + much)
> > > >
> > > > indentation
> > > >
> > > > What does "0 prioritize this task too much" mean? If no rate limit
> > > > has been set the job should run at full speed. We should not
> > > > hardcode arbitrary delays like 1000.
> > >
> > > The VM itself gets somehow slower during backup - do not know why. As
> > workaround sleep 1000 works.
> >
> > Please find out why, it's a bug that an arbitrary sleep hides but doesn't
> > fix (plus
> > the sleep makes backup less efficient).
> >
> > If the VM becomes slow this loop is probably "spinning" without doing
> > blocking
> > I/O and only doing sleep 0. I guess that can happen when you loop over
> > blocks
> > that have already been backed up (bit has been set)?
>
> Well, 'slow' is the wrong term. The VM just gets a bit unresponsive - its
> just a feeling.
>
> I think this is because the backup job runs at same priority as normal guest
> IO.
>
> We previously used LVM and run backup with 'idle' IO priority (CFQ) to avoid
> such behavior.
>
> But qemu does not provide an IO queue where we can set scheduling priorities?
QEMU block jobs support rate-limiting. Set it to 10-20% of the disk's
throughput and the slowness should go away but the backup takes longer.
Stefan
- [Qemu-devel] [PATCH v4 0/6] Efficient VM backup for qemu, Dietmar Maurer, 2013/02/20
- [Qemu-devel] [PATCH v4 2/6] add basic backup support to block driver, Dietmar Maurer, 2013/02/20
- Re: [Qemu-devel] [PATCH v4 2/6] add basic backup support to block driver, Stefan Hajnoczi, 2013/02/20
- Re: [Qemu-devel] [PATCH v4 2/6] add basic backup support to block driver, Dietmar Maurer, 2013/02/21
- Re: [Qemu-devel] [PATCH v4 2/6] add basic backup support to block driver, Stefan Hajnoczi, 2013/02/21
- Re: [Qemu-devel] [PATCH v4 2/6] add basic backup support to block driver, Dietmar Maurer, 2013/02/25
- Re: [Qemu-devel] [PATCH v4 2/6] add basic backup support to block driver,
Stefan Hajnoczi <=
- Re: [Qemu-devel] [PATCH v4 2/6] add basic backup support to block driver, Dietmar Maurer, 2013/02/25
- Re: [Qemu-devel] [PATCH v4 2/6] add basic backup support to block driver, Stefan Hajnoczi, 2013/02/26
- Re: [Qemu-devel] [PATCH v4 2/6] add basic backup support to block driver, Dietmar Maurer, 2013/02/26
- Re: [Qemu-devel] [PATCH v4 2/6] add basic backup support to block driver, Stefan Hajnoczi, 2013/02/27
- Re: [Qemu-devel] [PATCH v4 2/6] add basic backup support to block driver, Dietmar Maurer, 2013/02/27
- Re: [Qemu-devel] [PATCH v4 2/6] add basic backup support to block driver, Kevin Wolf, 2013/02/28
- Re: [Qemu-devel] [PATCH v4 2/6] add basic backup support to block driver, Stefan Hajnoczi, 2013/02/26
- Re: [Qemu-devel] [PATCH v4 2/6] add basic backup support to block driver, Dietmar Maurer, 2013/02/26
[Qemu-devel] [PATCH v4 6/6] add vm state to backups, Dietmar Maurer, 2013/02/20
[Qemu-devel] [PATCH v4 1/6] add documenation for new backup framework, Dietmar Maurer, 2013/02/20