Anyone help to interpretate os statistics


 
Thread Tools Search this Thread
Operating Systems Solaris Anyone help to interpretate os statistics
# 1  
Old 06-21-2011
Anyone help to interpretate os statistics

Hi,

Can anyone help me to explain following statistics of my unix box.

Code:
/usr/sbin/swap -l 
swapfile dev swaplo blocks free  
/dev/dsk/c4 118,771 16 33560432 33319776 
/dev/dsk/c4 118,763 16 33560432  33327184

Code:
/usr/sbin/swap -s 
total: 13429368k bytes allocated +  9830880k reserved = 23260248k used, 19836488k available

Code:
vmstat 2 10  
kthr memory page disk faults cpu 
r b w swap free re mf pi po fr de sr m1  m1 m1 m2 in sy cs us sy id 
2 0 0 19487048 7841432 6125 3258 77664 173 172 0  1 4 0 1 4 13260 18444 9986 37 12 51 
0 0 0 19833456 8558136 1283 6426 18014  47 47 0 0 13 0 0 13 2883 16154 3389 6 9 85 
0 0 0 19843856 8563872 1287 6675  16380 207 207 0 0 17 2 0 17 3154 16243 2914 7 8 85 
0 0 0 19845080 8564240  345 18 15058 0 0 0 0 0 0 0 0 3007 1056 1787 3 1 95 
0 0 0 19828744 8544472  1685 7569 8983 40 36 0 0 15 0 0 15 4843 19042 4446 10 11 78 
0 0 0 19845848  8553488 1241 5343 14277 279 279 0 0 5 0 0 5 4827 11690 3605 6 7 87 
0 0 0  19845848 8530856 352 69 2162 0 0 0 0 0 0 0 0 11214 2556 4523 5 3 92 
0 0 0  19845848 8498616 46 11 195 0 0 0 0 0 0 0 0 11324 2326 4255 5 3 92 
0 0 0  19831616 8460432 2073 12800 207 759 755 0 0 25 0 0 25 12545 28490 7666 12 18 70  
0 0 0 19845720 8442104 44 217 164 359 359 0 0 1 0 0 0 11048 2281 4180 4 3 92

Code:
ipcs -pmb 
IPC status from <running system> as of Tue Jun 21  05:48:16 EDT 2011 
T ID KEY MODE OWNER GROUP SEGSZ CPID LPID 
Shared  Memory: 
m 17 0xcf8f2fcc --rw-r----- oracle dba 8192 1019 12404 
m 16 0  --rw-r----- oracle dba 150994944 1019 12404 
m 15 0 --rw-r----- oracle dba  150994944 1019 12404 
m 14 0 --rw-r----- oracle dba 134217728 1019 12404  
m 13 0 --rw-r----- oracle dba 805306368 1019 12404 
m 11 0xf2bc407c  --rw-r----- oracle dba 16384 913 17935 
m 10 0 --rw-r----- oracle dba  553648128 913 17935 
m 9 0 --rw-r----- oracle dba 603979776 913 17935 
m 8  0 --rw-r----- oracle dba 536870912 913 17935 
m 7 0 --rw-r----- oracle dba  3690987520 913 17935 
m 5 0x12882000 --rw-r----- oracle dba 32768 694 17458  
m 4 0 --rw-r----- oracle dba 1660944384 694 17458 
m 3 0 --rw-r-----  oracle dba 1677721600 694 17458 
m 2 0 --rw-r----- oracle dba 1660944384 694  17458 
m 1 0 --rw-r----- oracle dba 7902068736 694 17458

I am confusing about to say how much real memory consuming and free size of real memory.


Thanks and regards,
gt

Last edited by pludi; 06-21-2011 at 11:51 AM..
# 2  
Old 06-28-2011
Please run the following commands and provide output:

top
prtconf -v|grep -i memory


So to make sure i understand you want to know real free and used memory and total correct?
# 3  
Old 06-28-2011
"top" is not part of the solaris installation... use "prstat" instead...
# 4  
Old 06-28-2011
Thanks DukeNuke2, I am used to having top available to me but forgot it wasnt installed by default. giteshtrivedi you can download top from Sunfreeware - Free and Open Source Software (FOSS) for Sun Microsystem's Solaris if you would like to use it. It comes in handy quite a bit. Once you run these commands and provide the output then I will try to help you understand your memory situation from there.

Thanks
# 5  
Old 06-29-2011
Quote:
Originally Posted by giteshtrivedi
I am confusing about to say how much real memory consuming and free size of real memory.
You have about 8 GB of RAM free, which should be considered quite enough in most cases. All the other memory statistics you posted are referring to virtual memory, not physical one.

I wouldn't recommend using top which depending on the version might report confusing statements on Solaris.

For detailed RAM usage statistics, you can use
Code:
echo ::memstat | mdb -k


Last edited by jlliagre; 06-29-2011 at 04:16 PM.. Reason: Typo: ::memstat, not ::memstats
# 6  
Old 06-29-2011
Hi,

For installing TOP in system, we need approval and it is long process.

/usr/sbin/prtconf -v|grep -i memory
Memory size: 24576 Megabytes

memstats not found and got error
# 7  
Old 06-29-2011
So from the prtconf output you have about 24GB memory total in the machine. What other information were you looking to get from the machine?

The below script will show you from smallest to largest the memory usage of each process:


The following shell script prints the memory usage of each process, sorted by ascending memory usage.

Code:
#!/bin/sh

/usr/bin/printf "%-6s %-9s %s\n" "PID" "Total" "Command"
/usr/bin/printf "%-6s %-9s %s\n" "---" "-----" "-------"

for PID in `/usr/bin/ps -e | /usr/bin/awk '$1 ~ /[0-9]+/ { print $1 }'`
do
   CMD=`/usr/bin/ps -o comm -p $PID | /usr/bin/tail -1`
   # Avoid "pmap: cannot examine 0: system process"-type errors
   # by redirecting STDERR to /dev/null
   TOTAL=`/usr/bin/pmap $PID 2>/dev/null | /usr/bin/tail -1 | \
/usr/bin/awk '{ print $2 }'`
   [ -n "$TOTAL" ] && /usr/bin/printf "%-6s %-9s %s\n" "$PID" "$TOTAL" "$CMD"
done | /usr/bin/sort -n -k2


Last edited by DukeNuke2; 06-29-2011 at 12:32 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Text statistics

Hello every body if I want to get the following statistics from a text file 1- sorted the n frequent words 2- sorted the n frequent characters 3- sorted the n frequent diagrams (tow letter together like th OR he) 4- sorted frequent n trigrams like (the OR all etc. ) 5- any character... (10 Replies)
Discussion started by: khaled79
10 Replies

2. UNIX for Dummies Questions & Answers

Any way to get process statistics?

Hi, Can someone advise what "generic" command can I use to show statistics of a process or a running script/process? For example, I want to know how many hours/minutes it's taken to run or has been running, how much CPU it used and how much memory it used or uses. I want to be able to... (2 Replies)
Discussion started by: newbie_01
2 Replies

3. Shell Programming and Scripting

statistics using awk

Hi, I have 3 columns in a file listed below. X Y X/(X+Y) 1 1 0.5 1 1 0.5 4 1 0.8 1 1 0.5 6 1 0.857142857 1 1 0.5 23 1 0.958333333 Now I want to find confidence interval using the formula for each row. (p-2 sqrt p(1-p)/(x+y), p+2... (7 Replies)
Discussion started by: Diya123
7 Replies

4. AIX

Statistics Aix

Hello If there is a way to get a statistics from Aix box server from a month. cpu use, memory, disc use, etc. Maybe via smitty or I need to do a script. The os is Aix 5.3 Greetings (8 Replies)
Discussion started by: lo-lp-kl
8 Replies

5. HP-UX

packets statistics

Hi there, are there any functions that can get the packets statistics on UNIX ? thanks. (2 Replies)
Discussion started by: Frank2004
2 Replies

6. Solaris

how to get server statistics

Hello What commands can give following type of information about the server: Time: 20080331.12:10:39 Current CPU: 97.0% Current Memory: 3.7% Current Disk Space: 76% The resources on server is currently not available. Current CPU, Memory, or Disk Space is exceeding threshold Waiting for... (2 Replies)
Discussion started by: shalua
2 Replies

7. UNIX for Advanced & Expert Users

Getting Socket statistics

Is there any way to get the file descriptor statistics of a socket file descriptor? I know that the fstat, stat system calls are for this purpose, but I want to know it there any way to get socket connection statistics for a file descriptor(like socket flags, connection type etc). Does /proc... (3 Replies)
Discussion started by: comp_wizard07
3 Replies

8. Programming

Server Statistics ?

I'm trying to write a C program to view server statistics such as: - server general information - CPU usage - memory usage - running processes Cany anybody gives me hints on those system calls ?? ps: I'm using Tru64 unix (6 Replies)
Discussion started by: Agent007
6 Replies
Login or Register to Ask a Question