numa_set_distance(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

Okay bestie, meet numa_set_distance(9) from the Kernel API Manual β€” she sets the NUMA distance from one NUMA to another. Literally her whole job. πŸ’…

✨ SYNOPSIS ✨

void numa_set_distance (int from , int to , int distance );

🌸 ARGUMENTS 🌸

  • from β€” the 'from' node to set distance πŸ’–
  • to β€” the 'to' node to set distance 🫢
  • distance β€” the NUMA distance ✨

πŸ’… DESCRIPTION πŸ’…

Okay so the main character move: set the distance from node from to to to distance. That's it, that's the vibe. πŸ‘‘

If the distance table doesn't exist yet, one that's large enough to accommodate all the currently known nodes will be created. Slay, built on demand.

If that table can't be allocated, a warning is printed, and further calls are ignored until the distance table is reset with numa_reset_distance. No cap, that's the rule β€” warning first, then the silent treatment for later calls. 😭

If from or to is higher than the highest known node or lower than zero at the time of table creation, or distance doesn't make sense, the call is ignored. This is to allow simplification of specific NUMA config implementations. So if the args are giving nonsense, she just doesn't. πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

🫢 that's the page, bestie! source/version + date stamp: ./mm β€” October 2026. periodt. πŸ’–

πŸ“¦ where this page comes from