xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Keir Fraser <keir.xen@gmail.com>
To: Haitao Shan <maillists.shan@gmail.com>, Keir Fraser <keir@xen.org>
Cc: "Liu, Jinsong" <jinsong.liu@intel.com>,
	Shaohua Li <shaohua.li@intel.com>,
	xen-devel <xen-devel@lists.xen.org>,
	Jan Beulich <JBeulich@suse.com>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: Core parking feature enable
Date: Mon, 05 Mar 2012 21:50:25 +0000	[thread overview]
Message-ID: <CB7AE5A1.2DCB0%keir.xen@gmail.com> (raw)
In-Reply-To: <CAFQ2Z+dQD_BMoWjvePw-uH-7wDEUg8=nOCSE6FdE-CHaMwCSeQ@mail.gmail.com>

Sorry, yes, I also had missed the ACPI interaction.

On 05/03/2012 21:27, "Haitao Shan" <maillists.shan@gmail.com> wrote:

> Thanks, Keir. We did create new hypercalls.
> But for new interface(mentioned in my previous mail), I mean the
> mechanisms for kernel to notify user-space for core parking decision.
> This does *not* exist in kernel. If we add it specifically for Xen, I
> don't think kernel people would buy-in that.
> 
> Shan Haitao
> 
> 2012/3/2 Keir Fraser <keir@xen.org>:
>> On 02/03/2012 09:42, "Haitao Shan" <maillists.shan@gmail.com> wrote:
>> 
>>> I would really doubt the need to create a new interface of receiving
>>> ACPI event and sending to user land (other than existing native
>>> kernel) specifically for Xen. What's the benefit and why kernel people
>>> should buy-in that?
>>> Core parking is a platform feature, not virtualization feature.
>>> Naturally following native approach is the most efficient. Why do you
>>> want to create yet another interface for Xen to do that?
>> 
>> While I sympathise with your position rather more than Jan does, the fact is
>> that it's *you* who are suggesting yet-another-Xen-interface. Whereas doing
>> it in userspace requires only existing hypercalls I believe.
>> 
>>  -- Keir
>> 
>>> Shan Haitao
>>> 
>>> 2012/3/1 Jan Beulich <JBeulich@suse.com>:
>>>>>>> On 01.03.12 at 15:31, "Liu, Jinsong" <jinsong.liu@intel.com> wrote:
>>>>> Jan Beulich wrote:
>>>>>>>>> On 01.03.12 at 12:14, "Liu, Jinsong" <jinsong.liu@intel.com> wrote:
>>>>>>> Unfortunately, yes, though cumbersome is not basic reason user space
>>>>>>> approach is not preferred. Core parking is a power management staff,
>>>>>>> based on dynamic physical details like cpu topologies and maps owned
>>>>>>> by hypervisor. It's natural to implement
>>>>>> 
>>>>>> CPU topology is available to user space, and as far as I recall your
>>>>>> hypervisor patch didn't really manipulate any maps - all it did was
>>>>>> pick what CPU to bring up/down, and then carry out that decision.
>>>>> 
>>>>> No. threads_per_core and cores_per_socket exposed to userspace is
>>>>> pointless
>>>>> to us (and, it's questionable need fixup).
>>>> 
>>>> Sure this would be insufficient. But what do you think did
>>>> XEN_SYSCTL_topologyinfo get added for?
>>>> 
>>>>> Core parking depends on following physical info (no matter where it
>>>>> implement):
>>>>> 1. cpu_online_map;
>>>>> 2. cpu_present_map;
>>>>> 3. cpu_core_mask;
>>>>> 4. cpu_sibling_mask;
>>>>> all of them are *dynamic*, especially, 3/4 are varied per cpu and per
>>>>> online/offline ops.
>>>> 
>>>> Afaict all of these can be reconstructed using (mostly sysctl)
>>>> hypercalls.
>>>> 
>>>> Jan
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Xen-devel mailing list
>>>> Xen-devel@lists.xen.org
>>>> http://lists.xen.org/xen-devel
>> 
>> 

  reply	other threads:[~2012-03-05 21:50 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-17  8:54 Core parking feature enable Liu, Jinsong
2012-02-17  9:41 ` Jan Beulich
2012-02-17 17:48   ` Liu, Jinsong
2012-02-21  8:03     ` Jan Beulich
2012-02-22  3:19       ` Liu, Jinsong
     [not found]       ` <DE8DF0795D48FD4CA783C40EC82923350A7F35@SHSMSX101.ccr.corp.intel.com>
2012-02-29 12:41         ` Liu, Jinsong
2012-02-29 12:47           ` Liu, Jinsong
2012-02-29 13:47           ` Jan Beulich
2012-03-01  8:20             ` Liu, Jinsong
2012-03-01  8:50               ` Jan Beulich
2012-03-01 11:14                 ` Liu, Jinsong
2012-03-01 11:21                   ` Jan Beulich
2012-03-01 14:31                     ` Liu, Jinsong
2012-03-01 15:11                       ` Jan Beulich
2012-03-02  9:42                         ` Haitao Shan
2012-03-02 11:00                           ` Keir Fraser
2012-03-05 21:27                             ` Haitao Shan
2012-03-05 21:50                               ` Keir Fraser [this message]
2012-03-02 11:46                           ` Jan Beulich
2012-03-04 15:48                             ` Liu, Jinsong
2012-03-05 10:57                               ` Jan Beulich
2012-03-05 15:50                                 ` Liu, Jinsong

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=CB7AE5A1.2DCB0%keir.xen@gmail.com \
    --to=keir.xen@gmail.com \
    --cc=JBeulich@suse.com \
    --cc=jinsong.liu@intel.com \
    --cc=keir@xen.org \
    --cc=konrad.wilk@oracle.com \
    --cc=maillists.shan@gmail.com \
    --cc=shaohua.li@intel.com \
    --cc=xen-devel@lists.xen.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;
as well as URLs for NNTP newsgroup(s).