Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 4fdb137

Browse files
committed
tune host machine fix
1 parent 7c43db2 commit 4fdb137

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nancy_run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2308,11 +2308,11 @@ function tune_host_machine {
23082308
# Switch CPU to performance mode
23092309
docker-machine ssh $DOCKER_MACHINE \
23102310
"[[ -e /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]] \
2311-
&& echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor"
2311+
&& echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor || true"
23122312
# Disable swap
23132313
docker-machine ssh $DOCKER_MACHINE \
23142314
"[[ -e /proc/sys/vm/swappiness ]] \
2315-
&& sudo bash -c 'echo 0 > /proc/sys/vm/swappiness'"
2315+
&& sudo bash -c 'echo 0 > /proc/sys/vm/swappiness' || true"
23162316
fi
23172317
}
23182318

0 commit comments

Comments
 (0)