[<prev] [next>] [day] [month] [year] [list]
Message-ID: <BLU436-SMTP91B1A813670908B6CCEBECA6AA0@phx.gbl>
Date: Mon, 29 Jun 2015 21:10:13 +0900
From: Akira Nakajima <linolenic@...mail.com>
To: linux-kernel@...r.kernel.org
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.)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists