From a76fae7b6eadcffcbd40e39c5d75160d7d215f5d Mon Sep 17 00:00:00 2001 From: Feng Pan Date: Thu, 27 Oct 2016 22:25:31 -0400 Subject: Add support for isolcpu and VPP thread pinning Also depend on https://github.com/radez/puppet-fdio/pull/14 JIRA: APEX-337 opnfv-tht-pr: 92 Change-Id: Ic3d2f04bfd1983c38e09a2bfa3992a572fc9c6c1 Signed-off-by: Feng Pan (cherry picked from commit 6fd923895a663923f0569078eceb3818373b3e1d) --- build/build_perf_image.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'build') diff --git a/build/build_perf_image.sh b/build/build_perf_image.sh index 68a1804f..68f74ea2 100644 --- a/build/build_perf_image.sh +++ b/build/build_perf_image.sh @@ -41,3 +41,14 @@ if [ "$CATEGORY" == "kernel" ]; then fi fi +if [ "$CATEGORY" == "vpp" ]; then + if [ "$KEY" == "main-core" ]; then + sudo sed -i "/${ROLE}VPPMainCore:/c\ ${ROLE}VPPMainCore: '${VALUE}'" /usr/share/openstack-tripleo-heat-templates/environments/numa.yaml + fi + if [ "$KEY" == "corelist-workers" ]; then + sudo sed -i "/${ROLE}VPPCorelistWorkers:/c\ ${ROLE}VPPCorelistWorkers: '${VALUE}'" /usr/share/openstack-tripleo-heat-templates/environments/numa.yaml + fi + if [ "$KEY" == "uio-driver" ]; then + sudo sed -i "/${ROLE}UIODriver:/c\ ${ROLE}UIODriver: '${VALUE}'" /usr/share/openstack-tripleo-heat-templates/environments/numa.yaml + fi +fi \ No newline at end of file -- cgit 1.2.3-korg