-
Notifications
You must be signed in to change notification settings - Fork 124
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.online_cpus_count() is different from nproc
, after SMT change
#1110
Comments
This is the code snippet I used to compare the online cpus given by
|
If I introduce a sleep(1) just after setting SMT, both the values are same. |
If I use this line: |
It seems that the problem persists in From what I have observed, the configuration
|
@harish-24 @PraveenPenguin any update on this ? |
@narasimhan-v @PraveenPenguin Following are the time observations for each of the SMT from
Clearly reading from sysconf is way slower than the other methods. I believe it has to be a bug either in updation of sysconf variable or the way os reads from sysconf. |
avocado-misc-tests/cpu/ppc64_cpu_test.py
Line 125 in ede9581
The text was updated successfully, but these errors were encountered: