prstat result different from top utility

Hi all,

I'm new to Solaris.I am using oracle on solaris5.8. The prstat is showing that oracle is using 99%(32GB) of physical memory,where oracle is supposed to use only 3GB of memory as per our configuration. The top command shows the exact figure i.e. as per expectation. I'm not sure that the utilities of the same operating system showing different results. Can anybody give me suggestion abt the behaviour:

PID USERNAME SIZERSS STATE PRI NICETIME CPU PROCESS/NLWP

10980 oracle8268M26M sleep4800:00.25 0.1% oracle/1

11000 oracle1584K 1368K cpu115800:00.00 0.0% prstat/1

265 root1880K 1184K sleep5000:00.00 0.0% lockd/1

343 root1672K 1048K sleep3100:00.00 0.0% smcboot/1

337 root1008K 672K sleep5800:00.07 0.0% utmpd/1

223 root2232K 1248K sleep5800:00.00 0.0% rpcbind/1

303 root2664K 1784K sleep5300:00.00 0.0% nscd/9

345 root1672K 640K sleep4100:00.00 0.0% smcboot/1

325 root1424K 936K sleep4500:00.00 0.0% powerd/3

278 root4272K 2096K sleep5500:00.00 0.0% syslogd/18

261 daemon2496K 1616K sleep5000:00.00 0.0% statd/4

427 root3136K 2704K sleep5800:00.00 0.0% mibiisa/11

331 root3160K 1528K sleep5800:00.00 0.0% sendmail/1

10633 root1784K 1336K sleep5400:00.00 0.0% in.telnetd/1

308 root3064K 968K sleep5800:00.00 0.0% lpsched/1

266 root3032K 1864K sleep5800:00.00 0.0% automountd/5

73 root2872K 2448K sleep1100:00.00 0.0% picld/5

64 root1280K 800K sleep2200:00.00 0.0% syseventconfd/5

62 root1512K 1192K sleep5300:00.00 0.0% syseventd/12

280 root1912K 1160K sleep5800:00.00 0.0% cron/1

441 root2448K 1720K sleep5800:00.00 0.0% bash/1

NPROC USERNAME SIZERSS MEMORYTIME CPU

24 oracle121G 271M0.6%0:01.03 0.1%

6 wipadm10M 7480K0.0%0:00.00 0.0%

27 ofasora43G42G99%0:04.43 0.0%/* This process */

1 daemon2496K 1616K0.0%0:00.00 0.0%

60 root178M 101M0.2%0:01.03 0.0%

Thanks in advance

[1998 byte] By [santosh024a] at [2007-11-27 4:31:09]
# 1

Top is showing the memory usage of one process. It doesn't have any summation feature.

prstat -a is showing the sum of the memory usage of all processes of the same user.

So you are looking at two completely different things.If you just note the process size in the default output of 'prstat' (no flags), it should be identical to that shown by 'top'.

Finally, the summation of all the memory usage is incorrect if shared memory is used (usually true for oracle), so that shared pages are counted multiple times. This leads to an overcount.

--

Darren

Darren_Dunhama at 2007-7-12 9:40:34 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...