|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| 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. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
getting available physical RAM
What command should I be using on Solaris 9 to get an accurate representation of the available physical RAM?
|
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
you could have a look in your prtdiag(M) output or prtconf(M) or swap(M)
gP |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
What I meant to say is if i have for example 6GB of physical RAM and 3 GB's are being used, how can I find that?
top shows: Quote:
Quote:
|
|
#4
|
||||
|
||||
|
Hmm... what about.... Code:
$ vmstat 1 2 | sed -n '$ p' | awk '{print $5}'Cheers ZB |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
Thanks zazzybob. That's what I was looking for. This is the code I was using it for, since I wanted the percentage of physical RAM used. Code:
TOTAL_RAM=`prtdiag | grep '^Memory size' | awk -F: '{ print $2 }' | awk '{ print $1 }'`
(( TOTAL_RAM = TOTAL_RAM * 1000 ))
AVAIL_RAM=`vmstat 1 2 | sed -n '$ p' | awk '{print $5}'`
RAM_PERC=`echo "scale = 2; $AVAIL_RAM/$TOTAL_RAM" | bc | sed 's/\.//'`
(( RAM_PERC = 100 - RAM_PERC ))Last edited by dangral; 02-28-2006 at 01:13 PM.. Reason: better explanation |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Physical RAM | Duffs22 | Red Hat | 2 | 04-11-2012 09:22 AM |
| svc:/network/physical:default: Method "/lib/svc/method/net-physical" failed with exit status 96. [ n | andersonedouard | Solaris | 2 | 06-14-2011 03:43 AM |
| Maximum Limit of HMC to handle Physical Power Virtualization Physical Machine | jenish_shah | AIX | 1 | 01-09-2010 03:55 PM |
| Physical volume- no free physical partitions | markper | UNIX for Dummies Questions & Answers | 9 | 01-09-2007 01:00 PM |
| physical volume and physical disk. | VeroL | UNIX for Dummies Questions & Answers | 2 | 01-22-2004 09:32 AM |
|
|