29a30
> import math
45c46,47
< help="high order address bit to use for numa mapping")
---
> help="high order address bit to use for numa mapping. " \
> "0 = highest bit, not specified = lowest bit")
90a93
> # Loop through the directory controlers.
94a98
> # Also set the numa bits to the appropriate values.
96a101,114
>
> dir_bits = int(math.log(options.num_dirs, 2))
>
> if options.numa_high_bit:
> numa_bit = options.numa_high_bit
> else:
> # if not specified, use the lowest bits above the block offest
> if options.numa_high_bit == 0:
> if dir_bits > 0:
> # add 5 because bits 0-5 are the block offset
> numa_bit = dir_bits + 5
> else:
> numa_bit = 6
>
98a117,118
> dir_cntrl.directory.numa_high_bit = numa_bit
>