PSS/USSLinux-Android。 Pss 包含 Us 吗?

PSS/USS Linux-Android. Does Pss contain Uss?

我想问你:

我知道 Linux 上有共享库的进程,看看这个,我们可以使用 PSS,因为它提供了有关共享库大小的信息。而Uss是进程的私有脏内存。

但我的问题是:

pss不包含Uss,只是按比例共享内存;

Pss = Uss + 按比例共享内存。

哪种解释是正确的?

抱歉,这个问题已经在这里回答了:

Android : PSS (Proportional Set Size) Calculation

The "proportional set size" (PSS) of a process is the count of pages it has in memory, where each page is divided by the number of processes sharing it. So if a process has 1000 pages all to itself, and 1000 shared with one other process, its PSS will be 1500