From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753842Ab1LLRrZ (ORCPT ); Mon, 12 Dec 2011 12:47:25 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:39719 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753741Ab1LLRrW (ORCPT ); Mon, 12 Dec 2011 12:47:22 -0500 Date: Mon, 12 Dec 2011 18:45:38 +0100 From: Ingo Molnar To: Sasha Levin Cc: Thomas Gleixner , Pekka Enberg , LKML , Alan Cox Subject: Re: [patch 0/3] kvm tool: Serial emulation overhaul Message-ID: <20111212174538.GA24568@elte.hu> References: <20111210132220.083204833@linutronix.de> <20111211103047.GA19299@elte.hu> <20111211155347.GA1297@elte.hu> <1323667836.4190.4.camel@lappy> <20111212111222.GA21121@elte.hu> <1323711623.3269.10.camel@lappy> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1323711623.3269.10.camel@lappy> User-Agent: Mutt/1.5.21 (2010-09-15) X-ELTE-SpamScore: -2.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.3.1 -2.0 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Sasha Levin wrote: > On Mon, 2011-12-12 at 12:12 +0100, Ingo Molnar wrote: > > * Sasha Levin wrote: > > > > > 50k cycles for every single byte is pretty much as good as it > > > will get with serial console. See slide #5 in Marcelo's KVM > > > Forum 2010 presentation[1] where he timed a heavyweight exit > > > to about 40k cycles. > > > > > [1] > > > http://www.linux-kvm.org/wiki/images/e/ea/2010-forum-mtosatti_walkthrough_entry_exit.pdf > > > > But what we do here is a PIO exit. That, according to > > Marcelo's measurements, is about 10K cycles, back to back. > > [*] > No, everything on slide 5 is part of a PIO exit. Starting from > 'out' and up to until it's back to the guest. A total of over > 40k cycles. No, slide 5 is a cumulative total, with the '+' showing the individual costs, adding up to 10400 cycles total. Please read that slide again ;-) 10K is bad enough IMO, 40K cycles would be 'out of this world crazy'. Thanks, Ingo