From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbvZM-0003BE-Oi for qemu-devel@nongnu.org; Fri, 23 Nov 2012 10:53:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbvZL-0008AV-Ew for qemu-devel@nongnu.org; Fri, 23 Nov 2012 10:53:32 -0500 Received: from mailpro.odiso.net ([89.248.209.98]:34385) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbvZL-0008AR-6L for qemu-devel@nongnu.org; Fri, 23 Nov 2012 10:53:31 -0500 Date: Fri, 23 Nov 2012 16:53:00 +0100 (CET) From: Alexandre DERUMIER Message-ID: In-Reply-To: <50AF8F01.9060008@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Qemu-devel] qcow2: slow internal snapshot creation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Dietmar Maurer , qemu-devel@nongnu.org >>Can you post more details about your benchmark setup so that this can be = >>reproduced? And does it reproduce with local files as well or only using = >>NFS? Sure, I have redone tests, here the results: (note that my netapp san have a nvram journal, so directio are as fast than= buffered io) preallocated vs non preallocated have a ratio of 5/1 for local, and 10/1 fo= r nfs. directio bench --------------- fio --filename=3D/dev/vdb --direct=3D1 -rw=3Drandwrite --bs=3D4K --size=3D5= G --iodepth=3D100 --group-reporting --name=3Dfile1 --ioengine=3Dlibaio buffered io bench ------------------ fio --filename=3D/dev/vdb --direct=3D1 -rw=3Drandwrite --bs=3D4K --size=3D5= G --iodepth=3D100 --group-reporting --name=3Dfile1 --ioengine=3Dlibaio results ------- local raw file --------------- cache=3Dnone, directio, 9000 iops cache=3Dnone, buffered io, 10000 iops local qcow2 preallocated -------------------------- cache=3Dnone, directio, 8000 iops cache=3Dnone, buffered io, 9000 iops local qcow2 non preallocated ----------------------------- cache=3Dnone, directio, 1400 iops cache=3Dnone, buffered io, 2000 iops nfs rawfile (netapp with nvram journal) ---------------------------------------- cache=3Dnone, directio, 15000 iops cache=3Dnone, buffered io, 15000 iops nfs qcow2 preallocated (netapp with nvram journal) ------------------- cache=3Dnone, directio, 12000 iops cache=3Dnone, buffered io, 12000 iops nfs qcow2 non preallocated (netapp with nvram journal) ----------------------------------------------------- cache=3Dnone, directio, 1500 iops cache=3Dnone, buffered io, 1500 iops Alexandre D e rumier Ing=C3=A9nieur Syst=C3=A8mes et R=C3=A9seaux Fixe : 03 20 68 88 85 Fax : 03 20 68 90 88 45 Bvd du G=C3=A9n=C3=A9ral Leclerc 59100 Roubaix 12 rue Marivaux 75002 Paris ----- Mail original ----- De: "Kevin Wolf" =C3=80: "Alexandre DERUMIER" Cc: "Dietmar Maurer" , qemu-devel@nongnu.org Envoy=C3=A9: Vendredi 23 Novembre 2012 15:58:09 Objet: Re: [Qemu-devel] qcow2: slow internal snapshot creation Am 23.11.2012 15:17, schrieb Alexandre DERUMIER: >>> Preallocation doesn't matter much these days. > > I have done benchmark through nfs on a netapp san, (with directio), > > I got 300 iops without preallocation, and 6000 iops with preallocation ..= .. This doesn't sound right, even for writethrough modes. Can you post more details about your benchmark setup so that this can be reproduced? And does it reproduce with local files as well or only using NFS? Kevin