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

Collecting C-state residency counters on sapphire rapids #329

Closed
tilsche opened this issue Mar 21, 2024 · 2 comments
Closed

Collecting C-state residency counters on sapphire rapids #329

tilsche opened this issue Mar 21, 2024 · 2 comments
Labels

Comments

@tilsche
Copy link
Member

tilsche commented Mar 21, 2024

Those are listed in lo2s --list-events:

  cstate_core/c1-residency/ #
  cstate_core/c6-residency/ #
  cstate_pkg/c2-residency/ #
  cstate_pkg/c6-residency/ #
# lo2s -E cstate_core/c1-residency/ -E cstate_core/c6-residency/ -E cstate_pkg/c2-residency/ -E cstate_pkg/c6-residency/ -- sleep 300
[522928293338619][pid: 1584395][tid: 1584395][ERROR]: perf_event_open for counter failed
[522928293485479][pid: 1584395][tid: 1584395][ERROR]: failed to add counter 'cstate_core/c1-residency/': Invalid argument
[522928293499300][pid: 1584395][tid: 1584395][ERROR]: opening 4 counters at once might exceed the hardware limit of simultaneously openable counters.
[522928295170290][pid: 1584395][tid: 1584395][ WARN]: Could not start measurement for thread 1584399: Invalid argument

Same for

# lo2s -E cstate_core/c1-residency/ -E cstate_core/c6-residency/ -E cstate_pkg/c2-residency/ -E cstate_pkg/c6-residency/ -- sleep 300
# lo2s -E cstate_core/c1-residency/ -- sleep 300
# lo2s -E cstate_pkg/c2-residency/ -E cstate_pkg/c6-residency/ -- sleep 300
# lo2s -E cstate_pkg/c2-residency/ -E cstate_pkg/c6-residency/ --metric-frequency 1 -- sleep 300

perf works:

# perf stat -e cstate_core/c1-residency/ -e cstate_core/c6-residency/ -e cstate_pkg/c2-residency/ -e cstate_pkg/c6-residency/ -- sleep 60
perf stat -A -e cstate_core/c1-residency/ -e cstate_core/c6-residency/ -e cstate_pkg/c2-residency/ -e cstate_pkg/c6-residency/ -- sleep 60
@tilsche tilsche added the bug label Mar 21, 2024
@cvonelm
Copy link
Member

cvonelm commented Mar 22, 2024

This is a duplicate of #259. #330 is a simple PR that implements the cpumask parsing part, but not the "If an event is only supported in per-CPU mode, open it in per-CPU mode even when we are using lo2s per-process" part.

@tilsche
Copy link
Member Author

tilsche commented Mar 22, 2024

Thanks for finding that, closed as duplicate

@tilsche tilsche closed this as not planned Won't fix, can't repro, duplicate, stale Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants