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

Creating PerfEventOutput objects for unavailable CPUs #39

Open
jmbass opened this issue Dec 19, 2023 · 0 comments
Open

Creating PerfEventOutput objects for unavailable CPUs #39

jmbass opened this issue Dec 19, 2023 · 0 comments

Comments

@jmbass
Copy link

jmbass commented Dec 19, 2023

Here a PerfEventOutput's created for each CPU configured by the OS, but that doesn't mean the CPU is available.

Boot with nosmt, for example, makes some cores unavailable event if they're configured by the OS. Attempting to open PerfEventOutputs on them results in ENODEV (No such device) errors.

I'm wondering why get_nprocs_conf was used instead of get_nprocs which only returns the number of processors currently available in the system and wether the latter should be used instead.

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