[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 1/6] xen: Add NUMA support to Xen



The attached tarball contains a script that will generate a patch that
integrates NUMA support from Linux into Xen.

The integration support borrows heavily from linux/arch/i386/srat.c for
ACPI SRAT table parsing rather than using the more heavyweight
ACPI_NUMA.  The SRAT table code has been tested on x86_32 and x86_64 and
works with both 32-bit and 64-bit systems.

The code parses the SRAT table for memory and processor affinity and
creates the proper node to cpu mapping.  We define a new memory
structure, node_memory_chunk_t, which is based on the same structure in
linux, but tweaked for Xen.  This structure is used to keep track of
the discontiguous chunks of memory in the system and the node to which
they belong.

We bring in Linux macros and methods for node function like cpu_to_node,
num_online_nodes, node_to_cpumask, etc.

NUMA support in Xen is a compile-time option via the build system.
Passing numa=y will enable all of the NUMA functionality.  We have
tested the code with numa=y and numa=n.  

To create the first numa patch, unpack the attached tarball, numa.tgz,
and execute numa.sh.


-- 
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253
ryanh@xxxxxxxxxx

Attachment: numa.tgz
Description: GNU Unix tar archive

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.