From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QA6UB-0000qy-8h for qemu-devel@nongnu.org; Wed, 13 Apr 2011 16:16:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QA6UA-0000pz-C7 for qemu-devel@nongnu.org; Wed, 13 Apr 2011 16:16:23 -0400 Received: from hall.aurel32.net ([88.191.126.93]:37521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QA6UA-0000pq-4m for qemu-devel@nongnu.org; Wed, 13 Apr 2011 16:16:22 -0400 Date: Wed, 13 Apr 2011 22:16:16 +0200 From: Aurelien Jarno Message-ID: <20110413201615.GA15989@volta.aurel32.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v2 0/3] io-thread optimizations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Paolo Bonzini , Anthony Liguori , Marcelo Tosatti , qemu-devel@nongnu.org On Mon, Apr 11, 2011 at 10:27:41PM +0200, Jan Kiszka wrote: > These patches were posted before. They bring down the overhead of the > io-thread mode for TCG here, specifically when emulating SMP. > > The major change in this version, besides rebasing, is the exclusion of > KVM from the main loop polling optimization. > > > > Jan Kiszka (3): > Do not drop global mutex for polled main loop runs > Poll main loop after I/O events were received > Do not kick vcpus in TCG mode > > cpus.c | 2 +- > sysemu.h | 2 +- > vl.c | 22 ++++++++++++++++------ > 3 files changed, 18 insertions(+), 8 deletions(-) > Thanks for working on improving the io-thread with TCG. Your patches make sense, but they don't seems to fix the slowdown observed when enabling the io-thread. Well maybe they were not supposed to. This is for example the results of netperf between guest and host using virtio: no io-thread 122 MB/s io-thread 97 MB/s io-thread + patches 98 MB/s -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net