34a35,36
> from common import FileSystemConfig
>
100a103,123
> # NUMA Node for each quadrant
> # With odd columns or rows, the nodes will be unequal
> numa_nodes = [ [], [], [], []]
> for i in xrange(num_routers):
> if i % num_columns < num_columns / 2 and \
> i < num_routers / 2:
> numa_nodes[0].append(i)
> elif i % num_columns >= num_columns / 2 and \
> i < num_routers / 2:
> numa_nodes[1].append(i)
> elif i % num_columns < num_columns / 2 and \
> i >= num_routers / 2:
> numa_nodes[2].append(i)
> else:
> numa_nodes[3].append(i)
>
> num_numa_nodes = 0
> for n in numa_nodes:
> if n:
> num_numa_nodes += 1
>
192a216,225
>
> # Register nodes with filesystem
> def registerTopology(self, options):
> i = 0
> for n in numa_nodes:
> if n:
> FileSystemConfig.register_node(n,
> MemorySize(options.mem_size) / num_numa_nodes, i)
> i += 1
>