3 ##############################################################################
4 ## Copyright (c) 2015 Intel Corp.
6 ## All rights reserved. This program and the accompanying materials
7 ## are made available under the terms of the Apache License, Version 2.0
8 ## which accompanies this distribution, and is available at
9 ## http://www.apache.org/licenses/LICENSE-2.0
10 ###############################################################################
12 # Number of huge pages to create and on which NUMA node
16 # QEMU executable path and number of cpus for guest
17 qemu=/usr/local/bin/qemu-system-x86_64
20 # Isolated cpus for nfv, must be given as a range '-' and Numa node1 CPU's should be considered
21 host_isolcpus=`lscpu | grep "NUMA node1 CPU(s)"| awk -F ':' '{print \$2}' | sed 's/[[:space:]]//g'`
22 first=$(echo ${host_isolcpus} | cut -f1 -d-)
23 last=$(echo ${host_isolcpus} | cut -f2 -d-)
25 # Bind cpus from host_isolcpus range for QEMU processor threads
27 while [ ${i} -lt ${guest_cpus} ]; do
30 first=`expr $first + 1`
33 #Isolated cpus from host_isolcpus range to run Stress tool
34 stress_isolcpus=${first}-${last}
35 echo "Stress tool runs on $stress_isolcpus"
37 #Tar the log files generated during testcase execution.
40 cd $WORKSPACE/build_output/
42 tar -czvf log-$(date -u +"%Y-%m-%d_%H-%M-%S").tar.gz log