-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[CentOS] cpu_freq OSError: [Errno 16] Device or resource busy #2261
Comments
Mmm.. are there some network partitions / folders involved? |
Yes, there are some network folders on the server. But the code reads data from /sys/... which is 100% local. ZFS folder on which psutil code is running is also placed on a local disks. |
I guess you have no way to reliably reproduce this, correct? This is similar to #2250 (comment): we may retry |
Well, we spent some more time to play with tests and different hypothesis. So far, it looks like the problem is not related to amount of opened files. And the issue could be the following: If I understand right, your proposal about EBUSY exception could be used in some future versions of psutils. And right now we can not "activate" it? If you know some hack how to fix scaling_max_frequency, we would gladly use it. Because the value of CPU frequency is not critical for the system that uses psutil. |
Summary
Description
Hello! First of all, thank youo for the great tool you are developing.
I have very strange issue with psutil library. It breaks during high load on the server. Always during max_ = int(bcat(pjoin(path, "scaling_max_freq"))) / 1000
The error is the following:
CPU frequency information exists at the following path:
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
Caching method is not working since different processes running cpu_freq function. It happens not always. Do you know what can it be?
The text was updated successfully, but these errors were encountered: