Created
November 19, 2014 00:28
-
-
Save jetsonhacks/8c4cd5847ab3aabc7961 to your computer and use it in GitHub Desktop.
Set CPU to full performance on NVIDIA Jetson TK1 Development Kit
This file contains hidden or 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
How to run this script??
./maxCPU.sh
or you can enter as root in terminal:
sudo -s
then run each command individually:
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