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

[Xen-devel] [RFC] pv guest numa [RE: Host Numa informtion in dom0]

To: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>
Subject: [Xen-devel] [RFC] pv guest numa [RE: Host Numa informtion in dom0]
From: Dulloor <dulloor@xxxxxxxxx>
Date: Sat, 13 Feb 2010 01:25:22 -0500
Cc: Andre Przywara <andre.przywara@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Fri, 12 Feb 2010 22:25:58 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type; bh=/Nu9vtz0YxXK/e+alu2IO0DlfySepkK/xzS7/kGXCV0=; b=gJi8XIcxy/s3y5T5ti3BcEYpzkKE3JxGfmP5d3/BMMBZqe4dOnPcSNfvmA3W5jaYyZ PziI8ChPVtsEQWflEfqk4Az/ni9Px4UaNSrsKEo2w5ytT2C4qYf5/X9Y4WEoIWJz7Gtd ZAyb7sjaciFDmH8Lh2nenm2VrgdPN2EfUhHCg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=IEvy4HntrSd9DhHV+VKWlxWOWLKKv7Wj2hpGe92NBuMTfa4kWY/aUlouUxL0wMrop5 GMKrHz92DKmesuPjslgxR36COCEendgRypgkQabdIc6Io0zn4O/iq8cGJd3nUhXFXw/y 0SDnPawEIVHqmGJQ6JSFAVnOyV/x7/YOQZFE4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I am attaching (RFC) patches for NUMA-aware pv guests.

* The patch adds hypervisor interfaces to export minimal numa-related
information about the memory of pv domain, which can then be used to
setup the node ranges, virtual cpu<->node maps, and virtual slit
tables in the pv domain.
* The guest-domain also maintains a mapping between its vnodes and
mnodes(actual machine nodes). These mappings can be used in the memory
operations, such as those in ballooning.
* In the patch, dom0 is made numa-aware using these interfaces. Other
domains should be simpler. I am in the process of adding python
interfaces for this. And, this would work with any node selection
policy.
* The patch is tested only for 64-on-64 (on x86_64)

* Along with the following other patches, this could provide a good
solution for numa-aware guests -
- numa-aware ballooning  (previously posted by me on xen-devel)
- Andre's patch for HVM domains (posted by Andre recently)

I am in the process of making other places of dynamic memory
mgmt/operations numa-aware - tmem, memory exchange operations, etc.

Please let know your comments.

-dulloor

On Thu, Feb 11, 2010 at 10:21 AM, Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx> wrote:
>> > If guest NUMA is disabled, we just use a single node mask which is the
>> > union of the per-VCPU node masks.
>> >
>> > Where allowed node masks span more than one physical node, we should
>> > allocate memory to the guest's virtual node by pseudo randomly striping
>> > memory allocations (in 2MB chunks) from across the specified physical
>> > nodes. [pseudo random is probably better than round robin]
>>
>> Do we really want to support this? I don't think the allowed node masks
>> should span more than one physical NUMA node. We also need to look at I/O
>> devices as well.
>
> Given that we definitely need this striping code in the case where the guest 
> is non NUMA, I'd be inclined to still allow it to be used even if the guest 
> has multiple NUMA nodes. It could come in handy where there is a hierarchy 
> between physical NUMA nodes, enabling for example striping to be used between 
> a pair of 'close' nodes, while exposing the higher-level topology of sets of 
> the paired nodes to be exposed to the guest.
>
> Ian
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>

Attachment: guest-numa-linux.patch
Description: Text Data

Attachment: guest-numa-xen.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>