Sample Header Ad - 728x90

PS shows different RSS value from Pmap and Smem

3 votes
0 answers
755 views
I want to get the memory consumption by a process. I am using *RSS* parameter to determine it. I am getting same *RSS* value when I am using pmap -xx and with smem tool. But when I am using ps v to get the RSS then it is showing different value. I know for pmap and smem they use /proc/pid/smaps file to get *RSS* value but I don't have idea about ps tool. What are the basis of this calculation in ps tool and which is correct ps or pmap and smem
Asked by Mohit Ranawat (31 rep)
Sep 13, 2019, 06:44 AM
Last activity: Sep 13, 2019, 09:42 AM