From a6a5c653357cf0fd82c489501b6bdbacb2aaf65b Mon Sep 17 00:00:00 2001 From: kalyanreddy Date: Thu, 25 May 2017 15:01:40 +0530 Subject: Qemu: Mechanism to pass extra qemu cpu features and pin vCPU threads JIRA: VSPERF-510 This patch is used to implement the mechanism to pass extra qemu cpu options required to achieve better results/performance. Also used to implement a mechanism to pin the vCPU threads to another pCPU core which helps in reducing the noise from housekeeping thread and packet loss. Change-Id: Ic40fd47d7c4f5556f7e240c6ca671a0535d06ece Signed-off-by: Gundarapu Kalyan Reddy --- conf/04_vnf.conf | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'conf') diff --git a/conf/04_vnf.conf b/conf/04_vnf.conf index 75f107e8..eafec74b 100644 --- a/conf/04_vnf.conf +++ b/conf/04_vnf.conf @@ -142,10 +142,19 @@ GUEST_HUGEPAGES_NR = ['1024'] # test-pmd requires 2 VM cores GUEST_SMP = ['2'] +# cpu features to the guest, default options provided to pass all available +# host processor features to the guest. Also tsc deadline timer for guest, +# the guest PMU, the invariant TSC options can be provided as well. +GUEST_CPU_OPTIONS = ['host,migratable=off'] + # Host cores to use to affinitize the SMP cores of a QEMU instance # For 2 VNFs you may use [(4,5), (6, 7)] GUEST_CORE_BINDING = [('#EVAL(6+2*#VMINDEX)', '#EVAL(7+2*#VMINDEX)')] +# pin guest vCPU threads to another pCPU core. This reduces the noise from qemu +# housekeeping threads. By default the GUEST_THREAD_BINDING will be none. +GUEST_THREAD_BINDING = [ None ] + # Queues per NIC inside guest for multi-queue configuration, requires switch # multi-queue to be enabled for dpdk. Set to 0 for disabled. Can be enabled if # using Vanilla OVS without enabling switch multi-queue. -- cgit 1.2.3-korg