From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhy8D-000897-Nw for qemu-devel@nongnu.org; Tue, 14 Apr 2015 06:31:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yhy86-0001jm-MW for qemu-devel@nongnu.org; Tue, 14 Apr 2015 06:31:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhy86-0001jg-H8 for qemu-devel@nongnu.org; Tue, 14 Apr 2015 06:31:42 -0400 Date: Tue, 14 Apr 2015 12:31:39 +0200 From: Kevin Wolf Message-ID: <20150414103139.GD4824@noname.redhat.com> References: <552834C1.9070105@gmail.com> <20150413014546.GB14218@ad.nay.redhat.com> <552BB682.6070707@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <552BB682.6070707@gmail.com> Subject: Re: [Qemu-devel] Very poor IO performance which looks like some design problem. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ein Cc: Fam Zheng , qemu-devel@nongnu.org Am 13.04.2015 um 14:28 hat ein geschrieben: > Dear Fam, > > Check out my update please: > http://lists.nongnu.org/archive/html/qemu-devel/2015-04/msg01318.html > > Using aio=native,cache=none results in 500%-2000% performance drop comparing to > bare metal and 300%-1000% comparing to aio=threads,cache=unsafe. cache=unsafe isn't really useful to compare against because it throws all flush requests away. If your benchmark includes disk flushes, you're only cheating yourself with this mode. It's generally accepted that cache=none,aio=native is the best configuration for such scenarios. Also make sure to use the right guest configuration; for example, using the right I/O scheduler can make a major difference for Linux guests. Not sure how to configure Windows for best performance, maybe someone else can help with that. If you insist on cheating and would like to combine both, you could give 'cache=none,cache.no-flush=on,aio=native' a try. Kevin