numactl manpage:
  --cpunodebind=nodes, -N nodes
    Only execute command on the CPUs of nodes.  Note that nodes
    may consist of multiple CPUs.  nodes may be specified as
    noted above.

We just want to use numactl to limit memory usage, and set the
cpu affinity of vcpu threads by taskset.
'-N' would make other unimportant threads also execute in
assigned node, it would effect performance.

Reported-by: Wenli Quan <wq...@redhat.com>
Signed-off-by: Amos Kong <ak...@redhat.com>
---
 client/virt/kvm_vm.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/client/virt/kvm_vm.py b/client/virt/kvm_vm.py
index 29d6b68..3622e2d 100644
--- a/client/virt/kvm_vm.py
+++ b/client/virt/kvm_vm.py
@@ -836,10 +836,10 @@ class VM(virt_vm.BaseVM):
             if numa_node < 0:
                 p = virt_utils.NumaNode(numa_node)
                 n = int(p.get_node_num()) + numa_node
-                qemu_cmd += "numactl -N %s -m %s " % (n, n)
+                qemu_cmd += "numactl -m %s " % n
             else:
                 n = numa_node - 1
-                qemu_cmd += "numactl -N %s -m %s " % (n, n)
+                qemu_cmd += "numactl -m %s " % n
         # Add the qemu binary
         qemu_cmd += qemu_binary
         # Add the VM's name
-- 
1.7.1

_______________________________________________
Autotest mailing list
Autotest@test.kernel.org
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to