Go Premium for a chance to win a PS4. Enter to Win

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 481
  • Last Modified:

Solaris Equivalent for AIX's spmon command

Is there a Solaris equivalent to AIX's spmon command?  I'm trying to figure out what areas of virtual memory certain processes on the system are using.  ps will give me a location in physical memory and the size, but I don't believe that every process in memory uses a contiguous area of memory.  vmstat will only give me an overall look at memory usage, not a process by process look.
1 Solution
Try the tools in /usr/proc/bin.  In particular, the command "pmap" looks like it'll do what you want.  For example:

dhm@eagleone[24]$ /usr/proc/bin/pmap $$
15407:  -bash
00010000  368K read/exec          dev:  32,14  ino: 32862
0007A000   32K read/write/exec    dev:  32,14  ino: 32862
00082000   88K read/write/exec
00084000   80K     [ heap ]
EF6E0000   16K read/exec          /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1
EF6F2000    8K read/write/exec    /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1
EF700000  512K read/exec          /usr/lib/libc.so.1
EF78E000   32K read/write/exec    /usr/lib/libc.so.1
EF796000    8K read/write/exec
EF7B0000    8K read/exec/shared   /usr/lib/libdl.so.1
EF7C0000    8K read/write/exec
EF7D0000  104K read/exec          /usr/lib/ld.so.1
EF7F8000   16K read/write/exec    /usr/lib/ld.so.1
EFFFC000   16K read/write/exec
EFFFC000   16K     [ stack ]


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now