Process memory inspection

Dan Nelson dnelson at allantgroup.com
Wed Oct 1 15:57:05 UTC 2008


In the last episode (Oct 01), Ivan Voras said:
> Hi,
> 
> The top utility has SIZE and RES, but doesn't have what part of SIZE
> is sysv shared memory. Is there something that can print out in
> detail how a process uses / allocates its memory (I'm specifically
> interested in sysvshm but there's also the stack & mmap)?

You can get detailed process memory info from /proc/<pid>/map , or in
7.1 and later, "procstat -v".  I don't know how easy it is to identify
which block is shared memory, though.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list