我想问你:
据我所知,在 Linux 上,有些进程拥有共享库,为此,我们可以使用 PSS,因为它提供了有关共享库大小的信息。而Uss是进程的私有(private)脏内存。
但我的问题是:
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
关于linux - PSS/USS Linux-Android。 Pss包含Uss吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31199554/