What is the difference between VSZ, RSS and PSS?
AdvancedConceptStorage & Memory
Answer
- VSZ: total virtual address space mapped, including unused reservations and shared libs. Usually huge and meaningless.
- RSS: resident pages in RAM, counting shared pages fully for every process, so summing RSS over-counts.
- PSS: proportional set size, shared pages split among sharers; summing PSS gives realistic totals.
ps -o pid,vsz,rss,cmd -p 1234
sudo grep Pss /proc/1234/smaps_rollup
More on Storage & Memory
How do you list disks, partitions and filesystems?IntermediateMBR vs GPT partition tables?IntermediateWalk through adding a new disk and mounting it permanently.IntermediateExplain the six fields of an /etc/fstab line.IntermediateWhy use UUIDs and `nofail` in fstab?IntermediateWhat does a bad fstab entry do, and how do you recover?Advanced