-
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
read smaps_rollup instead of parsing smaps using "awk" #11667
Comments
there seems to be a python utility (available in cmssw distro) that can be used to get pss rss etc
|
One question remains: given the large combinations of kernel and os this tool need to support HOW it is supposed to be tested? |
Yes, a text file with key value pairs is closer to a real API that can be kept stable with time, while parsing a text file that makes assumptions about format is unsafe. How far back in versions of kernel is smaps_rollup supported? |
smaps_rollup is not supported by 3.10 (at least I did not find it on lxplus7) |
The psutil Looks like smaps_rollup was merged in kernel v4.14, and is only available in EL8 and beyond. psutil uses the more efficient |
Hi @VinInn , thanks for creating the issue and for researching the problem. The I am about to test if it works for kernels bellow 3.x, And if not we may think of a combined solution, between |
According to the information gathered by @mmascher no site of interest for CMS is running a kernel lower than 3.10. |
Impact of the new feature
safer
Is your feature request related to a problem? Please describe.
inconsistent report of PSS vs RSS (see cms-sw/cmssw#40437)
Describe the solution you'd like
read in /proc/pid/smaps_rollup (direclty in python) instead of
WMCore/src/python/WMCore/WMRuntime/Monitors/PerformanceMonitor.py
Line 226 in 762bae9
Describe alternatives you've considered
this is the simplest that come to my mind
Additional context
judge yourself
The text was updated successfully, but these errors were encountered: