3 ms·
CFS, the default Linux scheduler, has a hierarchy of "domains" that by default is organized following the cache topology. When doing load balancing, it is incre
by ot 3y ago
CFS, the default Linux scheduler, has a hierarchy of "domains" that by default is organized following the cache topology. When doing load balancing, it is increasingly less likely to migrate tasks across domains as it goes up the hierarchy.
The user is still in charge of deciding where to allocate the application's memory, either via the NUMA APIs, or via numactl. If the application is memory-intensive, for example, one strategy is to spin up one process per NUMA node and make sure it only uses memory and CPUs from that node.