-
-
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
RFE: return max/peak RSS usage from Process.memory_info #1096
Comments
I'm not sure this can be done as
|
I am afraid I don't understand what you mean by
If you want to return the process+children peak memory usage, you can call My point is that this value (max RSS/peak memory usage &c) is a critically important parameter, and making it available seems like a good idea. It might not be trivial, but it is doable. |
|
You mean threads? At any rate, even if the problem is harder than I think, it does not look insurmountable, and googling shows that your users ask for it on SO all the time. :-) Thank you! |
You don't understand. Any >>> import resource
>>> resource.getrusage(resource.RUSAGE_SELF).ru_maxrss
10476
>>> resource.getrusage(resource.RUSAGE_CHILDREN).ru_maxrss
0 |
Thanks for your patience. |
Assuming that:
...I think this is not worth it. |
The peak memory image can also be determined on Windows. |
The peak memory usage is an important parameter to monitor.
It is available as the nonstandard
ru_maxrss
field instruct rusage
on most UNIX platforms (although in different units: bytes on BSD, kilobytes on Linux), and you are already returning it frommemory_info
on Windows aspeak_wset
.It would be nice if you could add it with a consistent cross-platform name and units (like you already do with
rss
andvms
) to thepmem
structure on all platforms.The name should probably be
peak_rss
and the units should be bytes (for consistency withrss
).Thank you!
The text was updated successfully, but these errors were encountered: