numa_set_distance(9)
π 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 π¦
- Kernel file:
./mm/numa_memblks.c numa_reset_distance(9)numa_remove_memblk_from(9)numa_move_tail_memblk(9)numa_add_memblk(9)numa_add_reserved_memblk(9)numa_cleanup_meminfo(9)numa_fill_memblks(9)
π«Ά that's the page, bestie! source/version + date stamp: ./mm β October 2026. periodt. π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms