ACPI SRAT, L3 Cache as a NUMA Domain, and Why It Matters for GPU Data Movement

ACPI SRAT L3 cache as NUMA domain splits each L3 into its own node. Here is how it interacts with NPS and SLIT, and where to pin GPU staging buffers.

ACPI SRAT, L3 Cache as a NUMA Domain, and Why It Matters for GPU Data Movement
Written by TechnoLynx Published on 11 Jul 2026

ACPI SRAT L3 cache as NUMA domain is a BIOS option that reports each L3 cache to the operating system as its own NUMA domain. It overrides the node count set by NUMA nodes per socket (NPS) but keeps memory interleaving at the NPS granularity. The option concerns the CPU’s L3 caches, not the GPU’s. What it changes is the host’s affinity map. That matters for GPU work because the thread that issues copies and the pinned buffer it copies from need to sit in the domain attached to the GPU’s PCIe root complex. When they sit elsewhere, large transfers lose bandwidth. When buffers are small or kernels are compute-dense, the penalty mostly disappears.

How Does ACPI SRAT L3 Cache as NUMA Domain Work in Practice?

The option is documented in AMD’s tuning guide for EPYC 9004 Series processors, which lists it as “LLC as NUMA Domain (ACPI SRAT L3 Cache as NUMA Domain)” with Disabled as the recommended setting. When it is enabled, the firmware maps each shared L3, which on EPYC 9004 means one L3 per CCD, to a separate NUMA node, so a single processor with 12 CCDs can show up as 12 NUMA nodes. AMD’s reason for offering it is that some hypervisors and operating systems do not schedule with L3 awareness, and some workloads do better once each L3 is declared as a NUMA domain.

NPS decides two things: how many NUMA nodes a socket presents, and how widely memory is interleaved across channels inside each node. Turning on L3-as-NUMA takes over the first of those and leaves the second alone. In practice the operating system sees one node per L3, while memory is still interleaved at the granularity NPS sets. The finer map is mainly about which cores share a cache.

The AMD guide does not phrase this the same way everywhere. Next to the per-L3 reporting option, one passage says the NPS setting “will be honored regardless” and that the setting does not affect the number of NUMA nodes. Two other passages say plainly that enabling it overrides the NPS node count. We give more weight to the two explicit override statements. Even so, the safe practice after changing either setting is to boot and count the nodes the kernel actually reports, rather than trusting the BIOS label.

NUMA Nodes per Socket Settings Compared

Setting NUMA nodes per socket Memory interleave PCIe device locality
NPS1 (default) 1 Across all 24 channels Every PCIe device in the one domain
NPS2 2 Across the six channels of each half Not specified in the guide
NPS4 4 (one per quadrant) Across the three channels of each quadrant Local to the quadrant that holds the device’s root complex
L3 as NUMA enabled Up to 12 (one per L3/CCD) Unchanged from the NPS setting Not specified in the guide

The pattern is the same on the older second-generation EPYC (Rome) parts that Dell documents. There, NPS1 interleaves across eight channels, NPS4 interleaves across two channels per quadrant, and PCIe devices belong to the quadrant whose I/O die section holds their root. The node counts and channel numbers differ from one generation to the next, which is reason enough not to carry a pinning script from one server model to another without checking.

What Is the ACPI SRAT, and How Is It Different from the SLIT Distance Table?

The SRAT (System Resource Affinity Table) and the SLIT (System Locality Information Table) are firmware tables that together describe the NUMA layout. The SRAT says which CPUs and which memory ranges belong to which proximity domain, and the SLIT says how far apart those domains are. A proximity domain (PXM) is an opaque firmware identifier. The Linux kernel maps each one to a Linux node number at boot and afterwards uses PXM values only inside its ACPI parsing code. The kernel’s own documentation warns that a proximity domain is only roughly a NUMA node, because a one-to-one mapping is not guaranteed, so “Proximity Domain 4” can become “NUMA Node 3”. Linux node numbers are therefore the kernel’s numbering, not the firmware’s.

The SLIT is a matrix with one number per pair of nodes. Local access is normalised to 10, and Linux uses 20 as the default remote distance. Larger machines add further tiers. A socket two hops away might report 32. These are abstract distances, and the kernel documentation states that they do not describe any real latency or bandwidth. The scheduler uses them to prefer local memory, and the page allocator uses them to choose fallback nodes once the local node is exhausted.

Some firmware fills the whole matrix with 10, as though every node were local. The kernel catches this in slit_valid(), logs “SLIT table looks invalid. Not used.”, and falls back to 10 for same-node pairs and 20 for every cross-node pair. A broken SRAT does more damage. If memory entries are missing, the kernel assigns unclaimed ranges to node 0, and numactl -H shows one huge node, which means NUMA placement has stopped working altogether. On dual-socket EPYC, AMD exposes the remote-socket distance as a setting. Its guide suggests a value of at least 32 (32 recommended) for lightly threaded workloads and less than 32 (22 recommended) for heavily threaded ones.

Why Would a CPU Expose an L3 Slice or Sub-NUMA Cluster as Its Own NUMA Domain?

A CPU exposes each L3 as a NUMA domain so that software which only understands NUMA nodes can still keep cooperating threads on cores that share a cache. AMD’s guide states that motivation directly: some operating systems and hypervisors do not schedule with L3 awareness, and declaring each L3 a NUMA domain lets them group work onto cores that share a single last-level cache. Intel’s Sub-NUMA Cluster (SNC) feature, on some processors, partitions the CPUs that share an L3 cache into two or more sets.

The common idea is that a NUMA node means resources that are cheap to use together. The kernel defines a node as a set of CPUs plus the memory those CPUs can reach cheaply, and nothing in that definition ties a node to a socket. CXL memory expanders already break the node-equals-socket assumption by adding nodes that have memory but no CPUs. The SLIT treats such nodes as infinitely distant from everything else. A launch script that pins to socket 0 assumes a coarser picture than the firmware may actually be presenting.

How Host NUMA Placement Affects Host-to-Device Throughput over PCIe

A PCIe GPU’s root complex sits in one NUMA domain, and the GPU is local to that domain. Under NPS4 on EPYC, for example, it sits in a specific quadrant of the I/O die. If the thread doing the transfer runs on another socket, or its buffer lives there, the data has to cross the inter-socket link before it reaches the GPU. The DMA Streaming Framework (dmaplane) paper names locality to the correct NUMA node and PCIe root complex as a limiting factor for host pipelines that stream large weight shards into an accelerator every step. The same paper observes that transport layers usually assume buffers are already on the right node, which leaves placement as a separate job someone has to do.

The staging buffer needs placing too, not just the thread. A copy from ordinary pageable memory involves an intermediate step that pinned memory, allocated with cudaMallocHost() or cudaHostAlloc(), avoids. NVIDIA’s Mark Harris (December 2012) reported pinned transfers on an NVS 4200M at about 5.8 GB/s host to device, against about 2.3 GB/s for pageable transfers. Onechassis, a server-chassis vendor, gives a rough current figure: PCIe Gen4 x16 has a theoretical peak near 32 GB/s, large pinned transfers reach roughly 24 to 26 GB/s, and pageable transfers land nearer 12 to 13 GB/s.

Where the pages of that buffer physically end up is decided at first touch. Linux places a page on the node of the CPU whose thread first writes to it, not the node where the allocation call was made. A setup thread that zeroes a large buffer on the wrong node fixes that buffer’s location for the rest of the process, even if the feeder thread that uses it later is pinned perfectly.

Does a Host-to-GPU Copy Pass Through the CPU’s L3 Cache?

The direct evidence here covers network cards, not GPUs. Intel’s Data Direct I/O (DDIO) primer describes what happens with a NIC. When the device writes into host memory, the data can be delivered straight into the CPU cache without going to memory. When the device reads and the data is in cache, the cache serves it but then evicts it. When the device reads and the data is not in cache, it comes from memory and is not allocated into the cache. A host-to-device GPU copy is a device read of host memory. If GPU DMA behaves the way the primer describes for NICs, a staging buffer the CPU has just written may be served from L3, and a cold one comes from DRAM. The primer describes NIC traffic, not GPU copies, and DDIO is an Intel technology.

What Does a Feeder Thread in the Wrong NUMA Domain Cost?

A study of a dual-I/O-hub HP SL390 node. In that system, reaching some GPUs from the wrong CPU meant crossing an extra QPI link. The wrong NUMA assignment cut readback (device-to-host) bandwidth by 31% and download (host-to-device) bandwidth by 13% at the largest transfer size. The study points out that the extra hop reduced bandwidth for large transfers, not just latency. Across the SHOC benchmark suite, the average penalty for single-run kernels was 13.5%. In the full applications tested, the penalty ranged from 0.5% to almost 4%, and it was greater in two-task runs contending for the QPI links.

The penalty’s size depends on how much of the runtime is spent moving data. In Spafford’s results, matrix multiplication paid a small penalty, while sum reduction and a nine-point stencil, which do much less computation per byte, paid more. The study also found that moving MPI communication to a separate thread on the interconnect’s NUMA node strongly reduced contention penalties.

These numbers come from an older QPI platform with an additional I/O hub, not from a current EPYC or Xeon server with L3-as-NUMA on. Treat the percentages as evidence that the effect exists and is asymmetric, not as a forecast for your machine. On modern hardware, the sign of a starved GPU is the one Onechassis describes: large pinned transfers coming in well under the link’s practical ceiling, which points to the physical link or NUMA placement rather than the code.

How Do I Find the NUMA Node Closest to My GPU and Pin Buffers There?

Find the GPU’s node, confirm the kernel agrees, and then bind both the feeder thread and its memory to that node before the buffer is first touched. The steps below run in order.

  1. Run nvidia-smi topo -m. It shows how the GPUs connect, their CPU and memory affinities, and which cores sit closest to each GPU. CPU and NUMA affinity are only shown for Kepler or newer GPUs. In NVIDIA’s path classification, the worst case is a path that crosses an SMP interconnect link between NUMA nodes.
  2. Cross-check with the kernel: cat /sys/bus/pci/devices/<bus-id>/numa_node gives the node Linux assigned to the device, and -1 means the firmware supplied no affinity.
  3. Run numactl -H to list each node’s CPUs and memory and the distance matrix the kernel is using. A single huge node points to missing SRAT memory entries. If every off-diagonal entry is 20, the kernel may be using its defaults after rejecting the SLIT.
  4. Launch the feeder under numactl --cpunodebind=<node> --membind=<node>, or set the equivalent affinity from inside the process.
  5. Allocate the pinned staging buffer with cudaHostAlloc() or cudaMallocHost(), from the bound thread, and write to it first from that thread, so that first-touch puts its pages on the GPU’s node.
  6. Measure a large transfer and compare it with the link’s practical rate. Small test copies can hide a placement error, because the penalty may only show at buffer sizes larger than the caches.

Onechassis puts this check before any software tuning: confirm PCIe generation, lane width and NUMA placement first, because every optimisation above them works under the ceiling they set. Pinning is one of several host and driver settings that shape GPU throughput, and our article on GPU performance settings such as persistence mode, power limits, MIG and NUMA pinning covers the others.

When Does Turning on L3 as NUMA Domain Make No Difference?

NUMA placement penalties shrink in four situations.

  • Small working sets. The dmaplane paper found no cross-node CPU memcpy penalty on AWS c5.metal at 1 MB but one at 64 MB, consistent with caches hiding the effect at small working sets.
  • Compute-dense kernels. When transfer time is a small share of runtime, the NUMA penalty as a percentage of total time falls.
  • Low GPU share of total runtime. In Spafford’s full-application runs, the mapping penalty became small relative to total runtime.
  • Unchanged memory interleaving. The option overrides the node count but keeps memory interleaving at the NPS granularity.

The SLIT can fail to make a difference for a different reason. Its values are abstract and not latencies, and an invalid table is replaced with plain 10 and 20. The kernel’s scheduler and page allocator read these distances when placing memory.

The dmaplane authors draw a lesson from their result: placement errors can be silent and may only appear at buffer sizes that spill out to DRAM. That is the argument for testing placement at production batch sizes rather than with a toy loop.

How Does Host-Side Locality Relate to Performance-Portable GPU Code?

The NUMA map an EPYC server presents depends on its NPS and L3-as-NUMA settings, Intel parts can add sub-NUMA clusters, and the firmware’s proximity domains may not even map one-to-one to Linux nodes. We treat portability as an engineering problem in its own right, worth scoping against a measurable trigger such as a performance ceiling, and a GPU starved by a cross-domain staging buffer is exactly that kind of ceiling. The same lesson shows up on the CPU side in what SSE vs AVX portability teaches about performance-portable code.

TechnoLynx’s GPU Performance Audit includes characterising host-side NUMA and SRAT topology alongside cross-platform performance characterisation. It establishes where the feeder path sits relative to the GPU. That work is part of our GPU performance engineering practice. Placement changes how fast data arrives, not what the GPU computes. A port that has gained throughput still needs its outputs checked, which is covered in validating numerical reproducibility of GPU ports.

FAQ

Does AMD Use NUMA?

Yes. AMD EPYC 9004 Series processors use a NUMA architecture in which latency depends on how close a core is to memory and I/O controllers, and the NPS BIOS setting controls how that topology is presented.

Is L3 Cache Shared Between All Cores?

Not on every CPU. On AMD EPYC 9004 each CCD has its own L3, shared by that CCD’s cores, and Intel’s Sub-NUMA Cluster feature divides the CPUs that share an L3 into two or more sets.