CPU Thread Affinity

A couple of questions about the CPU threads:

  1. I need to set thread affinity to the A73 cores, out of the six available which ones are these (0…3 or 2…5)?
  2. I assume there is some CPU throttling in the system when it is not under load, is there any way to disable this so that the CPU always run at the highest clock speed?

Thanks,

Jon

I found the answer myself. In /sys/devices/system/cpu there are folders for each of the six cores. Core 0 and 1 are listed to have frequencies up to 1.8GHz, which are the A53 cores. Cores 2 through 5 have max frequencies of 2.208GHz, which are the A73 cores.

Running lscpu --all --extended will also list:

CPU SOCKET CORE ONLINE MAXMHZ    MINMHZ
0   0      0    yes    1800.0000 500.0000
1   0      1    yes    1800.0000 500.0000
2   1      2    yes    2208.0000 500.0000
3   1      3    yes    2208.0000 500.0000
4   1      4    yes    2208.0000 500.0000
5   1      5    yes    2208.0000 500.0000
2 Likes

cpufreq-info will list them as well.
sudo cpufreq-set -g will set the throttling as well. It’s set to performance by default

1 Like