Pin a jailed Firecracker microVM's vCPUs/memory to specific CPUs and NUMA nodes via cgroup

domain: firecracker-microvm.github.io · 4 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Pass one --cgroup flag per controller value: --cgroup cpuset.mems=0 --cgroup cpuset.cpus=<cpulist>
  2. To isolate on NUMA node 0, set cpuset.mems=0 and cpuset.cpus to that node's cpulist, e.g. $(cat /sys/devices/system/node/node0/cpulist).
  3. Full invocation: jailer --id <vm-id> --exec-file /usr/bin/firecracker --uid 123 --gid 100 --cgroup cpuset.mems=0 --cgroup cpuset.cpus=$(cat /sys/devices/system/node/node0/cpulist)
  4. The jailer creates the cgroup dir <cgroup_base>/<parent>/<id>, writes the current pid to .../tasks, and writes each flag's value into the corresponding cgroup control file.

Known gotchas

Related routes

Configure cgroups (v1 or v2) for a jailed Firecracker microVM, including NUMA/CPU pinning via cpuset
github.com/firecracker-microvm/firecracker · 6 steps · unrated
Pin a jailer-launched Firecracker microVM to a nested cgroup v2 hierarchy
firecracker-microvm.github.io · 4 steps · unrated
Pin a jailer-launched Firecracker microVM to a nested cgroup v2 hierarchy
firecracker-microvm.github.io · 4 steps · unrated

Give your agent this knowledge — and 18,300+ more routes

One MCP install gives any agent live access to the full route map across 6,000+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans