-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
stats outputting wrong number of CPU core count #422
Comments
Is the count correct when using different AMD driver? Reference: #398 |
Hello, thanks for the reply. My current kernel is not built with amd_pstate. Im holding back on using it since it still need some work from what I have read. That said, I looked at the source code of auto-cpufreq and saw the command used for getting the number of cores is nproc --all. On my machine, running this command returns 16 and there is a file /sys/devices/system/cpu/offline which contains 12-15. This means it's probably not an issue with auto-cpufreq and something to do with my machine. I've created a forum discussion over at archlinux and there are others with the similar nproc output as mine. I can post the update here if there is any progress on this. Or since it is not related to this program, I can close this issue if that is needed |
This used to be handled differently with psutil Python library, but it was changed in meantime IIRC. Either way, if you have an idea how to improve this please consider making code contribution! |
We're looking up the number of cores using "nproc --all". It seems like that command is returning the number of threads and not cores. I think just a plain On my Intel i7-8550U I get
(which is correct) On my AMD Ryzen 7 3700U I get
(which is incorrect) A plain The GNU help for nproc says
|
Suggested fix in PR #423 |
running plain I'm not sure if |
Hello, I've been using auto-cpufreq for a while now and it works fine. But recently when I checked
auto-cpufreq --stats
it incorrectly displays the number of CPU core I have on my computer. I have an AMD ryzen 5 5500U processor which has 6 cores and 12 threads. But the stats says it is 16. It also mentions disabled CPUs from 12 to 15.It doesn't seem to affect the functionality of the program but the count is incorrect. output of
--debug
is provided belowSystem information:
Linux distro: Arch Linux
Linux kernel: 5.19.1-arch2-1
Processor: AMD Ryzen 5 5500U with Radeon Graphics
Cores: 16
Architecture: x86_64
Driver: acpi-cpufreq
------------------------------ Current CPU stats ------------------------------
CPU max frequency: 2100 MHz
CPU min frequency: 1400 MHz
Core Usage Temperature Frequency
CPU0: 1.0% 38 °C 1588 MHz
CPU1: 0.0% 38 °C 2100 MHz
CPU2: 0.0% 38 °C 2100 MHz
CPU3: 0.0% 38 °C 2100 MHz
CPU4: 0.0% 38 °C 1397 MHz
CPU5: 1.0% 38 °C 2100 MHz
CPU6: 0.0% 38 °C 2100 MHz
CPU7: 0.0% 38 °C 2100 MHz
CPU8: 0.0% 38 °C 2096 MHz
CPU9: 0.0% 38 °C 2100 MHz
CPU10: 0.0% 38 °C 2100 MHz
CPU11: 0.0% 38 °C 2100 MHz
Disabled CPUs: 12,13,14,15
auto-cpufreq version: Version : 1.9.5-1
Python: 3.10.5
psutil package: 5.9.1
platform package: 1.0.8
click package: 8.1.3
distro package: 1.7.0
Computer type: Notebook
Battery is: charging
auto-cpufreq system resource consumption:
cpu usage: 0.0 %
memory use: 0.33 %
Total CPU usage: 0.3 %
Total system load: 0.26
Average temp. of all cores: 37.75 °C
Currently using: performance governor
Currently turbo boost is: off
Additional info: package installed from AUR
The text was updated successfully, but these errors were encountered: