Architecture:
**AMD** Opteron quad-core using 2 CPUs --- Numa system
Processor : x86_64 Operating System: GNU/Linux
I am trying to set the core freq to 2.2GHz(that being the max) on just one core of the die. The other die completely turned off.
sudo sh -c "echo 0 > /sys/devices/system/cpu/cpu1/online"
sudo sh -c "echo 0 > /sys/devices/system/cpu/cpu3/online"
sudo sh -c "echo 0 > /sys/devices/system/cpu/cpu5/online"
sudo sh -c "echo 0 > /sys/devices/system/cpu/cpu7/online"
Therefore just the cores, 0,2,4,6 are turned on
I have tried changing the governor
to performance
but it changes the frequency of other cores' when any other thread runs on it.
For example:
if thread one runs on core 0: then its freq is 2.2GHz
when thread two starts to run on core 2: it gets it as 2.2GHz - Where as I am expecting it to work as 0.8GHz.
is there a particular way to just set the frequency of just one core permanently.