Hyperthreading CPU frequency question?

Alagappan

Commendable
Feb 7, 2017
3
0
1,510
I would highly appreciate if anyone could answer this.

I am using an Octa core system. Hyperthreading is enabled in my system. So when I run my htop command I see 16 cpus( 8 cores with 2 threads each so I have 16 cpus).

I am able to set different operating frequencies for these 16 cpus using Dvfs individually.

My question is one physical core is interpreted as two logical cores (threads) by the operating system!

Can these two logical cores run on two different frequencies at the same time or can they run on only one frequency at any given time?

Is the operating frequency per physical core or is it different with in one physical core (for e.g. Different for each logical core)

I am able to change the frequency for the logical core with in a physical core.. not sure if that's right or is that how the system is designed. Or my understanding is wrong?

Any help will be highly appiciated!

 
Hyperthreading works by feeding data to the CPU as data is being processed by the CPU. So although each core is still only capable of doing 1 thing at a time there is some idle time cut by keeping the cpu cores fed faster thus making the CPU a bit more efficient at doing its work. So because there is only 1 core per core even with hyperthreading you can't change the frequency of the extra threads seen by windows. Each core operates at its own frequency and because the hyperthreaded part of the CPU is actually used by the same core it can only operate at the frequency of the core.
 

Alagappan

Commendable
Feb 7, 2017
3
0
1,510
Still a bit unclear. Are you trying to say the hyperthreaded cores will only operate on the frequency of its physical core. For example let's say one physical core has 2 hyperthreaded cores. You mean to say the 2 hyperthreaded cores can only operate on the frequency of its physical core and not on frequency by its own?

 


Yes.