lkml.org 
[lkml]   [2015]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[QUESTION 2/2] Simple question about pagemap
Sorry for simple question.

2. What is useful use of pagemap for troubleshooting?

I like to know PFN mapping, but my boss says
"On RHEL6 and RHEL7, what can we use for?"

For example, we can use the USS(Unique Set Size) to invest process memory leak.

Calculating USS
/proc/PID/pagemap has physical address and kpagecount is 1.
USS = Total of above condition pages x 4KB.

So, we can do the same using smaps.
cat /proc/PID/smaps | awk '/^Private/{sum += $2}END{print sum}'


What is useful use of pagemap for troubleshooting? (It's difficult by smaps)
(soft-dirty is above kernel 3.11. RHEL7 is not supported.)


\
 
 \ /
  Last update: 2015-06-29 14:41    [W:0.027 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site