From: alex@vasilevsky.name Subject: Re: VT is comically slow Date: Thu, 06 Jul 2006 17:43:50 -0800 Message-ID: <20060707014350.19F2C2F91A@ws6-3.us4.outblaze.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Anthony Liguori wrote: > ... > > We (Virtual Iron) are in a process of developing accelerated drivers for > > the HVM guests. Our goal for this effort is to get as close to native > > performance as possible and to make paravirtualization of guests > > unnecessary.=20=20 > ... > I don't think paravirtual drivers are necessary for good performance.=20 > There are a number of things about QEMU's device emulation that are less > than ideal. > Before deciding to implement accelerated drivers for many different guest O= Ses,=20 no trivial undertaking, we did quite a lot of analysis of QEMU and its capa= bilities. Our conclusion was that QEMU in the near future was not going to be able to= =20 reach performance goals that we set out for our product. Instead of hackin= g on=20 QEMU in hope of getting better numbers out of it, we decided to design and = implement=20 accelerated drivers and the performance numbers we are getting proves that = was the=20 right decision to make. As I mentioned in my post before, these drvers wil= l be freely=20 available under GPL and everyone is welcome to use them. > >... > Also, and I suspect this has more to do with your performance numbers, > QEMU currently does disk IO via read()/write() syscalls on an fd that's > open()'d without O_DIRECT. This means everything's going through the page > cache. The QEMU code that we use doesn't go through the dom0 buffer cache, we modi= fied the=20 code to use O_DIRECT. Can't user buffer cache and accelerated drivers (the= y go right=20 to the disk) together, it can cause disk corruption. The performance numbe= rs we get=20 from this version of QEMU is still 4 to 6 times slower that native disk I/O. > > I suspect that SCSI + linux-aio would result in close to native > performance. Since SCSI is already in QEMU CVS, it's not that far off. > You might be right, however even with pipelining and async I/O, I don't thi= nk it is going to get close to native I/O numbers. I guess we'll just have= to wait=20 and see. > > Best, -Alex V.