The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cpu, memory and virtual memory usage ocelot UNIX for Dummies Questions & Answers 4 12-01-2008 07:57 AM
How can I get memory usage or anything that show memory used from sar file? panithat HP-UX 1 03-31-2008 01:26 PM
CPU usage and memory usage mansoorulhaq High Level Programming 1 08-09-2007 05:55 PM
Monitor CPU usage and Memory Usage Gajanad Bihani High Level Programming 2 03-09-2005 07:35 AM
Memory usage in the box ST2000 Filesystems, Disks and Memory 2 01-03-2003 02:06 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-15-2006
BG_JrAdmin BG_JrAdmin is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 141
memory usage

How do you tell how much system memory is free on a solaris 9 box?

I can run prstat but it is like all the processes and stuff seperate,
is there somewhere i can get a reading on the box as a whole?
  #2 (permalink)  
Old 09-15-2006
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,131
man vmstat
  #3 (permalink)  
Old 09-15-2006
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,245
By the way, in most cases free memory means absolutely nothing on a Solaris box.
  #4 (permalink)  
Old 09-16-2006
izy100 izy100 is offline
Registered User
  
 

Join Date: Nov 2002
Location: Singapore
Posts: 128
use vmstat and look at the column under sr.
If it is ZERO, you have enough memory on the server
  #5 (permalink)  
Old 09-21-2006
saainaath saainaath is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 9
Hi pal.. go out for 'vmstat'

# vmstat 1

this will give u the status of ur memory for 1 sec in that you can see the swap space present. Bye..
  #6 (permalink)  
Old 10-18-2006
goasutlor goasutlor is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 16
may be you can use
sar -r 2 100 ( 2 is inteval time and 100 is polling number)

you must see like this

10:10:40 freemem freeswap
10:10:42 54903 4945408
10:10:44 54903 4945408


the result show you in pages , that mean now this system has freemem 54903 pages

if you want to calculate it to kbyte you use command

pagesize

that will show you like this

root@sol9_e250 # pagesize
8192

that mean 1 pagesize = 8k , if your system has 54903 pages , your system has freemem = (54903 *8)/1024 ~429 MB

+++++++++++++++++++++++
Second solution ( easy)

you use
vmstat 3 you shuold see like this

kthr memory
r b w swap free
0 0 0 2476904 447520
0 0 0 2473032 439552
0 0 0 2473032 439552

The memory tab , it shows

memory/swap: Free, unreserved swap space (Kb).
memory/free: Free memory (Kb). (Note that this will grow until it reaches lotsfree, at which point the page scanner is started. See "Paging" for more details.) ( lotsfree is one parameter in kernel that you can set it by mdb -kw )



PS: Sorry about my weak english
Closed Thread

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 On




All times are GMT -4. The time now is 06:17 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-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0