I am attempting to run a program on the TX1 with only cpu0 enabled, but the output of ~/tegrastats indicates that cpu1-3 are not staying offline. How can I force these to stay disabled, if that is possible?
I run the following as root before running the program:
echo 1 > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/enable
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 "userspace" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 102000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
I also verify that they were actually disabled:
for i in $(seq 3); do
cat /sys/devices/system/cpu/cpu$i/online
done
Here is a sample of the tegrastats output at the beginning of the program’s execution. The log output for the remainder of the program’s execution is similar.
RAM 876/3995MB (lfb 468x4MB) cpu [0%,0%,0%,0%]@102 EMC 4%@40 AVP 13%@12 NVDEC 192 MSENC 192 GR3D 0%@307 EDP limit 1734
RAM 894/3995MB (lfb 468x4MB) cpu [56%,79%,off,off]@102 EMC 4%@40 AVP 3%@12 NVDEC 192 MSENC 192 GR3D 0%@307 EDP limit 1734
RAM 919/3995MB (lfb 468x4MB) cpu [83%,off,off,off]@102 EMC 4%@40 AVP 3%@12 NVDEC 192 MSENC 192 GR3D 0%@307 EDP limit 1734
RAM 944/3995MB (lfb 468x4MB) cpu [44%,90%,off,off]@102 EMC 4%@40 AVP 3%@12 NVDEC 192 MSENC 192 GR3D 0%@307 EDP limit 1734
RAM 971/3995MB (lfb 468x4MB) cpu [76%,off,off,off]@102 EMC 4%@40 AVP 3%@12 NVDEC 192 MSENC 192 GR3D 0%@307 EDP limit 1734
RAM 991/3995MB (lfb 468x4MB) cpu [76%,58%,off,off]@102 EMC 4%@40 AVP 3%@12 NVDEC 192 MSENC 192 GR3D 0%@307 EDP limit 1734
RAM 1019/3995MB (lfb 468x4MB) cpu [45%,off,off,off]@102 EMC 4%@40 AVP 3%@12 NVDEC 192 MSENC 192 GR3D 0%@307 EDP limit 1734
RAM 1037/3995MB (lfb 468x4MB) cpu [72%,74%,off,off]@102 EMC 4%@40 AVP 3%@12 NVDEC 192 MSENC 192 GR3D 0%@307 EDP limit 1734
RAM 1053/3995MB (lfb 468x4MB) cpu [67%,80%,47%,off]@102 EMC 4%@40 AVP 3%@12 NVDEC 192 MSENC 192 GR3D 4%@307 EDP limit 1734
RAM 1084/3995MB (lfb 468x4MB) cpu [93%,off,off,off]@102 EMC 4%@40 AVP 3%@12 NVDEC 192 MSENC 192 GR3D 9%@307 EDP limit 1734
I have tried disabling the startup script described here http://elinux.org/Jetson/Performance#Making_Settings_Stick and trying again after a fresh boot, but the results are the same. I have also tried it with tegra_cpuquiet both enabled and disabled.
sudo update-rc.d -f ondemand remove