Architecture:
**AMD** Opteron quad-core using 2 CPUs --- Numa system
Processor : x86_64 Operating System: GNU/Linux
我试图在芯片的一个核心上将核心频率设置为 2.2GHz(即最大值)。另一个模具完全关闭。
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"
因此,只有核心,0,2,4,6 are turned on
我尝试将其更改为governor
,performance
但是当任何其他线程在其上运行时,它会改变其他内核的频率。例如:
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.
有没有一种特殊的方法可以永久设置一个核心的频率。