pstat


Description:

pstat is a group of process performance monitoring tools that build upon the capabilities of yapfr. The tools are:

The man page for these tools (converted to PDF) can be found here.


The Distribution:

The latest version of pstat is still develpment code.

Development: pstat-0_24_0.tar.gz

Some notes on this code:

This code is released under the GPL.


Application Notes:


Screen shots (dumps):

PID: 30177    PPID: 30107    Children: 0     State: R (running)
Nice: 0    Priority: 15    High [...............P....N...................] Low
Command Line: ./pstat
CWD: /proj/pstat                     Root: / 
Executable: /proj/pstat/pstat                       
Size: 2856 K Resident Set Size:  916 K Shared Libraries: 1712 K
Files Total: 4     Regular: 0      Pipes: 0    Block Devices: 4    
Directories: 1    Symlinks: 3    Sockets: 1     Char Devices: 3    
Major Faults: 0     Total: 229        Minor Faults: 40    Total: 1105       
Reaped Children Maj Flts: 0           Reaped Children Min Flts: 0
User CPU: 1     Total: 25             System CPU: 0     Total: 2          
Reaped Children User CPU: 0           Reaped Children System CPU: 0
%CPU  3.2%    [U                                                           ]
%Mem  0.2%    [======================================================      ]
UID   : root         EUID: root          SUID: root         FSUID: root     
GID   : root         EGID: root          SGID: root         FSGID: root     
pstat version: 0.14.1   Current Time: Sun Dec 14 14:51:40 2003
This is pstat running against itself.

[root@london pstat]# ./listfiles sendmail
crw-rw-rw- root     root     0 -> /dev/null
crw-rw-rw- root     root     1 -> /dev/null
crw-rw-rw- root     root     2 -> /dev/null
drwxrwxrwx root     root     3 -> socket:[2202]
drwxrwxrwx root     root     4 -> socket:[2203]
[root@london pstat]# ./procsock sendmail
2202:       
2203:       TCP:  127.0.0.1:25   -- 0.0.0.0:0    LISTENING   
[root@london pstat]# ./listmem sendmail
[  303 P][1212 K] 00e80000-00faf000 r-xp 00000000 03:03 324546     /lib/tls/libc-2.3.2.so
[    4 P][  16 K] 00faf000-00fb3000 rw-p 0012e000 03:03 324546     /lib/tls/libc-2.3.2.so
[    2 P][8192 B] 00fb3000-00fb5000 rw-p 00000000 00:00 0 
[  159 P][ 636 K] 08048000-080e7000 r-xp 00000000 03:03 717166     /usr/sbin/sendmail.sendmail
[    3 P][  12 K] 080e7000-080ea000 rw-p 0009f000 03:03 717166     /usr/sbin/sendmail.sendmail
[  100 P][ 400 K] 080ea000-0814e000 rwxp 00000000 00:00 0 
[   21 P][  84 K] 40000000-40015000 r-xp 00000000 03:03 324492     /lib/ld-2.3.2.so
[    1 P][4096 B] 40015000-40016000 rw-p 00015000 03:03 324492     /lib/ld-2.3.2.so
[    3 P][  12 K] 40016000-40019000 r-xp 00000000 03:03 748697     /usr/lib/sasl2/libanonymous.so.2.0.15
[    1 P][4096 B] 40019000-4001a000 rw-p 00002000 03:03 748697     /usr/lib/sasl2/libanonymous.so.2.0.15
[    4 P][  16 K] 4001a000-4001e000 r-xp 00000000 03:03 748701     /usr/lib/sasl2/libsasldb.so.2.0.15
[    1 P][4096 B] 4001e000-4001f000 rw-p 00003000 03:03 748701     /usr/lib/sasl2/libsasldb.so.2.0.15
[    4 P][  16 K] 4001f000-40023000 r-xp 00000000 03:03 748743     /usr/lib/sasl2/libcrammd5.so.2.0.15
[    1 P][4096 B] 40023000-40024000 rw-p 00003000 03:03 748743     /usr/lib/sasl2/libcrammd5.so.2.0.15
[    1 P][4096 B] 40025000-40026000 rw-p 00000000 00:00 0 
[  192 P][ 768 K] 40026000-400e6000 r-xp 00000000 03:03 324576     /lib/libdb-4.1.so
[    2 P][8192 B] 400e6000-400e8000 rw-p 000bf000 03:03 324576     /lib/libdb-4.1.so
[   15 P][  60 K] 400e8000-400f7000 r-xp 00000000 03:03 324537     /lib/libresolv-2.3.2.so
[    1 P][4096 B] 400f7000-400f8000 rw-p 0000f000 03:03 324537     /lib/libresolv-2.3.2.so
[    2 P][8192 B] 400f8000-400fa000 rw-p 00000000 00:00 0 
[    5 P][  20 K] 400fa000-400ff000 r-xp 00000000 03:03 324503     /lib/libcrypt-2.3.2.so
[    1 P][4096 B] 400ff000-40100000 rw-p 00004000 03:03 324503     /lib/libcrypt-2.3.2.so
[   39 P][ 156 K] 40100000-40127000 rw-p 00000000 00:00 0 
[   18 P][  72 K] 40127000-40139000 r-xp 00000000 03:03 324509     /lib/libnsl-2.3.2.so
[    1 P][4096 B] 40139000-4013a000 rw-p 00011000 03:03 324509     /lib/libnsl-2.3.2.so
[    2 P][8192 B] 4013a000-4013c000 rw-p 00000000 00:00 0 
[    7 P][  28 K] 4013c000-40143000 r-xp 00000000 03:03 716844     /usr/lib/libwrap.so.0.7.6
[    1 P][4096 B] 40143000-40144000 rw-p 00006000 03:03 716844     /usr/lib/libwrap.so.0.7.6
[    1 P][4096 B] 40144000-40145000 rw-p 00000000 00:00 0 
[   49 P][ 196 K] 40145000-40176000 r-xp 00000000 03:03 716720     /usr/lib/libldap.so.2.0.122
[    1 P][4096 B] 40176000-40177000 rw-p 00030000 03:03 716720     /usr/lib/libldap.so.2.0.122
[    1 P][4096 B] 40177000-40178000 rw-p 00000000 00:00 0 
[   11 P][  44 K] 40178000-40183000 r-xp 00000000 03:03 716718     /usr/lib/liblber.so.2.0.122
[    1 P][4096 B] 40183000-40184000 rw-p 0000b000 03:03 716718     /usr/lib/liblber.so.2.0.122
[   18 P][  72 K] 40184000-40196000 r-xp 00000000 03:03 716710     /usr/lib/libsasl2.so.2.0.15
[    1 P][4096 B] 40196000-40197000 rw-p 00012000 03:03 716710     /usr/lib/libsasl2.so.2.0.15
[   50 P][ 200 K] 40197000-401c9000 r-xp 00000000 03:03 324585     /lib/libssl.so.0.9.7a
[    3 P][  12 K] 401c9000-401cc000 rw-p 00032000 03:03 324585     /lib/libssl.so.0.9.7a
[  220 P][ 880 K] 401cc000-402a8000 r-xp 00000000 03:03 324584     /lib/libcrypto.so.0.9.7a
[   18 P][  72 K] 402a8000-402ba000 rw-p 000db000 03:03 324584     /lib/libcrypto.so.0.9.7a
[    3 P][  12 K] 402ba000-402bd000 rw-p 00000000 00:00 0 
[    3 P][  12 K] 402bd000-402c0000 r-xp 00000000 03:03 716779     /usr/lib/libhesiod.so.0
[    1 P][4096 B] 402c0000-402c1000 rw-p 00003000 03:03 716779     /usr/lib/libhesiod.so.0
[    1 P][4096 B] 402c1000-402c2000 rw-p 00000000 00:00 0 
[   14 P][  56 K] 402c2000-402d0000 r-xp 00000000 03:03 324550     /lib/tls/libpthread-0.48.so
[    1 P][4096 B] 402d0000-402d1000 rw-p 0000d000 03:03 324550     /lib/tls/libpthread-0.48.so
[    2 P][8192 B] 402d1000-402d3000 rw-p 00000000 00:00 0 
[    3 P][  12 K] 402d3000-402d6000 r-xp 00000000 03:03 324505     /lib/libdl-2.3.2.so
[    1 P][4096 B] 402d6000-402d7000 rw-p 00002000 03:03 324505     /lib/libdl-2.3.2.so
[   18 P][  72 K] 402d7000-402e9000 r-xp 00000000 03:03 746502     /usr/kerberos/lib/libgssapi_krb5.so.2.2
[    1 P][4096 B] 402e9000-402ea000 rw-p 00011000 03:03 746502     /usr/kerberos/lib/libgssapi_krb5.so.2.2
[   92 P][ 368 K] 402ea000-40346000 r-xp 00000000 03:03 746516     /usr/kerberos/lib/libkrb5.so.3.1
[    2 P][8192 B] 40346000-40348000 rw-p 0005c000 03:03 746516     /usr/kerberos/lib/libkrb5.so.3.1
[   15 P][  60 K] 40348000-40357000 r-xp 00000000 03:03 746506     /usr/kerberos/lib/libk5crypto.so.3.0
[    1 P][4096 B] 40357000-40358000 rw-p 0000f000 03:03 746506     /usr/kerberos/lib/libk5crypto.so.3.0
[    1 P][4096 B] 40358000-40359000 rw-p 00000000 00:00 0 
[    1 P][4096 B] 40359000-4035a000 r-xp 00000000 03:03 746496     /usr/kerberos/lib/libcom_err.so.3.0
[    1 P][4096 B] 4035a000-4035b000 rw-p 00001000 03:03 746496     /usr/kerberos/lib/libcom_err.so.3.0
[   12 P][  48 K] 4035b000-40367000 r-xp 00000000 03:03 716533     /usr/lib/libz.so.1.1.4
[    2 P][8192 B] 40367000-40369000 rw-p 0000b000 03:03 716533     /usr/lib/libz.so.1.1.4
[    1 P][4096 B] 40369000-4036a000 rw-p 00000000 00:00 0 
[   10 P][  40 K] 4036a000-40374000 r-xp 00000000 03:03 324525     /lib/libnss_files-2.3.2.so
[    1 P][4096 B] 40374000-40375000 rw-p 0000a000 03:03 324525     /lib/libnss_files-2.3.2.so
[   11 P][  44 K] 40375000-40380000 r-xp 00000000 03:03 748747     /usr/lib/sasl2/libdigestmd5.so.2.0.15
[    1 P][4096 B] 40380000-40381000 rw-p 0000a000 03:03 748747     /usr/lib/sasl2/libdigestmd5.so.2.0.15
[    3 P][  12 K] 40381000-40384000 r-xp 00000000 03:03 749007     /usr/lib/sasl2/liblogin.so.2.0.15
[    1 P][4096 B] 40384000-40385000 rw-p 00002000 03:03 749007     /usr/lib/sasl2/liblogin.so.2.0.15
[    3 P][  12 K] 40385000-40388000 r-xp 00000000 03:03 749011     /usr/lib/sasl2/libplain.so.2.0.15
[    1 P][4096 B] 40388000-40389000 rw-p 00002000 03:03 749011     /usr/lib/sasl2/libplain.so.2.0.15
[   50 P][ 200 K] bffce000-c0000000 rwxp fffcf000 00:00 0 
[root@london pstat]# 
 
This is some of the other utilities running against sendmail.