Skip to content

Instantly share code, notes, and snippets.

@jetsonhacks
Created November 19, 2014 00:28
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jetsonhacks/8c4cd5847ab3aabc7961 to your computer and use it in GitHub Desktop.
Save jetsonhacks/8c4cd5847ab3aabc7961 to your computer and use it in GitHub Desktop.
Set CPU to full performance on NVIDIA Jetson TK1 Development Kit
#!/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
@kaj143
Copy link

kaj143 commented Nov 17, 2016

How to run this script??

@ramaofi
Copy link

ramaofi commented May 20, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment