Skip to content
Graphviz (DOT) templates

NUMA Topology

Two-socket NUMA system showing local vs remote memory access.

Template previewGraphviz (DOT)
numa C0 CPU 0 (cores 0-7) C1 CPU 1 (cores 8-15) C0->C1 QPI / UPI M0 DRAM node 0 (local to CPU 0) C0->M0 local — fast M1 DRAM node 1 (local to CPU 1) C0->M1 remote — slow C1->M0 remote — slow C1->M1 local — fast

What this template contains

Graph
Directed
Edges
5
Source
14 lines

Make it your own.

digraph numa {
  rankdir=LR;
  graph [bgcolor=transparent];
  node [shape=box, style="rounded,filled", fontname=Inter, fontsize=10];

  C0 [label="CPU 0\n(cores 0-7)", fillcolor="#dbeafe"];
  C1 [label="CPU 1\n(cores 8-15)", fillcolor="#dbeafe"];
  M0 [label="DRAM node 0\n(local to CPU 0)", fillcolor="#fef3c7"];
  M1 [label="DRAM node 1\n(local to CPU 1)", fillcolor="#fef3c7"];

  C0 -> M0 [label="local — fast"];
  C1 -> M1 [label="local — fast"];
  C0 -> M1 [label="remote — slow", style=dashed];
  C1 -> M0 [label="remote — slow", style=dashed];
  C0 -> C1 [label="QPI / UPI", dir=both];
}