Software Tuning, Performance Optimization & Platform Monitoring
Discussion regarding monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform updating.
1711 Discussions

CPU_CLK_UNHALTED.THREAD: multiple operating frequencies on one physical core?

AAhusk
Beginner
1,188 Views

The Software Developer's Manual mentions CPU_CLK_UNHALTED.THREAD and says

"The CPU_CLK_UNHALTED.THREAD event counts the number of core cycles while the logical processor is not in a halt state."

For CPU_CLK_UNHALTED.CORE, it says

"If there is only one logical processor in a processor core, CPU_CLK_UNHALTED.CORE counts the unhalted cycles of the processor core."

I'm confused because I've read multiple things saying that a physical core only has one operating frequency, i.e. cycles per unit time. But the CPU_CLK_UNHALTED.THREAD suggests that a logical core has it's own cycle count, and so two different logical cores, or threads, on the same physical core could have two different operating frequencies? Let me know where my understanding is wrong.

Where I read that a physical core only has one frequency(which I interpret as one cycle count as well):

Hyperthreaded cpus and their cores frequencies | Tom's Hardware Forum (tomshardware.com)

Hyperthreading CPU frequency question? | Tom's Hardware Forum (tomshardware.com)

0 Kudos
1 Solution
McCalpinJohn
Honored Contributor III
1,129 Views

A physical core has only one clock, but this counter only counts when the corresponding  "logical processor" is not halted.  The two logical processors associated with a physical core can be halted independently of each other, so the accumulated counts for this performance counter event will generally be different.

View solution in original post

0 Kudos
1 Reply
McCalpinJohn
Honored Contributor III
1,130 Views

A physical core has only one clock, but this counter only counts when the corresponding  "logical processor" is not halted.  The two logical processors associated with a physical core can be halted independently of each other, so the accumulated counts for this performance counter event will generally be different.

0 Kudos
Reply