Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux memory metrics: does PSS include USS?

Tags:

linux

As I know, because of memory sharing, there're several metrics for measuring the memory usage of a Linux process (VSS, RSS, PSS, USS). PSS means proportional set size, and USS means unique set size.

But I have 2 interpretations about the PSS: 1) PSS doesn't include USS, it's only about the proportionally shared memory; 2) PSS = USS + proportionally shared memory.

Which interpretation is correct?

like image 612
Dagang Avatar asked May 08 '26 14:05

Dagang


1 Answers

1) is correct. PSS = USS + proportionally shared memory.

You can find the explanation on smem's man page.

like image 89
onemouth Avatar answered May 11 '26 03:05

onemouth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!