understanding the prstat log


 
Thread Tools Search this Thread
Operating Systems Solaris understanding the prstat log
# 1  
Old 01-26-2009
understanding the prstat log

Can some one please explain what does the memory part mean in the prstat logs?
NPROC USERNAME SIZE RSS MEMORY TIME CPU
61 oracle 36G 33G 71% 109:44:26 12%
89 cemsbin 12G 9523M 20% 195:02:41 11%
2 adm 273M 199M 0.4% 47:05:42 2.3%
89 root 2499M 787M 1.6% 14:31:42 2.2%
3 nortel 2776K 2272K 0.0% 0:00:01 1.1%


What does the %Memory denote?
How does the prstat calculate %memory?

Thanks in advance.
# 2  
Old 01-26-2009
check the manual page: -
#man prstat
# 3  
Old 01-27-2009
thanks for the response but there is no explanation about the memory uasage.
How is it calculated?
# 4  
Old 01-27-2009
Remember, "size" is the virtual address space size,
the "rss" column is physical memory, which is
typically more useful for memory sizing.

You can also use "memstat", which is an mdb(1) dcmd, as in;

#echo "::memstat" | mdb -k

This may take some time on a large memory configuration.

Use "prstat -s rss" to sort processes by memory usage and determine
how much physical memory is being used (RSS). You can not add these up for a total of how much memory is being used by all processes, because shared segments are not accounted for. Run "pmap -x [PID]" per-process for a detailed view.
# 5  
Old 01-27-2009
Hey thanks for the response.

In one instance the prstat log shows:-
NPROC USERNAME SWAP RSS MEMORY TIME CPU
15 cemsbin 280M 212M 2.6% 0:05:28 1.8%
6 cemsadm 5096K 8592K 0.1% 0:02:51 0.8%
2 adm 228M 371M 4.5% 4:34:12 0.6%
54 root 301M 277M 3.4% 3:49:36 0.1%
16 bsmbin 63M 116M 1.4% 0:12:16 0.0%
4 oracle 7592K 32M 0.4% 0:00:02 0.0%
Total: 104 processes, 547 lwps, load averages: 1.87, 2.06, 2.43

And from the prtconf command:-
-bash-3.2# prtconf | more
System Configuration: Sun Microsystems sun4u
Memory size: 8192 Megabytes
System Peripherals (Software Nodes):
SUNW,Sun-Fire-V240
scsi_vhci, instance #0
packages (driver not attached)
SUNW,builtin-drivers (driver not attached)
deblocker (driver not attached)
disk-label (driver not attached)
terminal-emulator (driver not attached)
dropins (driver not attached)
kbd-translator (driver not attached)
obp-tftp (driver not attached)
SUNW,i2c-ram-device (driver not attached)
SUNW,fru-device (driver not attached)

If I do (RSS/Memory size) i.e.(32/8192 * 100) i get .39% which is in sync with what is being shown in the prstat log.

But in the different prstat log:-
NPROC USERNAME SIZE RSS MEMORY TIME CPU
55 cemsbin 20G 19G 23% 0:15:43 5.1%
3 sys 4424K 3640K 0.0% 0:00:00 1.0%
2 adm 412M 192M 0.2% 0:01:39 0.8%
73 oracle 61G 59G 73% 0:00:05 0.6%
52 root 486M 285M 0.3% 0:01:02 0.4%
Total: 226 processes, 1886 lwps, load averages: 0.97, 0.94, 0.88

The logic above mentioned does not hold true.
I want to know how is this %memory calculated.

Please respond.
# 6  
Old 01-28-2009
The 2nd prstat log is from a different system is it?
# 7  
Old 01-28-2009
Yes it is from a different system .
But I want a link between the %memory usage and rss.

Does it follow any algorithm or rule to clculate the %memory usage or it is random...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Understanding prstat

Hello We have a SPARC box running Solaris 10. We have 32 GB of physical memory, 32 GB of swap. Now i want to monitor memory usage for performance tuning. The box is running Sybase database. When I type prstat i get the following PID USERNAME SIZE RSS STATE PRI NICE TIME CPU... (4 Replies)
Discussion started by: abohmeed
4 Replies

2. Solaris

Understanding /var/log/syslog.* logfiles solaris 8

hi guys, This is a log from a Solaris 8 server /var/log/syslog.* file. Can any body please confirm whether the meaning of the last two words (Mail accepted) means the mail has been delivered? Because the email id the mail was sent to is invalid. :confused: The log is: Feb 18 08:55:45... (2 Replies)
Discussion started by: raj_55555
2 Replies

3. UNIX for Dummies Questions & Answers

help to parse prstat -t

prstat -t -n 10 1 5 NPROC USERNAME SWAP RSS MEMORY TIME CPU 143 sbswrk1 2082M 2139M 3.3% 801:46:08 1.0% 26 sbswrk3 4573M 4675M 7.1% 651:28:35 0.8% 35 sbswrk2 3922M 4004M 6.1% 1000:53:1 0.1% 4 svcbmcp 47M 52M 0.1% 256:25:24 0.1% 78 root 352M ... (1 Reply)
Discussion started by: madfox
1 Replies

4. Solaris

prstat

hi all, was trying to figure out how busy my app was by looking at the performance of the app server. did a 'prstat -s rss' command to find the app servers using most memory. Found a command 'prstat -m' which is meant to show more details on each pid but the output of this command... (1 Reply)
Discussion started by: cesarNZ
1 Replies

5. Shell Programming and Scripting

prstat

hi all, am writing a ksh script on solaris 9 to get the number of threads taken by a process. am using the prstat -p command to do this. output i get is : :"/export/home/user" > prstat -p 25528 | cut -f2 -d/ NLWP 203 Total: 1 processes, 203 lwps, load averages: 2.58, 3.24, 3.62... (2 Replies)
Discussion started by: cesarNZ
2 Replies

6. Solaris

prstat O/P

Good Evening everyone, I am confused about prstat O/P as it shows memory values which are different from actual value.Below is the O/P of prstat command and swap commands. NPROC USERNAME SIZE RSS MEMORY TIME CPU 48 root 2113M 1590M 1.2% 45:09.39 32% 31 daemon ... (7 Replies)
Discussion started by: vvpotugunta
7 Replies

7. Solaris

prstat log

Hi All, But the prstat logs of my system shows:- NPROC USERNAME SWAP RSS MEMORY TIME CPU 77 oracle 17G 10G 65% 4:24:47 0.8% Total: 486 processes, 3850 lwps, load averages: 3.77, 4.45, 4.94 What does the MEMORY denotes? Is it the %memory used from RAM? Or is the %memory used by... (10 Replies)
Discussion started by: dipashre
10 Replies

8. Solaris

prstat log

Hi All, Operating System and Version: SunOS,Solaris 10 sparc(64 bit) RDBMS Version: 10.2.0.4.0 But the prstat logs of my system shows:- NPROC USERNAME SWAP RSS MEMORY TIME CPU 83 cemsbin 5204M 3604M 22% 53:46:00 6.7% 2 adm 244M 240M 1.5% 15:13:53 3.5% 77 oracle 17G 10G 65% 4:24:47... (0 Replies)
Discussion started by: dipashre
0 Replies

9. Shell Programming and Scripting

prstat problem

This will be a smaple output for my prstat -t NPROC USERNAME SIZE RSS MEMORY TIME CPU 43 root 249M 62M 1.5% 33:50:01 0.1% 12 oadmin 1396M 862M 22% 0:06:49 0.1% 2 acne 3960K 3176K 0.1% 0:00:00 0.0% 4 essagent 10M 7456K 0.2% 0:00:00 0.0%... (6 Replies)
Discussion started by: vivsiv
6 Replies

10. UNIX for Dummies Questions & Answers

Help with prstat

Hello, The last line of prstat shows load average. I am unable to figure out what actually it is. I have read the man pages and also googled, all for no use. Can somebody help me, as to what should be the avg. load of the system for best performance and how is this load of prstat calculated. (6 Replies)
Discussion started by: vibhor_agarwali
6 Replies
Login or Register to Ask a Question