WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel][PATCH]pcpu tuples [was Re: [Xen-devel] Xen 3.4.1 NUMA su

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Dulloor <dulloor@xxxxxxxxx>
Subject: RE: [Xen-devel][PATCH]pcpu tuples [was Re: [Xen-devel] Xen 3.4.1 NUMA support]
From: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
Date: Tue, 24 Nov 2009 13:51:59 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: Andre Przywara <andre.przywara@xxxxxxx>, Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, Papagiannis Anastasios <apapag@xxxxxxxxxxxx>
Delivery-date: Mon, 23 Nov 2009 21:53:05 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C727FF8F.C06B%keir.fraser@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <940bcfd20911162256u76fe97d4h647284570066d6a@xxxxxxxxxxxxxx> <C727FF8F.C06B%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcpnUwwgWO5xDcaUS727uzGpW5tQTwAA5WAAAVyNHSA=
Thread-topic: [Xen-devel][PATCH]pcpu tuples [was Re: [Xen-devel] Xen 3.4.1 NUMA support]
Hi, dulloor/keir, for the changes to XEN_SYSCTL_physinfo, I'm not sure part of 
my work will be helpful.

I sent out a patch to present pcpu information in dom0's 
/sys/devices/system/xen_pcpu/pcpuX directory. Currently I simply present the 
apic_id/acpi_id in this directory for cpu hotplug.
But how about using it to present the whole topology information, for example, 
we can add initial_apicid/core_id etc to the xen_pcpu/pcpuX directory.

Furthermore, if we can create a directory like 
/sys/devices/system/xen_pcpu/pcpuX/topology, make the arrangement below this 
directory same as native linux's cpu directory in sysfs, I think it will 
benifit more. For example, we can simply change current linux tools to show the 
topo information (just /sys/device/system/cpu/ to  
/sys/devices/system/xen_pcpu/).

Of course, I understand maybe most management tools for virtualization will be 
different with native tools, but this similar arrangement will be helpful still.

Any idea?

--jyh

xen-devel-bounces@xxxxxxxxxxxxxxxxxxx wrote:
> [Xen-devel] Xen 3.4.1 NUMA support]
> 
> I think this is good. However, the socket and node ids can be fairly
> arbitrary small numbers -- we need a way for the admin to find out the
> topology and 'addresses' of physical cpus via xm. Perhaps a new 'xm
> cpu-list' command to basically dump the pcpu_tuple information
> in ascending
> order of node, then socket, then core, then thread, with one
> row per cpu:
> node socket core thread xen-cpu-id
> 
> More info could be added beyond these five pieces of information, as
> we later see fit. 
> 
> An alternative would be to rename the socket/node identifiers in
> pyxc_physinfo, or even in Xen itself, to achieve contiguity.
> However I think
> a cpu-list command would still be useful, and it's easy to implement.
> 
> -- Keir
> 
> On 17/11/2009 06:56, "Dulloor" <dulloor@xxxxxxxxx> wrote:
> 
>> Attached is a patch to construct pcpu tuples of the form
>> (node.socket.core.thread), and (currently)used by xm vcpu-pin
>> utility. 
>> 
>> -dulloor
>> 
>> On Fri, Nov 13, 2009 at 11:02 AM, Keir Fraser
>> <keir.fraser@xxxxxxxxxxxxx> wrote:
>>> On 13/11/2009 15:40, "Ian Pratt" <Ian.Pratt@xxxxxxxxxxxxx> wrote:
>>> 
>>>>> Even better would be to have pCPUs addressable and listable
>>>>> explicitly as dotted tuples. That can be implemented entirely
>>>>> within the toolstack, and could even allow wildcarding of tuple
>>>>> components to efficiently express cpumasks.
>>>> 
>>>> Yes, I'd certainly like to see the toolstack support dotted tuple
>>>> notation. 
>>>> 
>>>> However, I just don't trust the toolstack to get this right unless
>>>> xen has already set it up nicely for it with a sensible
>>>> enumeration and defined sockets-per-node, cores-per-socket and
>>>> threads-per-core parameters. Xen should provide a clean interface
>>>> to the toolstack in this respect. 
>>> 
>>> Xen provides a topology-interrogation hypercall which should
>>> suffice for tools to build up a {node,socket,core,thread}<->cpuid
>>> mapping table. 
>>> 
>>>  -- Keir
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Xen-devel mailing list
>>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>>> http://lists.xensource.com/xen-devel
>>> 
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel