qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] CPU consumption optimization of 'qemu-img conve


From: Dmitry Konishchev
Subject: Re: [Qemu-devel] [PATCH] CPU consumption optimization of 'qemu-img convert' using bdrv_is_allocated()
Date: Wed, 15 Jun 2011 11:38:27 +0400

On Tue, Jun 14, 2011 at 7:58 PM, Stefan Hajnoczi <address@hidden> wrote:
> Yes, please.

OK, I'll do it as soon I'll find time for it.


On Tue, Jun 14, 2011 at 7:58 PM, Stefan Hajnoczi <address@hidden> wrote:
> For image files the block layer should be caching the device capacity (size)
> anyway, so you probably don't need to allocate the array, just call
> bdrv_get_geometry().  That might make it easier to write a self-contained
> function.

I've tried to not cache, but it turned out that bdrv_get_geometry()
calls are quite noticeable in profiler without caching.

-- 
Дмитрий Конищев (Dmitry Konishchev)
mailto:address@hidden



reply via email to

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