Re: Question about NUMA distance calculation in powerpc/mm/numa.c

2020-07-20 Thread Michael Ellerman
Daniel Henrique Barboza writes: > Hello, > > > I didn't find an explanation about the 'double the distance' logic in > 'git log' or anywhere in the kernel docs: > > > (arch/powerpc/mm/numa.c, __node_distance()): Adding more context: int distance = LOCAL_DISTANCE; ... > for (i = 0; i <

Question about NUMA distance calculation in powerpc/mm/numa.c

2020-07-16 Thread Daniel Henrique Barboza
Hello, I didn't find an explanation about the 'double the distance' logic in 'git log' or anywhere in the kernel docs: (arch/powerpc/mm/numa.c, __node_distance()): for (i = 0; i < distance_ref_points_depth; i++) { if (distance_lookup_table[a][i] == distance_lookup_table[b][i])