Created
January 25, 2015 07:28
-
-
Save shicai/8c29c897a502c93981ee to your computer and use it in GitHub Desktop.
Set CPU to full performance on NVIDIA Jetson TK1 Development Kit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Set CPU to full performance on NVIDIA Jetson TK1 Development Kit | |
if [ $(id -u) != 0 ]; then | |
echo "This script requires root permissions" | |
echo "$ sudo "$0"" | |
exit | |
fi | |
# To obtain full performance on the CPU (eg: for performance measurements or benchmarking or when you don't care about power draw), you can disable CPU scaling and force the 4 main CPU cores to always run at max performance until reboot: | |
echo 0 > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/enable | |
echo 1 > /sys/devices/system/cpu/cpu0/online | |
echo 1 > /sys/devices/system/cpu/cpu1/online | |
echo 1 > /sys/devices/system/cpu/cpu2/online | |
echo 1 > /sys/devices/system/cpu/cpu3/online | |
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment