All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: "Benoît Canet" <benoit.canet@irqsave.net>
Cc: Alexander Graf <agraf@suse.de>,
	"cpufreq@vger.kernel.org" <cpufreq@vger.kernel.org>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"rjw@sisk.pl" <rjw@sisk.pl>,
	"viresh.kumar@linaro.org" <viresh.kumar@linaro.org>,
	"peter.maydell@linaro.org" <peter.maydell@linaro.org>,
	"pbonzini@redhat.com" <pbonzini@redhat.com>
Subject: Re: cpufreq and QEMU guests
Date: Mon, 16 Sep 2013 18:32:39 +0300	[thread overview]
Message-ID: <20130916153239.GD906@redhat.com> (raw)
In-Reply-To: <20130916150544.GJ5105@irqsave.net>

On Mon, Sep 16, 2013 at 05:05:45PM +0200, Benoît Canet wrote:
> Le Monday 16 Sep 2013 à 09:39:10 (-0500), Alexander Graf a écrit :
> > 
> > 
> > Am 16.09.2013 um 07:15 schrieb Benoît Canet <benoit.canet@irqsave.net>:
> > 
> > > 
> > > Hello,
> > > 
> > > I know a cloud provider worried about the fact that the /proc/cpuinfo of his
> > > guests give a bogus frequency to his customer.
> > > 
> > > QEMU and the guests kernel currently have no way to reflect the host frequency
> > > changes to the guests.
> > > 
> > > The customer compute intensive application then read this information and take
> > > wrong decisions.
> > 
> > Why do they care about the frequency? Is it for scheduling workloads? The only other case I can think of would be the TSC and that should be fixed frequency these days.
> > 
> > If it's scheduling, you could maybe expose the unavailable compute time as steal time to the guest. Exposibg frequency in a virtual environment feels backwards.
> 
> The final customer have a compute intensive workload.
> At startup the code retrieve the cpu cache topology, the cpu model, and various
> informations including the guest cpu frequency before starting the compute job.
> The QEMU instance typicaly use -cpu host.
> 
> The code inspects the cpu frequency has seen by the guests to choose the number
> of vms to instanciate to compute the given task.
I am not sure I understand. They look at guest cpu frequency to estimate
guest's performance?

> They even destroy and recreate some vms that would be underperforming to
> mitigate the high inter vm communication costs.
> 
> Do you think the steal time trick would work for this ?
> 

--
			Gleb.

WARNING: multiple messages have this Message-ID (diff)
From: Gleb Natapov <gleb@redhat.com>
To: "Benoît Canet" <benoit.canet@irqsave.net>
Cc: "peter.maydell@linaro.org" <peter.maydell@linaro.org>,
	"viresh.kumar@linaro.org" <viresh.kumar@linaro.org>,
	Alexander Graf <agraf@suse.de>,
	"cpufreq@vger.kernel.org" <cpufreq@vger.kernel.org>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"rjw@sisk.pl" <rjw@sisk.pl>,
	"pbonzini@redhat.com" <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] cpufreq and QEMU guests
Date: Mon, 16 Sep 2013 18:32:39 +0300	[thread overview]
Message-ID: <20130916153239.GD906@redhat.com> (raw)
In-Reply-To: <20130916150544.GJ5105@irqsave.net>

On Mon, Sep 16, 2013 at 05:05:45PM +0200, Benoît Canet wrote:
> Le Monday 16 Sep 2013 à 09:39:10 (-0500), Alexander Graf a écrit :
> > 
> > 
> > Am 16.09.2013 um 07:15 schrieb Benoît Canet <benoit.canet@irqsave.net>:
> > 
> > > 
> > > Hello,
> > > 
> > > I know a cloud provider worried about the fact that the /proc/cpuinfo of his
> > > guests give a bogus frequency to his customer.
> > > 
> > > QEMU and the guests kernel currently have no way to reflect the host frequency
> > > changes to the guests.
> > > 
> > > The customer compute intensive application then read this information and take
> > > wrong decisions.
> > 
> > Why do they care about the frequency? Is it for scheduling workloads? The only other case I can think of would be the TSC and that should be fixed frequency these days.
> > 
> > If it's scheduling, you could maybe expose the unavailable compute time as steal time to the guest. Exposibg frequency in a virtual environment feels backwards.
> 
> The final customer have a compute intensive workload.
> At startup the code retrieve the cpu cache topology, the cpu model, and various
> informations including the guest cpu frequency before starting the compute job.
> The QEMU instance typicaly use -cpu host.
> 
> The code inspects the cpu frequency has seen by the guests to choose the number
> of vms to instanciate to compute the given task.
I am not sure I understand. They look at guest cpu frequency to estimate
guest's performance?

> They even destroy and recreate some vms that would be underperforming to
> mitigate the high inter vm communication costs.
> 
> Do you think the steal time trick would work for this ?
> 

--
			Gleb.

  reply	other threads:[~2013-09-16 15:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-16 12:15 cpufreq and QEMU guests Benoît Canet
2013-09-16 12:15 ` [Qemu-devel] " Benoît Canet
2013-09-16 14:39 ` Alexander Graf
2013-09-16 14:39   ` [Qemu-devel] " Alexander Graf
2013-09-16 15:05   ` Benoît Canet
2013-09-16 15:05     ` [Qemu-devel] " Benoît Canet
2013-09-16 15:32     ` Gleb Natapov [this message]
2013-09-16 15:32       ` Gleb Natapov
2013-09-16 15:46       ` Benoît Canet
2013-09-16 15:46         ` [Qemu-devel] " Benoît Canet
2013-09-16 15:58         ` Gleb Natapov
2013-09-16 15:58           ` [Qemu-devel] " Gleb Natapov
2013-09-16 18:42           ` Benoît Canet
2013-09-16 18:42             ` Benoît Canet
2013-09-17  8:58             ` Gleb Natapov
2013-09-17  8:58               ` Gleb Natapov

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=20130916153239.GD906@redhat.com \
    --to=gleb@redhat.com \
    --cc=agraf@suse.de \
    --cc=benoit.canet@irqsave.net \
    --cc=cpufreq@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rjw@sisk.pl \
    --cc=viresh.kumar@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.