From: Ingo Molnar Subject: Re: [ANNOUNCE] Native Linux KVM tool v2 Date: Thu, 16 Jun 2011 10:07:58 +0200 Message-ID: <20110616080758.GB28449@elte.hu> References: <1308153214.7566.6.camel@jaguar> <4DF8DE26.1070301@redhat.com> <4DF92C80.3030106@codemonkey.ws> <7A30A509-47AA-4E72-ABF3-937005900F9D@suse.de> <20110616072452.GA15366@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Alexander Graf , Anthony Liguori , Prasad Joshi , Avi Kivity , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Andrew Morton , Linus Torvalds , Sasha Levin , Cyrill Gorcunov , Asias He , Jens Axboe To: Pekka Enberg Return-path: Received: from mx2.mail.elte.hu ([157.181.151.9]:33488 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753438Ab1FPIIY (ORCPT ); Thu, 16 Jun 2011 04:08:24 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: * Pekka Enberg wrote: > Hi Ingo, >=20 > On Thu, Jun 16, 2011 at 10:24 AM, Ingo Molnar wrote: > > =A0- executing AIO in the vcpu thread eats up precious vcpu executi= on > > =A0 time: combined QCOW2 throughput would be limited by a single > > =A0 core's performance, and any time spent on QCOW2 processing woul= d > > =A0 not be spent running the guest CPU. (In such a model we certain= ly > > =A0 couldnt do more intelligent, CPU-intense storage solutions like= on > > =A0 the fly compress/decompress of QCOW2 data.) >=20 > Most image formats have optional on-the-fly=20 > compression/decompression so we'd need to keep the current I/O=20 > thread scheme anyway. Yeah - although high-performance setups will probably not use that. > > I'd only consider KAIO it if it provides some *real* measurable=20 > > performance advantage of at least 10% in some important usecase.=20 > > A few percent probably wouldnt be worth it. >=20 > I've only been following AIO kernel development from the sidelines=20 > but I really haven't seen any reports of significant gains over=20 > read()/write() from a thread pool. Are there any such reports? I've measured such gains myself a couple of years ago, using an=20 Oracle DB and a well-known OLTP benchmark, on a 64-way system. I also profiled+tuned the kernel-side AIO implementation to be more=20 scalable so i'm reasonably certain that the gains exist, and they=20 were above 10%. So the kaio gains existed back then but they needed sane userspace=20 (POSIX AIO with signal notification sucks) and needed a well-tuned=20 in-kernel implementation as well. (the current AIO code might have=20 bitrotted) Also, synchronous read()/write() [and scheduler() :-)] scalability=20 improvements have not stopped in the past few years so the=20 performance picture might have shifted in favor of a thread pool. Thanks, Ingo