aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick
diff options
context:
space:
mode:
Diffstat (limited to 'yardstick')
-rw-r--r--yardstick/benchmark/contexts/ovsdpdk.py2
-rw-r--r--yardstick/benchmark/contexts/sriov.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/yardstick/benchmark/contexts/ovsdpdk.py b/yardstick/benchmark/contexts/ovsdpdk.py
index 86610305e..cf5529d89 100644
--- a/yardstick/benchmark/contexts/ovsdpdk.py
+++ b/yardstick/benchmark/contexts/ovsdpdk.py
@@ -329,7 +329,7 @@ class Ovsdpdk(StandaloneContext):
for i in range(0, 10):
self.connection.execute(
"virsh vcpupin vm1 {0} {1}".format(
- i, nodes[str(num_nodes - 1)][i]))
+ i, nodes[str(num_nodes - 1)][i % len(nodes[str(num_nodes - 1)])]))
def get_numa_nodes(self):
nodes_sysfs = glob.iglob("/sys/devices/system/node/node*")
diff --git a/yardstick/benchmark/contexts/sriov.py b/yardstick/benchmark/contexts/sriov.py
index da143cc4b..fe27d2579 100644
--- a/yardstick/benchmark/contexts/sriov.py
+++ b/yardstick/benchmark/contexts/sriov.py
@@ -392,7 +392,7 @@ class Sriov(StandaloneContext):
for i in range(0, 10):
self.connection.execute(
"virsh vcpupin vm1 {0} {1}".format(
- i, nodes[str(num_nodes - 1)][i]))
+ i, nodes[str(num_nodes - 1)][i % len(nodes[str(num_nodes - 1)])]))
def get_numa_nodes(self):
nodes_sysfs = glob.iglob("/sys/devices/system/node/node*")