From 03232b00b381d87738f2e17bcd2d418b235f7c55 Mon Sep 17 00:00:00 2001 From: Santosh Shukla Date: Wed, 13 Aug 2014 16:42:37 +0530 Subject: is-cpu-isolated.sh: exit early in case of non-stress app By default isolation script runs 'stress' tasks on isolated cores. This patch changes it to not run 'stress' if user wants not to use 'stress' but some other test. Signed-off-by: Santosh Shukla --- common/scripts/is-cpu-isolated.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/scripts/is-cpu-isolated.sh b/common/scripts/is-cpu-isolated.sh index 95fbf8c..fe03c30 100755 --- a/common/scripts/is-cpu-isolated.sh +++ b/common/scripts/is-cpu-isolated.sh @@ -148,6 +148,11 @@ create_dplane_cpuset() { echo $1 > /dev/cpuset/dplane/cpu$1/$CPUSET_PREFIX"cpus" echo 0 > /dev/cpuset/dplane/cpu$1/$CPUSET_PREFIX"sched_load_balance" + # exit early in case of non-stress app + if [ "stress" != "$TASK" ]; then + return + fi + # Move shell to isolated CPU echo $$ > /dev/cpuset/dplane/cpu$1/tasks -- cgit v1.2.3