public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: David Abrahams <dave-UB3wUj7V41K5azolltMz9laTQe2KTcn/@public.gmane.org>
To: Michael Riepe <michael-0QoEqw4nQxo@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: kvm somehow exempt from frequency scaling?
Date: Wed, 11 Apr 2007 14:31:39 -0400	[thread overview]
Message-ID: <87fy76ahkk.fsf@grogan.peloton> (raw)
In-Reply-To: <461D1D3F.8050001-0QoEqw4nQxo@public.gmane.org> (Michael Riepe's message of "Wed\, 11 Apr 2007 19\:39\:11 +0200")


on Wed Apr 11 2007, Michael Riepe <michael-AT-mr511.de> wrote:

> Hi!
>
> David Abrahams wrote:
> [...]
>>>More data: it definitely seems to make a difference whether the VM's
>>>desktop is showing.  If I switch Gnome workspaces so it's not visible,
>>>it doesn't seem to drive the frequency up.
>
> Because it doesn't have to redraw the window?
>
> What happens if you hide the qemu window below another one, e.g. your
> favorite web browser?

It seems to make progress.  I can play internet radio in the VM and I
keep hearing it (glitchy, but it doesn't stop).

>> In fact, kvm doesn't seem to make any progress at all :(.  I'm
>> currently going through the "microsoft update" dance on a VM there,
>> and I literally left for an hour during which there was no progress
>> because the QEMU window wasn't visible.
>> 
>> Even stranger, if I minimize the QEMU window and then switch
>> workspaces, it gets plenty of cycles.
>
> I guess that's a qemu and/or SDL issue.

SDL?

> Ideally, the screen should only be updated when the window is mapped
> (via XMapWindow) *and* visible (that is, neither fully obscured nor
> moved outside the visible part of the screen). Since "fully obscured" is
> hard to test for, this usually translates to "mapped and not off-screen".

Yeah, but I don't care about the window being updated.  I want the
virtual CPU to make progress.  Switching workspaces is literally like
suspending the VM!

> When a window is minimized ("iconified"), it usually is unmapped and
> another one (the "icon window") is mapped instead. When switching
> workspaces, however, some window managers just move the window away (say
> to x=10000,y=10000) but keep it mapped. If there is no test for
> visibility (or if the test doesn't work correctly), SDL may happily
> continue updating the window's contents - and that will burn a lot of
> cycles.
>
> IMO, there's a lot of room for improvement here. But it has nothing to
> do with kvm in the first place (unless you consider qemu an integral
> part of kvm, which I don't).

I don't either, but it's not 100% clear to me yet that this is a qemu
problem.  Maybe I'll report it in a QEMU forum as well.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Don't Miss BoostCon 2007! ==> http://www.boostcon.com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

  parent reply	other threads:[~2007-04-11 18:31 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-09  0:45 kvm somehow exempt from frequency scaling? David Abrahams
     [not found] ` <87veg6bck6.fsf-2bi8v6C3s58ZC2cDDG0gXw@public.gmane.org>
2007-04-09  7:28   ` Avi Kivity
     [not found]     ` <4619EB19.20305-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-04-10  4:24       ` David Abrahams
     [not found]         ` <87mz1gj1pr.fsf-2bi8v6C3s58ZC2cDDG0gXw@public.gmane.org>
2007-04-10  7:28           ` Avi Kivity
     [not found]             ` <461B3CBB.3040401-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-04-10 10:16               ` Michael Riepe
2007-04-11 10:24                 ` David Abrahams
2007-04-11 16:37                   ` David Abrahams
     [not found]                     ` <87fy76c1el.fsf-2bi8v6C3s58ZC2cDDG0gXw@public.gmane.org>
2007-04-11 17:39                       ` Michael Riepe
     [not found]                         ` <461D1D3F.8050001-0QoEqw4nQxo@public.gmane.org>
2007-04-11 18:31                           ` David Abrahams [this message]
     [not found]                             ` <87fy76ahkk.fsf-2bi8v6C3s58ZC2cDDG0gXw@public.gmane.org>
2007-04-11 18:46                               ` Michael Riepe
     [not found]                                 ` <461D2CFD.8040008-0QoEqw4nQxo@public.gmane.org>
2007-04-11 21:52                                   ` David Abrahams
2007-04-12  1:52                                     ` David Abrahams
     [not found]                                       ` <87k5wi741c.fsf-2bi8v6C3s58ZC2cDDG0gXw@public.gmane.org>
2007-04-12  3:35                                         ` Avi Kivity
     [not found]                                           ` <461DA903.50902-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-04-12  3:41                                             ` Anthony Liguori
2007-04-12 11:01                                             ` David Abrahams
     [not found]                                               ` <87slb5zwj5.fsf-2bi8v6C3s58ZC2cDDG0gXw@public.gmane.org>
2007-04-12 11:23                                                 ` Avi Kivity
2007-04-12 13:33                                                   ` David Abrahams
     [not found]                                                     ` <87odltyay4.fsf-2bi8v6C3s58ZC2cDDG0gXw@public.gmane.org>
2007-04-12 13:59                                                       ` Avi Kivity
2007-04-12 14:56                                                         ` David Abrahams
2007-04-16  8:58                                                           ` David Abrahams
2007-04-24  0:17                                                             ` David Abrahams
     [not found]                                                               ` <87y7ki62yn.fsf-2bi8v6C3s58ZC2cDDG0gXw@public.gmane.org>
2007-04-24  8:47                                                                 ` Avi Kivity
     [not found]                                                                   ` <462DC415.3000209-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-04-24 11:58                                                                     ` David Abrahams
     [not found]                                                                       ` <87k5w256ht.fsf-2bi8v6C3s58ZC2cDDG0gXw@public.gmane.org>
2007-04-25  8:04                                                                         ` Avi Kivity
     [not found]                                                                           ` <462F0B7E.8050300-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-04-25 12:00                                                                             ` David Abrahams
2008-07-06 12:13                   ` [kvm-devel] " Avi Kivity
2008-07-06 13:55                     ` David Abrahams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fy76ahkk.fsf@grogan.peloton \
    --to=dave-ub3wuj7v41k5azolltmz9latqe2ktcn/@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=michael-0QoEqw4nQxo@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox