From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWqar-0002po-28 for qemu-devel@nongnu.org; Wed, 15 Jun 2011 09:57:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWqap-00056Y-Gs for qemu-devel@nongnu.org; Wed, 15 Jun 2011 09:57:16 -0400 Received: from mail-yw0-f45.google.com ([209.85.213.45]:57850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWqap-00056M-57 for qemu-devel@nongnu.org; Wed, 15 Jun 2011 09:57:15 -0400 Received: by ywl41 with SMTP id 41so318533ywl.4 for ; Wed, 15 Jun 2011 06:57:14 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1307544625-22907-1-git-send-email-konishchev@gmail.com> <20110613082608.GA25582@stefanha-thinkpad.localdomain> Date: Wed, 15 Jun 2011 14:57:13 +0100 Message-ID: From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] [PATCH] CPU consumption optimization of 'qemu-img convert' using bdrv_is_allocated() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dmitry Konishchev Cc: Kevin Wolf , qemu-devel@nongnu.org 2011/6/15 Dmitry Konishchev : > On Wed, Jun 15, 2011 at 5:33 PM, Stefan Hajnoczi wrote: >> "disable caching"? > > Image geometry caching. I meant If I call bdrv_get_geometry() every > time I need image geometry instead of obtaining it from bs_geometry > variable. Haha, sorry. Too much caching: -drive cache=none, total_sectors cached value, bdrv_get_geometry() cached values :). Anyway, bdrv_getlength() will return the total_sectors value instead of calling into raw-posix.c .bdrv_getlength(). That's why it should be cheap. Stefan