All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir@xensource.com>
To: "Langsdorf, Mark" <mark.langsdorf@amd.com>,
	"Tian, Kevin" <kevin.tian@intel.com>,
	xen-devel@lists.xensource.com
Subject: Re: [PATCH] 1/2: cpufreq/PowerNow! in Xen: Time and platform changes
Date: Thu, 30 Aug 2007 16:04:27 +0100	[thread overview]
Message-ID: <C2FC9B0B.150B9%keir@xensource.com> (raw)
In-Reply-To: <1449F58C868D8D4E9C72945771150BDF02077009@SAUSEXMB1.amd.com>

On 30/8/07 15:45, "Langsdorf, Mark" <mark.langsdorf@amd.com> wrote:

> The advantage to doing it in the dom0 kernel is that the
> distributions have just switched from doing it in userspace,
> and thus have all their tools set up to do it in the kernel.
> 
> To me, it makes more sense to simplify the user interface,
> so that a native mode machine and a virtual machine uses the
> same tools.  The end user shouldn't need to learn cpuspeed
> when running power management on a virtual machine host if
> the same computer uses ondemand when running a native mode
> kernel.

It's a misleading simplification. For example, the ondemand governor will
build and run in a dom0 kernel but it's not actually going to do the right
thing, as it doesn't observe whole-machine load. So, in fact, it's probably
going to close down all CPUs thinking they are idle and hence shaft system
performance. Furthermore it is very common to run a dom0 with fewer VCPUs
than PCPUs: using dom0 kernel as the control point for cpufreq disallows
this.

> powernow-k8 and the Intel SpeedStep equivalents are being
> maintained in preference to acpi-cpufreq.  I don't think
> the code is obsolete or defunct.

I'm sure I've seen lkml posts to the contrary but I haven't been able to dig
any up. You are the powernow-k8 maintainer so I guess it's your code anyhow.
:-) But I've seen acpi-cpufreq getting beefed up with MSR support quite
recently, and most boxes support ACPI P states, so I'm surprised there
wouldn't be convergence on a single driver.

For your Xen changes, the MSR whitelisting should be conditional on actually
being on an AMD box, and also should be conditional on opt_dom0_vcpus_pin.
Actually a new config option 'cpufreq=dom0-kernel' wouldn't be a bad idea,
and that could then imply dom0_vcpus_pin. Absolutely no good can come of
letting dom0 mess with cpufreq MSRs while its VCPUS can be migrated across
cores. Also I'm not sure why you make access to the MSRs conditional on the
guest not being compat (32-on-64)?

 -- Keir

  reply	other threads:[~2007-08-30 15:04 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-29 22:02 [PATCH] 1/2: cpufreq/PowerNow! in Xen: Time and platform changes Mark Langsdorf
2007-08-30  6:41 ` Tian, Kevin
2007-08-30  9:30   ` Keir Fraser
2007-08-30  9:45     ` Tian, Kevin
2007-08-30 10:12       ` Keir Fraser
2007-08-31  1:20         ` Tian, Kevin
2007-08-31 10:04           ` Keir Fraser
2007-08-31 15:09             ` Tian, Kevin
2007-08-31 15:25               ` Keir Fraser
2007-09-01  0:23                 ` Tian, Kevin
2007-09-01 11:07                   ` Keir Fraser
2007-09-01 13:31                     ` Tian, Kevin
2007-09-01 13:57                       ` Keir Fraser
2007-09-01 14:14                         ` Tian, Kevin
2007-09-01 14:22                         ` Tian, Kevin
2007-09-01 14:12                       ` Keir Fraser
2007-09-01 14:18                         ` Tian, Kevin
2007-09-01 15:26                           ` Keir Fraser
2007-09-01 15:45                             ` Tian, Kevin
2007-09-01 16:41                               ` Keir Fraser
2007-09-03  4:25                                 ` Tian, Kevin
2007-09-04 17:23                             ` Rik van Riel
2007-08-30 14:45     ` Langsdorf, Mark
2007-08-30 15:04       ` Keir Fraser [this message]
2007-08-30 18:23         ` Rik van Riel
     [not found]           ` <1449F58C868D8D4E9C72945771150BDF0207700B@SAUSEXMB1.amd.com>
2007-08-30 20:56             ` Rik van Riel
2007-08-31  2:43           ` Tian, Kevin
2007-08-31  8:41           ` Jan Beulich
2007-08-30 14:59     ` Rik van Riel
2007-08-31  2:42       ` Tian, Kevin
2007-08-31  9:23         ` Keir Fraser
2007-08-31 13:50         ` Rik van Riel
2007-08-30 14:57   ` Langsdorf, Mark
2007-08-30 15:08     ` Keir Fraser
2007-10-01  8:30 ` xeb
2007-10-01  8:33   ` Keir Fraser
2007-10-02 12:56     ` xeb
2007-10-02 12:57     ` xeb
2007-10-02 13:00     ` xeb
2007-10-02 13:02     ` xeb
  -- strict thread matches above, loose matches on Subject: below --
2007-10-02 13:05 xeb

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=C2FC9B0B.150B9%keir@xensource.com \
    --to=keir@xensource.com \
    --cc=kevin.tian@intel.com \
    --cc=mark.langsdorf@amd.com \
    --cc=xen-devel@lists.xensource.com \
    /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.