Go Back   The UNIX and Linux Forums > Operating Systems > Solaris
.
google site



Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-16-2009
Registered User
 

Join Date: Mar 2009
Posts: 114
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
Sponsored Links
  #2 (permalink)  
Old 10-16-2009
ɹǝsn sıɹɐlosuǝdo
 

Join Date: Dec 2007
Location: Paris
Posts: 1,822
Run these commands to figure out where your RAM is used:

Code:
prstat -s rss -Z -c 1 1
echo '::memstat' | mdb -k

Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
swap space (lvol2) is not using when physical memory is 98% used rajeshtt32 HP-UX 1 01-06-2008 11:05 AM
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 11:33 AM
Virtual Memory / Swap Area DLongan UNIX for Dummies Questions & Answers 1 07-05-2001 06:35 PM



All times are GMT -4. The time now is 10:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0