-
Notifications
You must be signed in to change notification settings - Fork 107
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
Switch to psutils for resource utilization monitoring at runtime #11677
base: master
Are you sure you want to change the base?
Switch to psutils for resource utilization monitoring at runtime #11677
Conversation
Jenkins results:
|
Typo && Remove unneded import of SubprocessAlgos
9a47116
to
b27645c
Compare
Jenkins results:
|
Hi @smuzaffar, |
Jenkins results:
|
@todor-ivanov , I see that it is available in |
Thanks @smuzaffar , where could I check the |
you can create cmssw dev area for CMSSW_9_0_0, set env and then import psutil to check the version. This should be the min psutil version you should support. You can also do the same for latest CMSSW_13_2_0_pre2 release and check the psutil version there. Note that if you take psutil from cmssw then things can break as for future releases we will move to some newer version of psutil which might not be compatible with your code. |
Jenkins results:
|
Thanks @smuzaffar! I just created a CMSSW_9_0_0 dev area and checked the version: [1]. So the earliest As of the future, you are correct. We will have to think of a way to have this validated if the version changes. One thing is for sure - it won't be left unnoticed in production, because jobs from workflows which had the malchance to include a new and backwords incompatible version of @amaltaro I'd be glad to hear your opinion on this. [1]
|
Jenkins results:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another alternative to fix this has been merged with PR: #11676
We will keep discussing on how to get psutils
in the WMRuntime environment. So I suggest we keep this PR open as discussions progress.
please consider to, |
Can one of the admins verify this patch? |
Fixes #11667
Status
not-tested
Description
The issue #11667 can be solved in 3 different ways. This is the third out of 3 suggested fixes.
psutils
library distributed withcmssw
and directly uses it to fetch the step's resource statistics inside thePerformanceMonitor.py
module itself.This approach requires some more dramatic changes to the code but also achieves:
%cpu
and%mem
mappings which are difficult to interpret at a first glance. (Those are resource utilization rations e.g. cputime/realtime ratio, expressed as a percentage), but we are now logging the much more informativesystem cputime
andvirtual memory
for the process.This would require more detailed testing though.
Is it backward compatible (if not, which system it affects?)
YES
Related PRs
None
External dependencies / deployment changes
No