diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-12-19 16:10:20 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2013-12-20 14:11:35 +0530 |
commit | 51a698fd57843151424730905c7441f56ae63096 (patch) | |
tree | 3a21a97c6db6dd0e1090dc2f30af03e70d7da396 /common/scripts | |
parent | ed3bcd832bbbf189432a031d19897d10d8eed54d (diff) |
is-cpu-isolated: Suppress wakeup events on CPU1
Few more optimizations to reduce number of wakeup events for CPU1, which we are
trying to isolate.
Change-Id: I3751d437dad88679a402d448c3c26ce196d7b1bc
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'common/scripts')
-rwxr-xr-x | common/scripts/is-cpu-isolated.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common/scripts/is-cpu-isolated.sh b/common/scripts/is-cpu-isolated.sh index 19fa9b6..0d56447 100755 --- a/common/scripts/is-cpu-isolated.sh +++ b/common/scripts/is-cpu-isolated.sh @@ -118,6 +118,21 @@ isolate_cpu1() { fi + # Delay the annoying vmstat timer far away (in seconds) + sysctl vm.stat_interval=1000 + + # Delay the annoying vmstat timer far away (in centiseconds) + sysctl vm.dirty_writeback_centisecs=100000 + + # Delay the annoying vmstat timer far away (in centiseconds) + sysctl vm.dirty_expire_centisecs=100000 + + # Shutdown nmi watchdog as it uses perf events + sysctl -w kernel.watchdog=0 + + # Move bdi writeback workqueues to CPU0 + echo 1 > /sys/bus/workqueue/devices/writeback/cpumask + # make sure that the /dev/cpuset dir exits # and mount the cpuset filesystem if needed [ -d /dev/cpuset ] || mkdir /dev/cpuset |