Solaris sun4v - how do you determine physical RAM?


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris sun4v - how do you determine physical RAM?
# 8  
Old 06-15-2010
I don't have access to Solaris box right now so I don't know if this solution is very reliable:
Code:
mem=`prtdiag | tr -s "\t" " " | awk '/^0x0/{print $2}'`

This will put number of gigabytes of RAM into "mem" variable.
This User Gave Thanks to bartus11 For This Post:
# 9  
Old 06-15-2010
Quote:
Originally Posted by bartus11
I don't have access to Solaris box right now so I don't know if this solution is very reliable:
Code:
mem=`prtdiag | tr -s "\t" " " | awk '/^0x0/{print $2}'`

This will put number of gigabytes of RAM into "mem" variable.
That's nice and clean, but I don't know if this will work on all systems of this type. I'll have to try this on similar boxes in our other data centers.
# 10  
Old 06-15-2010
It won't work if there will be more memory segments in the server. I think something like this could work in that case:
Code:
mem=`prtdiag | tr -s "\t" " " | awk '/^0x[0-9a-f]/{x+=$2}END{print x}'`

Anyway let me know how did it go Smilie
This User Gave Thanks to bartus11 For This Post:
# 11  
Old 06-16-2010
The 'lgrpinfo' utility might do it. I don't recall offhand when that was rolled into Solaris 10 so you may not have it, and it may not work under LDOMs, but it's designed to show physical RAM configuration.
# 12  
Old 06-16-2010
Quote:
I don't recall offhand when that was rolled into Solaris 10 so you may not have it
It's not in the 10/09 release.
# 13  
Old 06-21-2010
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 virtual disk (ramdisk) create for sun4v (T-2000 simulator) architecture

have been trying to create a 2 GB ramdisk (virtual) to run on my T-2000 simulator (Legion) which has sun4v architecture. I have a SPARC workstation which runs on sun4u architecture with Solaris 10. I have created a ramdisk image using dd command, newfs, then used ufsrestore to restore the... (3 Replies)
Discussion started by: Zam_1234
3 Replies

2. Solaris

T5220 How to determine physical memory installed?

Hi, looking to upgrade memory on a pair of T5220's from 32GB to 64GB. Cannot determine current DIMM size and slots used. i.e. not sure if Qty 16 x 2GB or Qty 8 x 4GB. If there are no empty slots, i need to go with higher density DIMMs and retire exsisting the 2GB prtdiag follows. #... (3 Replies)
Discussion started by: edrew
3 Replies

3. Solaris

ZFS : Can arc size value exceed Physical RAM ?

Hi, kstat -p -m zfs -n arcstats -s size returns zfs:0:arcstats:size 8177310584 this values is approx (7.61 GB) but my Physical Memory size is only 6144 Megabytes. Can this happen ? if yes, then how can I find free memory on the system. BTW, I ran the kstat commands from a Non... (2 Replies)
Discussion started by: sapre_amit
2 Replies

4. Red Hat

Physical RAM

Hi, I have a server (BL460c) with 32G of physical RAM. It currently only uses approx 5% its capacity but will use more (not sure how much more) pending the launch of further applications. If I need to build another node of similar functionality should I consider downgrading the physical... (2 Replies)
Discussion started by: Duffs22
2 Replies

5. AIX

How to determine the physical volume fo the disks

This is the report I got running the comand rptconf, but I would like to know what is the capacity of the disks installed into our server power 6 with AIX System Model: IBM,7778-23X Machine Serial Number: 1066D5A Processor Type: PowerPC_POWER6 Processor Implementation Mode: POWER 6... (6 Replies)
Discussion started by: cucosss
6 Replies

6. Red Hat

red hat Linux 5.0 is detecting 3gb ram but physical ram is 16gb

Hi, On server 64bit Hw Arch , Linux 5.0(32bit) is installed it is showing only 3gb of ram though physical is 16gb can u give me idea why? (4 Replies)
Discussion started by: manoj.solaris
4 Replies

7. UNIX for Dummies Questions & Answers

How to accurately determine memory (RAM) information

I'm writing a shell script to display as much useful information on physical and virtual memory availability and usage as possible. I need a CLI tool to print these numbers for me. The utilities that I know to give out some statistics are the following: free top vmstat sysctl In Linux... (1 Reply)
Discussion started by: fiori_musicali
1 Replies

8. Solaris

RAM Physical Memory usage by each Process.

Hi All, I am trying to find the physical memory usage by each process/users. Can you please let me know how to get the memory usage?. Thanks, bsraj. (12 Replies)
Discussion started by: bsrajirs
12 Replies

9. HP-UX

determine the physical size of the hard disk

Hi is there a cmd in hpux 11 to determine the physical size of the hard disk. not bdf command. i have searched the other threads here but cant find an answer. thank you guys (4 Replies)
Discussion started by: hoffies
4 Replies

10. Solaris

getting available physical RAM

What command should I be using on Solaris 9 to get an accurate representation of the available physical RAM? (4 Replies)
Discussion started by: dangral
4 Replies
Login or Register to Ask a Question