Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: Fix MBR value for non-SNC machines
There is an issue in counting remote traffic for non-SNC machines, it is always 0. Example: There is a 2-socket non-SNC machine having the following CPU mapping: NUMA node0 CPU(s): 0-47,96-143 NUMA node1 CPU(s): 48-95,144-191 Let's generate remote traffic in a terminal 1: 1. From node 0 to node 1 numactl --membind=1 membw -c 1 -b 200 --write 2. From node 1 to node 0 numactl --membind=0 membw -c 49 -b 200 --write Let's check 'MBR' value for each of the cases in a terminal 2: $ sudo LD_LIBRARY_PATH=lib ./pqos/pqos --iface=os -m "llc:1,49;mbl:1,49;mbr:1,49;mbt:1,49" It will show that MBR is always zero. This is wrong. Remove the wrong calculation that doesn't affect the results for SNC machines and zeroes MBR values for non-SNC ones. Signed-off-by: Roman Storozhenko <[email protected]>
- Loading branch information