I’m using the Jetson Orin AGX 32GB 12 Cores, and I need to assign only 2 cores (10 and 11) to all the system processes, so the other ones are free for my application.
I wonder if there is a way to “unlock” the default cpuset.cpus file, or if you know another way to assign CPUs 10 and 11 to all the processes of the system (and new processes launched in the default group).
Effectively if I add isolcpus=2-11 to APPEND in the file /boot/extlinux/extlinux.conf and restart, I see that even if I launch a commands that use 12 threads it only uses 0 and 1. For example, if I run:
taskset -c 2-5 stress -c 0
stress-ng: info: [9465] defaulting to a 86400 second (1 day, 0.00 secs) run per stressor
stress-ng: info: [9465] dispatching hogs: 8 cpu
Yes, I get the same result after adding the isolcpus to extlinux.
You can add the CONFIG_CPU_ISOLATION to tegra_defconfig at …/kernel/kernel-5.10/arch/arm64/configs
# ls /usr/src/linux-headers-5.10.104-tegra-ubuntu20.04_aarch64/kernel-5.10/arch/arm64
boot crypto include Kbuild Kconfig Kconfig.debug Kconfig.platforms kernel kvm lib Makefile mm net xen
Is it the Kconfig file? If yes, should I just add config CONFIG_CPU_ISOLATION or something like that? I’d appreciate a more detailed explanation of how to add that configuration.
In addition and just to make sure, it’s something that I can just change and restart, right? Or do I need to re build the kernel.