Apex › Systems & OS

NUMA & first-touch placement

On a multi-socket machine, memory has an address AND a home node — and a core pays extra to reach another node's RAM. Linux places a page on the node of the core that first writes it, so initializing a big array from one thread pins it all to one socket. Switch between serial, parallel, and interleaved init and watch the accesses turn local or cross the interconnect.

More in Systems & OS