Play with NVIDIA Jetson (21) --- jetson isolcpus

In versions after jetpack4.6 of the jetson platform, it is easy to use a CPU independently.

Open

/boot/extlinux/extlinux.conf

Add at the end of the APPEND option

isolcpus=3

At this time you can pass

cat /proc/cmdline

To check whether the isolcpus has been added, and restarting can check whether the independent CPU usage is 0% through system monitoring.

The independent CPU does not accept other programs to perform calculations, unless it is displayed using

taskset -c 3 xxx

The above code can make the XXX program run on CPU core 4 alone.

Guess you like

Origin blog.csdn.net/huiyuanliyan/article/details/122291981