Partially Verified65% confidenceFactExact time
resource.getrusage(RUSAGE_SELF).ru_maxrss returns the maximum peak of physical memory actually occupied during the process lifetime, in KB (Linux).
3
Sources
65%
Confidence
Long-term
Relevance
10/17/2026
First Seen
Sources
Related Entities
Related Claims
Partially Verifiedresource.getrusage(RUSAGE_SELF).ru_maxrss returns on Linux the peak resident memory of the current process since startup, in kilobytes; monitoring peak RSS is more effective at preventing OOM than monitoring the average.78% similarVerifiedru_maxrss returns the peak RSS over the process's lifetime; the unit is KB on Linux and bytes on macOS.77% similarUnverifiedPeak RSS is a metric of the physical memory a process actually occupies, and ru_maxrss records the maximum resident set size reached during the process's lifetime.70% similarUnverifiedOn a single-core server with 2 GB of memory, run only one process at a time, call gc.collect() to free memory after each asset is processed, and measure peak RSS rather than average usage with resource.getrusage(RUSAGE_SELF).ru_maxrss.68% similarUnverifiedPeak memory refers to the maximum memory occupied by all live tensors at any point during program execution.60% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1057070API
curl https://kongchang.com/api/v1/knowledge/claims/1057070MCP
get_claim(id=1057070)