lkml.org 
[lkml]   [2011]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 0/3] kvm tool: Serial emulation overhaul

* Pekka Enberg <penberg@kernel.org> wrote:

> On Sat, 10 Dec 2011, Thomas Gleixner wrote:
>
> > There is a slight problem with them. I only tested them with
> > the rt-guest kernels, but non rt kernels are slightly
> > unhappy. Sorry for not thinking about that.
> >
> > Fix below.
>
> Applied, thanks!
>
> Ingo, how does serial console work for you with latest master?
> It's likely that Thomas' patches fix top slowness for you.

It didnt get worse - but i can still easily tell apart a 'top'
running under kvm than native. Try something like this:

run top and type 's0.1<enter>' to change the refresh interval
to 100 msecs.

Run the same thing under kvm and on the native host. The two are
visibly different: the kvm one refreshes with the cursor showing
up mid-refresh a number of times.

In theory a kvm driven serial console should be extremely fast,
much faster than a real serial console, basically as fast as a
local console. Yet this still does not seem to be the case.

In fact even ssh-ing in to a box over Wifi and running the above
top session is undistinguishable from top running in a local
console. So IMO it cannot be virtualization overhead - there
must still be some delay or serious lack of buffering somewhere.

Here's a way to measure the slowdown directly:

time top -d 0.01 -n 10 -b

native: 0.9 secs
ssh over wifi: 1.4 secs
kvm serial: 5.0 secs

Thanks,

Ingo


\
 
 \ /
  Last update: 2011-12-11 11:35    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog