[QUESTION 2/2] Simple question about pagemap
From: Akira Nakajima
Date: Mon Jun 29 2015 - 08:10:29 EST
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.)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/