Skip to content
Graphviz (DOT) templates

NUMA Topology

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

Template previewGraphviz (DOT)
Rendering…

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];
}