For ps, I have:
guarocuya@/opt/netcool/omnibus/var/nco_g_oracle> ps -lfea
F S      UID   PID  PPID  C PRI NI     ADDR     SZ    WCHAN    STIME TTY
TIME CMD
8 S     root 17134 17110  0  40 20        ?  24707        ? 12:31:11 ?
5:13 /opt/netcool/omnibus/bin/solaris2/n

The ps(1) manpage says:

     SZ   (l)
           The total size  of  the  process  in  virtual  memory,
           including  all mapped files and devices, in pages. See
           pagesize(1).

Try running ps with the -y flag and see what SZ reports, or multiply 24707 by the output of pagesize(1) (it's probably 8k pages, and 8k*24707 is 193M).


For top:
  PID USERNAME LWP PRI NICE  SIZE   RES STATE    TIME    CPU COMMAND
17134 root      28  59    0  193M  111M sleep    5:14  0.79%
nco_g_oracle.bi

And for lsof:
guarocuya@/opt/netcool/omnibus/var/nco_g_oracle> lsof -V -p 17134
COMMAND     PID USER   FD   TYPE        DEVICE   SIZE/OFF    NODE NAME
nco_g_ora 17134 root  txt   VREG           0,2          0 7892497 /tmp
(swap)
nco_g_ora 17134 root    6r  DOOR         256,0        0t0      60 /var/run
(swap) (door to nscd[478])
nco_g_ora 17134 root   16r  VREG           0,2          0 7892497 /tmp
(swap)

lsof is reporting on the sizes of those open files/dirs/devices, not the process.


Good luck,

-f
http://www.blackant.net/




As You can see, SZ in ps is quite different as any RES or SIZE in top. And
lsof has size 0.

Vmstat gives info but not for a particular process/pid. This is a solaris 9.

TIA,

Leo (completely lost...)

_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users

_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users

Reply via email to