Solaris 10 - Memory / Swap

Tags
solaris

 
Thread Tools Search this Thread
# 1  
Old 10-16-2009
Solaris 10 - Memory / Swap

Hi all

Got myself in a pickle here, chasing my own tail and am confused. Im trying to work out memory / swap on my solaris 10 server, that Im using zones on.

Server A has 32Gb of raw memory, ZFS across the root /mirror drives.

Code:
# prtdiag -v | grep mem = Memory size: 32768 Megabytes
# sar -r 11 shows
09:44:23 freemem freeswap
09:44:24 435917 12672432

Freemem ( pages ) x 4 / 1024 /1024 = 1Gb. However, I was expecting to see 32Gb ??? The server isnt being used, i.e. nothing running at the moment e.g.

Code:
# vmstat 1 10
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr m2 m2 m2 rm in sy cs us sy id
0 0 0 7892184 4995808 15 57 10 10 10 0 0 3 3 3 -0 915 194341 894 1 0 99
0 0 0 6336576 3495184 13 56 0 0 0 0 0 0 0 0 0 895 1941052 672 5 1 93
1 0 0 6336344 3495040 2 10 0 0 0 0 0 0 0 0 0 918 1939210 675 5 2 94
0 0 0 6336344 3495040 2 2 0 0 0 0 0 0 0 0 0 959 1938490 790 5 1 94
 
# swap -s
total: 828456k bytes allocated + 162592k reserved = 991048k used, 6336824k available



If I go onto another server, Server B, a 6800 chassis runing solaris 10, with 16GB of Physical memory, no ZFS.

Code:
# sar -r 1 1
09:52:04 freemem freeswap
09:52:05 1850157 42102320

1850157 *4/1024/1024 = 7Gb
 
# swap -s
total: 595800k bytes allocated + 319040k reserved = 914840k used, 21040344k available


Im totally confused. Can someone give me a quick guide /tip to working out memory / swap and how to calculate what is being used / free ?

SBK
# 2  
Old 10-16-2009
Run these commands to figure out where your RAM is used:
Code:
prstat -s rss -Z -c 1 1
echo '::memstat' | mdb -k


|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Swap memory usage keeps increasing. tom8254 Red Hat 3 05-24-2017 02:45 PM
Swap completely used with memory free thefroggy Solaris 10 02-19-2016 09:23 AM
SWAP memory leo_ultra_leo Red Hat 7 01-01-2015 12:53 PM
Memory & Swap utilization Rockyc3400 UNIX for Dummies Questions & Answers 1 07-31-2014 03:06 PM
Swap memory issue ratheeshjulk Linux 6 03-15-2014 04:56 AM
Swap memory leo_ultra_leo Red Hat 2 10-14-2013 11:54 PM
How much Swap memory do i have ? mohtashims HP-UX 5 06-27-2013 12:33 PM
Is swap and Shared memory the same ? kraljic UNIX for Dummies Questions & Answers 3 05-31-2013 06:56 AM
Threshold for swap memory karlochacon UNIX for Dummies Questions & Answers 3 03-20-2012 11:48 AM
Query regarding swap memory mohtashims UNIX for Advanced & Expert Users 6 12-23-2011 07:02 PM
swap memory and original size of HD lhareigh890 UNIX for Dummies Questions & Answers 2 10-12-2010 06:09 PM
swap memory kaushik02018 UNIX for Dummies Questions & Answers 2 01-02-2010 11:17 PM
How do I find out how much swap and memory is free? expos UNIX for Dummies Questions & Answers 2 12-30-2003 10:58 AM
swap memory sivaramat Solaris 6 12-29-2003 10:59 AM
Total Memory/Swap Memory ghe1 Filesystems, Disks and Memory 4 04-01-2002 10:33 AM