qemu-devel
[Top][All Lists]
Advanced

[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: Tue, 26 Feb 2013 17:52:39 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Feb 25, 2013 at 03:49:11PM +0000, Dietmar Maurer wrote:
> > > 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.
> 
> Sorry, but I don't want to set a rate limit. I want to set an IO priority - 
> this is something different.
> My solution does not delay the backup.

I just reread the code and noticed the delay is 1 microsecond, not 1
millisecond.

The problem is that this is a magic value.  It worked on your machine
with your workload, but there's no guarantee it works on anyone else's
machine or workload.  We can't depend on magic values like this.

If you want to implement an alternative to rate-limiting, please do it
in a separate patch series and make it work for all block job types.

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]