#!/bin/bash # Set governor to performance on all CPUs cpupower -c all frequency-set -g performance # Set Intel CPU P-State driver options if [ -d /sys/devices/system/cpu/intel_pstate ] then echo -n 100 > /sys/devices/system/cpu/intel_pstate/min_perf_pct fi # Set energy/performance bias if x86_energy_perf_policy -r >/dev/null 2>&1 then x86_energy_perf_policy performance fi