AlgoViz

Reading memory evidence at the right boundary

medium 6 min

Virtual size includes mapped ranges whether or not their pages are resident.

Where it shows up

The same pattern appears across everyday software.

  • Why adding up worker RSS overcounts

    A prefork service triples its worker count and the RSS sum jumps. Before buying RAM compare proportional and private dirty memory, node availability, cgroup usage and pressure. Similar shared mappings can account for most of the apparent growth. Repeat after workers mutate shared pages because copy-on-write can turn that apparent cost into real private memory.

  • Verifying the intervention

    Compare PSS and the group charge, then right-size the worker pool and watch private growth. If private dirty pages and the group charge grow with tenant churn, investigate retained mutable data instead of shared mappings.