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
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.
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253 T/L: 678-9253
Description: GNU Unix tar archive
Xen-devel mailing list