>
> *[auto...@autosys02 iTechnology]$ ps aux | grep igateway
> root       867  3.6  1.7 1122984 17980 ?       Ssl  Apr22 344:41
> ./igateway -b
> root       888  0.0  0.1   4624  1196 pts/2    S    Apr22   3:18 /bin/sh
> ./WDigateway.sh
> autosys   6494  0.0  0.0   4000   728 pts/3    R+   11:40   0:00 grep
> igateway
>
> I understand that ps shows the memory of all shared libraries, but it
> seems odd that the process itself wouldn't have any output with pmap. Is
> there something I'm missing about how pmap works?
> *

*
*
*Not sure what options, if any, you're passing. But when I pass "-x", to
show details, ironically the "Kbytes" column is all 0s....*
*
*
*
:~# pmap
Usage: pmap [-x | -d] [-q] [-A low,high] pid...
-x  show details
-d  show offset and device number
-q  quiet; less header/footer info
-V  show the version number
-A  limit results to the given range
*
*
*
*~# pmap  1497*
1497:   /usr/sbin/acpid
08048000     32K r-x--  /usr/sbin/acpid
08050000      4K rw---  /usr/sbin/acpid
08051000      4K rw---    [ anon ]
0814b000    132K rw---    [ anon ]
b775c000      4K rw---    [ anon ]
b775d000   1284K r-x--  /lib/i686/cmov/libc-2.10.2.so
b789e000      8K r----  /lib/i686/cmov/libc-2.10.2.so
b78a0000      4K rw---  /lib/i686/cmov/libc-2.10.2.so
b78a1000     12K rw---    [ anon ]
b78b1000      8K rw---    [ anon ]
b78b3000      4K r-x--    [ anon ]
b78b4000    112K r-x--  /lib/ld-2.10.2.so
b78d0000      4K r----  /lib/ld-2.10.2.so
b78d1000      4K rw---  /lib/ld-2.10.2.so
bf88e000     84K rw---    [ stack ]
 total     1700K

~# *pmap -x 1497*
1497:   /usr/sbin/acpid
Address   Kbytes     RSS   Dirty Mode   Mapping
08048000       0      16       0 r-x--  acpid
08050000       0       4       4 rw---  acpid
08051000       0       4       4 rw---    [ anon ]
0814b000       0      32      32 rw---    [ anon ]
b775c000       0       4       4 rw---    [ anon ]
b775d000       0     368       0 r-x--  libc-2.10.2.so
b789e000       0       8       8 r----  libc-2.10.2.so
b78a0000       0       4       4 rw---  libc-2.10.2.so
b78a1000       0      12      12 rw---    [ anon ]
b78b1000       0       8       8 rw---    [ anon ]
b78b3000       0       4       0 r-x--    [ anon ]
b78b4000       0      32       0 r-x--  ld-2.10.2.so
b78d0000       0       4       4 r----  ld-2.10.2.so
b78d1000       0       4       4 rw---  ld-2.10.2.so
bf88e000       0      24      24 rw---    [ stack ]
-------- ------- ------- ------- -------
total kB    1700       -       -       -

~#* pmap -d 1497*
1497:   /usr/sbin/acpid
Address   Kbytes Mode  Offset           Device    Mapping
08048000      32 r-x-- 0000000000000000 008:00001 acpid
08050000       4 rw--- 0000000000008000 008:00001 acpid
08051000       4 rw--- 0000000000000000 000:00000   [ anon ]
0814b000     132 rw--- 0000000000000000 000:00000   [ anon ]
b775c000       4 rw--- 0000000000000000 000:00000   [ anon ]
b775d000    1284 r-x-- 0000000000000000 008:00001 libc-2.10.2.so
b789e000       8 r---- 0000000000141000 008:00001 libc-2.10.2.so
b78a0000       4 rw--- 0000000000143000 008:00001 libc-2.10.2.so
b78a1000      12 rw--- 0000000000000000 000:00000   [ anon ]
b78b1000       8 rw--- 0000000000000000 000:00000   [ anon ]
b78b3000       4 r-x-- 0000000000000000 000:00000   [ anon ]
b78b4000     112 r-x-- 0000000000000000 008:00001 ld-2.10.2.so
b78d0000       4 r---- 000000000001b000 008:00001 ld-2.10.2.so
b78d1000       4 rw--- 000000000001c000 008:00001 ld-2.10.2.so
bf88e000      84 rw--- 0000000000000000 000:00000   [ stack ]
mapped: 1700K    writeable/private: 256K    shared: 0K
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to