public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Roman Steiner <e0326433@student.tuwien.ac.at>
Cc: kvm@vger.kernel.org
Subject: Re: stopping the system clock
Date: Mon, 03 Aug 2009 18:05:49 +0300	[thread overview]
Message-ID: <4A76FCCD.3030403@redhat.com> (raw)
In-Reply-To: <7565EB18-EA0F-4BB1-8F45-4F30BDD3614B@student.tuwien.ac.at>

On 07/30/2009 08:02 PM, Roman Steiner wrote:
> hej hej,
>
> i've a question about the virtual time implementation in kvm/qemu. 
> with the monitor commands stop / continue you can stop and start the 
> guest system, but the system clock is still running.
>
> i\ve done the following experiment:
> * start the guest system
> * display the system time by running 'date' in the guest system
> * stop via the monitor
> * way for a minute or so
> * continue via the monitor
> * display the system time with 'date' in the guest system
> result: the system clock of the guest system was running the whole time
>
> for what i need it:
> i'm working on a simulation of a wireless network with at least 100 
> nodes (routers). each node should be represented by a kvm instance 
> with a minimal os and some daemons (mainyl routing deamons). because 
> the system gets overloaded some processes (kvm instances) are starving 
> and the simulation is not working any more. so i would like to stop 
> and start the guest system by the simulation program to keep them in 
> order. therefore stopping and starting must be fast and it must be a 
> full stop.
>

Essentially, the scheduler is also stopping and starting the guests.  So 
I think that instead of writing another scheduler to pause and unpause 
guests, you can adjust qemu to run time in slow motion.  That should 
reduce the interrupt rate and therefore the system load.

Not sure where exactly this needs to change, probably where qemu reads 
the host time and sets host timers.

-- 
error compiling committee.c: too many arguments to function


      reply	other threads:[~2009-08-03 15:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-30 17:02 stopping the system clock Roman Steiner
2009-08-03 15:05 ` Avi Kivity [this message]

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=4A76FCCD.3030403@redhat.com \
    --to=avi@redhat.com \
    --cc=e0326433@student.tuwien.ac.at \
    --cc=kvm@vger.kernel.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