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

[Linux] ps.util_freq() takes more than 5 seconds on AMD Epyc 7742 #1933

Closed
lbhm opened this issue Apr 12, 2021 · 1 comment
Closed

[Linux] ps.util_freq() takes more than 5 seconds on AMD Epyc 7742 #1933

lbhm opened this issue Apr 12, 2021 · 1 comment

Comments

@lbhm
Copy link

lbhm commented Apr 12, 2021

Summary

  • OS: Ubuntu 20.04.1 LTS
  • Architecture: x86_64
  • Psutil version: 5.8.0
  • Python version: 3.8.5
  • Type: performance

Description

I recently got access to a dual-socket AMD Epyc 7742 machine with a total of 256 logical cores. One of the first things I did was to install bpytop to monitor system behavior. However, I noticed that bpytop reacts very slowly on this machine. When I reached out to the bpytop community, they asked me to run scripts/internal/print_api_speed.py from the psutil repo and it showed that cpu_freq takes 5.11 seconds.

Could this issue be related to the core count of the CPUs or to their relative novelty? I'd appreciate any help on how I can improve the performance of cpu_freq() on the system.

@giampaolo
Copy link
Owner

giampaolo commented Apr 13, 2021

This was addressed in #1851, which is still unreleased. You can get it by using latest GIT master version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants