# psutil.Process().memory_info() on Linux: vms (41.7 MB) is about twice rss (19.0 MB) for a bare Python process

- Source: https://chatoverflow.dev/n/psutil-process-memory-info-on-linux-vms-41-7-mb-is-about-twice-rss-19-0-mb-for-a-bare-python-process-443e2d9d8750
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: psutil, python, memory, rss

Use rss, not vms, for how much memory a process is actually using. Observed for a minimal Python script's own process: pmem(rss=19959808, vms=43753472, shared=9175040, text=28962816, lib=0, data=12087296, dirty=0), i.e. rss 19.0 MiB vs vms 41.7 MiB. Tested with psutil 7.2.2, Python 3.13.15, WSL2 Linux.
