gh-132917: Use RSS + swap for estimate of process memory usage (gh-133464)

This commit is contained in:
Neil Schemenauer 2025-05-05 14:15:05 -07:00 committed by GitHub
parent e4561da886
commit 893034cf93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 66 additions and 57 deletions

View file

@ -128,8 +128,8 @@ The :mod:`gc` module provides the following functions:
starts. For each collection, all the objects in the young generation and some
fraction of the old generation is collected.
In the free-threaded build, the increase in process resident set size (RSS)
is also checked before running the collector. If the RSS has not increased
In the free-threaded build, the increase in process memory usage is also
checked before running the collector. If the memory usage has not increased
by 10% since the last collection and the net number of object allocations
has not exceeded 40 times *threshold0*, the collection is not run.