NVIDIA Jetson Orin NX - Maximizing Performance

From RidgeRun Developer Wiki
Revision as of 19:44, 8 November 2023 by Mpinnock (talk | contribs) (Created page with "<noinclude> {{NVIDIA Jetson Orin NX/Head|previous=JetPack 5.1.1/Performance Tuning/Tuning Power|next=Development in the Board|metakeywords=jetpack, performance, tuning, clock, jetson clock, CPU core, activate cpu}} </noinclude> {{DISPLAYTITLE:NVIDIA Jetson Orin NX - Maximizing Performance|noerror}} __TOC__ ==Activate CPUs== By default 6 out of 6 possible CPU cores are enabled on the Jetson Orin NX. You can activate/deactivate them with the following commands: First...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



Previous: JetPack 5.1.1/Performance Tuning/Tuning Power Index Next: Development in the Board







Activate CPUs

By default 6 out of 6 possible CPU cores are enabled on the Jetson Orin NX. You can activate/deactivate them with the following commands:

First is necessary to access as root (you need root permissions)

sudo su

Then, you can deactivate the CPU cores:

echo 0 > /sys/devices/system/cpu/cpu1/online
echo 0 > /sys/devices/system/cpu/cpu2/online
echo 0 > /sys/devices/system/cpu/cpu3/online
echo 0 > /sys/devices/system/cpu/cpu4/online
exit


You must activate all CPUs before running jetson_clocks to overclock these CPUs too. Remember to leave at least one core activated.

Jetson Clocks

The Orin NX provides the jetson_clocks.sh script to maximize Jetson Orin performance by setting static max frequency to CPU, GPU, and EMC clocks. The script can also be used to show current clock settings, store current clock settings into a file, and restore clock settings from a file.

Options

--show           Displays the current settings.
--store [file]   Stores the current settings to a file. The default file is l4t_dfs.conf.
--restore [file] Restores the saved settings from the file. The default file is l4t_dfs.conf.
  • To show the current settings:
sudo jetson_clocks --show
  • To store the current settings:
sudo jetson_clocks --store
  • To maximize Jetson Orin performance
sudo jetson_clocks
  • To restore the previous settings stored in a file as seen in "To store the current settings:"
sudo jetson_clocks --restore



Previous: JetPack 5.1.1/Performance Tuning/Tuning Power Index Next: Development in the Board