Switch to psutils for resource utilization monitoring at runtime#11677
Switch to psutils for resource utilization monitoring at runtime#11677todor-ivanov wants to merge 4 commits intodmwm:masterfrom
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:
|
|
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.
psutilslibrary distributed withcmsswand directly uses it to fetch the step's resource statistics inside thePerformanceMonitor.pymodule itself.This approach requires some more dramatic changes to the code but also achieves:
%cpuand%memmappings 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 cputimeandvirtual memoryfor 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