Messages in this thread | | | From | "Ren, Qiaowei" <> | Subject | RE: [PATCH 1/1] proc: add /proc/pid/shmaps | Date | Thu, 9 Aug 2012 00:49:27 +0000 |
| |
Thanks for your reply. There are so many contents in /proc/pid/maps, and usually only a very small minority of those are about shared memory in address space of every process. So I hope that a new file maybe provide some convenience. Could you tell me how to get such information except analyzing 'maps' file?
-----Original Message----- From: David Rientjes [mailto:rientjes@google.com] Sent: Thursday, August 09, 2012 5:10 AM To: Ren, Qiaowei Cc: Andrew Morton; Al Viro; Oleg Nesterov; Cyrill Gorcunov; Vasiliy Kulikov; Hugh Dickins; Naoya Horiguchi; Konstantin Khlebnikov; linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] proc: add /proc/pid/shmaps
On Wed, 8 Aug 2012, Qiaowei Ren wrote:
> Add a shmaps entry to /proc/pid: show information about shared memory in an address space. > > People that use shared memory and want to perform an analyzing about it. For example, judge whether any memory address is shared. This file just contains 'share' part of /proc/pid/maps now. There are too many contents in maps, and so we have to do a lot of analysis to obtain relative information every time. > > Signed-off-by: Qiaowei Ren <qiaowei.ren@intel.com>
Nack as unnecessary; /proc/pid/maps already explicitly emits 's' for VM_MAYSHARE and 'p' otherwise so this information is already available to userspace.
| |