From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=45759 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1OfQ-0000rh-Pc for qemu-devel@nongnu.org; Thu, 30 Sep 2010 15:19:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1OfP-00063R-H4 for qemu-devel@nongnu.org; Thu, 30 Sep 2010 15:19:44 -0400 Received: from e4.ny.us.ibm.com ([32.97.182.144]:48732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1OfP-000638-Ea for qemu-devel@nongnu.org; Thu, 30 Sep 2010 15:19:43 -0400 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e4.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id o8UJ41Tp029691 for ; Thu, 30 Sep 2010 15:04:01 -0400 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o8UJJfPV103736 for ; Thu, 30 Sep 2010 15:19:41 -0400 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o8UJJek4028808 for ; Thu, 30 Sep 2010 13:19:40 -0600 Message-ID: <4CA4E2CA.5030606@linux.vnet.ibm.com> Date: Thu, 30 Sep 2010 12:19:38 -0700 From: "Venkateswararao Jujjuri (JV)" MIME-Version: 1.0 Subject: Re: [Qemu-devel] QEMU throughput is down with SMP References: <4CA3DEC7.5070609@linux.vnet.ibm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Qemu-development List On 9/30/2010 2:13 AM, Stefan Hajnoczi wrote: > On Thu, Sep 30, 2010 at 1:50 AM, Venkateswararao Jujjuri (JV) > wrote: >> Code: Mainline QEMU (git://git.qemu.org/qemu.git) >> Machine: LS21 blade. >> Disk: Local disk through VirtIO. >> Did not select any cache option. Defaulting to writethrough. >> >> Command tested: >> 3 parallel instances of : dd if=/dev/zero of=/pmnt/my_pw bs=4k count=100000 >> >> QEMU with smp=1 >> 19.3 MB/s + 19.2 MB/s + 18.6 MB/s = 57.1 MB/s >> >> QEMU with smp=4 >> 15.3 MB/s + 14.1 MB/s + 13.6 MB/s = 43.0 MB/s >> >> Is this expected? > > Did you configure with --enable-io-thread? Yes I did. > > Also, try using dd oflag=direct to eliminate effects introduced by the > guest page cache and really hit the disk. With oflag=direct , I see no difference and the throughput is so slow and I would not expect to see any difference. It is 225 kb/s for each thread either with smp=1 or with smp=4. - JV > > Stefan >