Solaris sun4v - how do you determine physical RAM?


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris sun4v - how do you determine physical RAM?
# 1  
Old 06-15-2010
Solaris sun4v - how do you determine physical RAM?

I have a Sun T5120, and I want to programmatically determine how much RAM it has.

Code:
# uname -a 
SunOS myhost 5.10 Generic_141444-09 sun4v sparc SUNW,SPARC-Enterprise-T5120

The box has 64Gb; I tried prtdiag and prtconf, but they give me bogus info

prtconf gives me:

Code:
# prtconf |grep -i "memory size"
Memory size: 1024 Megabytes


prtdiag gives me:

Code:
System Configuration:  Sun Microsystems  sun4v SPARC Enterprise T5120
Memory size: 1024 Megabytes

================================ Virtual CPUs ================================


CPU ID Frequency Implementation         Status
------ --------- ---------------------- -------
0      1415 MHz  SUNW,UltraSPARC-T2     on-line  
1      1415 MHz  SUNW,UltraSPARC-T2     on-line  

======================= Physical Memory Configuration ========================
Segment Table:
--------------------------------------------------------------
Base           Segment  Interleave  Bank     Contains
Address        Size     Factor      Size     Modules
--------------------------------------------------------------
0x0            64 GB    4           16 GB    MB/CMP0/BR0/CH0/D0
                                             MB/CMP0/BR0/CH1/D0
                                    16 GB    MB/CMP0/BR1/CH0/D0
                                             MB/CMP0/BR1/CH1/D0
                                    16 GB    MB/CMP0/BR2/CH0/D0
                                             MB/CMP0/BR2/CH1/D0
                                    16 GB    MB/CMP0/BR3/CH0/D0
                                             MB/CMP0/BR3/CH1/D0


Last edited by Scott; 06-15-2010 at 01:37 PM.. Reason: Code tags, please...
# 2  
Old 06-15-2010
What does
Code:
banner

say at the OpenBoot "ok " prompt?
This User Gave Thanks to bartus11 For This Post:
# 3  
Old 06-15-2010
Commands from the ok prompt won't help me here; I need to do this in a shell script.
# 4  
Old 06-15-2010
Well if those two commands show that Solaris detected 1GB of RAM then there is nothing else what you can do. Maybe your server was partitioned using LDoms, and that is why amount of RAM is so low in this instance of the system, but I don't have much knowledge about that subject.
This User Gave Thanks to bartus11 For This Post:
# 5  
Old 06-15-2010
You might be onto something there; this box does have LDOMs, and the primary partition is only 1Gb, so that makes sense. I would still expect prtconf/prtdiag to tell me how much physical RAM is in the box, though.

Code:
# ldm list
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
primary          active     -n-cv-  SP      2     1G       1.3%  23h 31m
litsun01-d01     active     -n----  5000    4     2G       0.4%  1d 22m
litsun01-d02     active     -n----  5001    4     2G       0.2%  1d 22m
litsun01-d03     active     -t----  5002    4     2G        25%  1d 22m
litsun01-d04     active     -n----  5003    4     2G       0.2%  1d 22m
litsun01-d05     active     -t----  5004    4     2G        25%  19h 41m
litsun01-d06     inactive   ------          4     2G             
litsun01-d07     inactive   ------          4     2G             
litsun01-d08     inactive   ------          4     2G


Last edited by Scott; 06-15-2010 at 01:44 PM.. Reason: Code tags, PLEASE!
# 6  
Old 06-15-2010
In output that you provided, prtdiag shows 64GB of memory in "Physical Memory Configuration" section.
This User Gave Thanks to bartus11 For This Post:
# 7  
Old 06-15-2010
Quote:
Originally Posted by bartus11
In output that you provided, prtdiag shows 64GB of memory in "Physical Memory Configuration" section.
Yup, but the script that I have for collecting this info uses the "memory size" line at the moment; LDOM broke it. I need to come up with a new way to do this, which will work on either an LDOM or non-LDOM system.
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