Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU_CLK_UNHALTED.THREAD Fixed PMU Event Reading Issue #269

Open
Osmanyasal opened this issue Jan 20, 2025 · 0 comments
Open

CPU_CLK_UNHALTED.THREAD Fixed PMU Event Reading Issue #269

Osmanyasal opened this issue Jan 20, 2025 · 0 comments

Comments

@Osmanyasal
Copy link

Osmanyasal commented Jan 20, 2025

Dear Perfmon Team,

We encountered an issue while attempting to read the CPU_CLK_UNHALTED.THREAD fixed PMU event, as it consistently returned 0 on four different systems. However, when configuring another fixed performance event (its reference cycles version), it worked as expected. What’s more surprising is that monitoring this event using its programmable counter event code worked correctly. We are curious if there might be an underlying issue we are unaware of.

Details are provided below.
Thank you for your assistance.

Best regards

================= PERFMON EVENT ===============

We are interested in CPU_CLK_UNHALTED.THREAD (doesn't count) and CPU_CLK_UNHALTED.REF_TSC (counts well)
We put the "perf" tool output but our tool (which uses perf_event_open kernel call) also result in 0.

Image

=================
This is my laptop which support icl events.
Image

Image

=================
This is one of our machines
https://www.intel.com/content/www/us/en/products/sku/120485/intel-xeon-gold-6140-processor-24-75m-cache-2-30-ghz/specifications.html
Image

Image

==================
And this is another machine
[Products formerly Skylake](https://www.intel.com/content/www/us/en/products/sku/126697/intel-core-i97960x-xseries-processor-22m-cache-up-to-4-20-ghz/specifications.html)

Image

Image

=================
And This is the other machine
https://www.intel.com/content/www/us/en/products/sku/232167/intel-core-i913900ks-processor-36m-cache-up-to-6-00-ghz/specifications.html

Image

Image

=============== THE SUPRISING PART ================

For this event, this is the corresponding programmable event code for all given machines UNHALTED_CORE_CYCLES = 0x3c, which seems working.

My Laptop:
Image

Xeon machine:
Image

i9 machine:
Image

the other i9 machine

Image

@Osmanyasal Osmanyasal changed the title CPU_CLK_UNHALTED.THREAD Fixed PMU Event Reading Error CPU_CLK_UNHALTED.THREAD Fixed PMU Event Reading Issue Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant