Solaris :
memconf – memconf reports the size of each SIMM/DIMM memory module installed in a system. It also reports the system type and any empty memory sockets. In verbose mode, it also reports information of banner name, model, CPU/system frequencies, address range and bank numbers for each module.
Usage:
memconf [ -v | -D | -h ] [ explorer_dir ]
• v – verbose mode.
• D – send results to memconf maintainer.
• h – print help.
• explorer_dir – Sun Explorer output directory.
Requirements:
One of the following Hardware and Operating Systems:
• Sun SPARC workstation or server running SunOS 4.1.X, Solaris 2.X or later.
• Sun SPARC workstation or server running Linux with sparc-utils and /dev/openprom.
• x86 system running Solaris 10 6/06 or later with /usr/platform/i86pc/sbin/prtdiag.
• perl installed in your path. Perl V5.X is recommended, but perl V4.X will work. You can download the Perl package for Solaris from Sunfreeware.com if you don’t already have it installed.
Installation:
# chmod 755 memconf.gz |
# mv memconf.gz |
Sample output:
• On a Solaris Sun Fire V240 system:
# ./memconf memconf: V2.22 30-Jan-2012 http://www.4schmidts.com/unix.html Gathering data for memconf. This may take over a minute. Please wait... hostname: qctapp1 Sun Microsystems, Inc. Sun Fire V240 (2 X UltraSPARC-IIIi 1280MHz) Memory Segment Table: ----------------------------------------------------------------------- Base Address Size Interleave Factor Contains ----------------------------------------------------------------------- 0x0 8GB 16 BankIDs 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 0x1000000000 4GB 2 BankIDs 16,17 Bank Table: ----------------------------------------------------------- Physical Location ID ControllerID GroupID Size Interleave Way ----------------------------------------------------------- 0 0 0 512MB 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 1 0 0 512MB 2 0 1 512MB 3 0 1 512MB 4 0 0 512MB 5 0 0 512MB 6 0 1 512MB 7 0 1 512MB 8 0 1 512MB 9 0 1 512MB 10 0 0 512MB 11 0 0 512MB 12 0 1 512MB 13 0 1 512MB 14 0 0 512MB 15 0 0 512MB 16 1 0 2GB 0,1 17 1 0 2GB Memory Module Groups: ------------------------------------------------------------- ControllerID GroupID Labels Status DIMMs ------------------------------------------------------------- 0 0 MB/P0/B0/D0 2GB 0 0 MB/P0/B0/D1 2GB 0 1 MB/P0/B1/D0 2GB 0 1 MB/P0/B1/D1 2GB 1 0 MB/P1/B0/D0 2GB 1 0 MB/P1/B0/D1 2GB FRU Memory Data: ----------------------------------------------------------------------- MB/P0/B0/D0: 2 GB SDRAM DDR ECC, Micron Technology 36VDDF25672Y-335F3 MB/P0/B0/D1: 2 GB SDRAM DDR ECC, Micron Technology 36VDDF25672Y-335F3 MB/P0/B1/D0: 2 GB SDRAM DDR ECC, Micron Technology 36VDDF25672G-335D2 MB/P0/B1/D1: 2 GB SDRAM DDR ECC, Micron Technology 36VDDF25672G-335D2 MB/P1/B0/D0: 2 GB SDRAM DDR ECC, Micron Technology 36VDDF25672G-335D2 MB/P1/B0/D1: 2 GB SDRAM DDR ECC, Micron Technology 36VDDF25672G-335D2 ----------------------------------------------------------------------- empty sockets: MB/P1/B1/D0 MB/P1/B1/D1 total memory = 12288MB (12GB) #
On a Oracle Corporation SPARC T3-1 system with LDOMS:
bash-3.2# ./memconf memconf: V2.22 30-Jan-2012 http://www.4schmidts.com/unix.html Gathering data for memconf. This may take over a minute. Please wait... hostname: nucnot3-61 Oracle Corporation SPARC T3-1 (16-Core 8-Thread SPARC-T3 1649MHz) Memory Interleave Factor: 2-way socket MB/CMP0/BOB0/CH0/D0 has a Hynix Semiconductor Inc. 511-1616 4GB DDR3 DIMM socket MB/CMP0/BOB0/CH1/D0 has a Hynix Semiconductor Inc. 511-1616 4GB DDR3 DIMM socket MB/CMP0/BOB1/CH0/D0 has a Hynix Semiconductor Inc. 511-1616 4GB DDR3 DIMM socket MB/CMP0/BOB1/CH1/D0 has a Hynix Semiconductor Inc. 511-1616 4GB DDR3 DIMM socket MB/CMP0/BOB2/CH0/D0 has a Hynix Semiconductor Inc. 511-1616 4GB DDR3 DIMM socket MB/CMP0/BOB2/CH1/D0 has a Hynix Semiconductor Inc. 511-1616 4GB DDR3 DIMM socket MB/CMP0/BOB3/CH0/D0 has a Hynix Semiconductor Inc. 511-1616 4GB DDR3 DIMM socket MB/CMP0/BOB3/CH1/D0 has a Hynix Semiconductor Inc. 511-1616 4GB DDR3 DIMM empty sockets: MB/CMP0/BOB0/CH1/D1 MB/CMP0/BOB1/CH1/D1 MB/CMP0/BOB2/CH1/D1 MB/CMP0/BOB3/CH1/D1 MB/CMP0/BOB0/CH0/D1 MB/CMP0/BOB1/CH0/D1 MB/CMP0/BOB2/CH0/D1 MB/CMP0/BOB3/CH0/D1 total memory = 32768MB (32GB) NOTICE: Control Logical Domain (LDOM) detected. The cpus and memory modules reported are for the system, not necessarily the control domain.
AIX:
# lscfg -vp | egrep 'Memory DIMM|Size' Memory DIMM: Size........................2048 Memory DIMM: Size........................2048 Memory DIMM: Size........................2048 Memory DIMM: Size........................2048 Memory DIMM: Size........................2048 Memory DIMM: Size........................2048 Memory DIMM: Size........................2048 Memory DIMM: Size........................2048
Linux:
DMIDECODE COMMAND
Run the DMIDECODE command and look for the data where the word “Physical Memory Array” starts and go through each line to get detailed information. In some new systems you can also use the command dmidecode –s memory and dmidecode –t 17 , where “s” means string and “t” means type. Let’s just use dmidecode here for now.
[root@nucnoovs50 ~]# dmidecode -t 17 # dmidecode 2.7 SMBIOS 2.5 present. Handle 0x1100, DMI type 17, 28 bytes. Memory Device Array Handle: 0x1000 Error Information Handle: Not Provided Total Width: 72 bits Data Width: 64 bits Size: 2048 MB Form Factor: <OUT OF SPEC> Set: 1 Locator: DIMM1 Bank Locator: Not Specified Type: <OUT OF SPEC> Type Detail: Synchronous Speed: 533 MHz (1.9 ns) Manufacturer: 80AD808980AD Serial Number: 00042005 Asset Tag: 010631 Part Number: HYMP525B72BP4N2-C4 Handle 0x1101, DMI type 17, 28 bytes. Memory Device Array Handle: 0x1000 Error Information Handle: Not Provided Total Width: 72 bits Data Width: 64 bits Size: 2048 MB Form Factor: <OUT OF SPEC> Set: 1 Locator: DIMM2 Bank Locator: Not Specified Type: <OUT OF SPEC> Type Detail: Synchronous Speed: 533 MHz (1.9 ns) Manufacturer: 80AD808980AD Serial Number: 00042005 Asset Tag: 010631 Part Number: HYMP525B72BP4N2-C4 Handle 0x1102, DMI type 17, 28 bytes. Memory Device Array Handle: 0x1000 Error Information Handle: Not Provided Total Width: 72 bits Data Width: 64 bits Size: 2048 MB Form Factor: <OUT OF SPEC> Set: 2 Locator: DIMM3 Bank Locator: Not Specified Type: <OUT OF SPEC> Type Detail: Synchronous Speed: 533 MHz (1.9 ns) Manufacturer: 80AD808980AD Serial Number: 00042005 Asset Tag: 010631 Part Number: HYMP525B72BP4N2-C4 Handle 0x1103, DMI type 17, 28 bytes. Memory Device Array Handle: 0x1000 Error Information Handle: Not Provided Total Width: 72 bits Data Width: 64 bits Size: 2048 MB Form Factor: <OUT OF SPEC> Set: 2 Locator: DIMM4 Bank Locator: Not Specified Type: <OUT OF SPEC> Type Detail: Synchronous Speed: 533 MHz (1.9 ns) Manufacturer: 80AD808980AD Serial Number: 00042006 Asset Tag: 010631 Part Number: HYMP525B72BP4N2-C4 Handle 0x1104, DMI type 17, 28 bytes. Memory Device Array Handle: 0x1000 Error Information Handle: Not Provided Total Width: 72 bits Data Width: 64 bits Size: No Module Installed Form Factor: <OUT OF SPEC> Set: 3 Locator: DIMM5 Bank Locator: Not Specified Type: <OUT OF SPEC> Type Detail: Synchronous Speed: Unknown Manufacturer: Serial Number: Asset Tag: Part Number: Handle 0x1105, DMI type 17, 28 bytes. Memory Device Array Handle: 0x1000 Error Information Handle: Not Provided Total Width: 72 bits Data Width: 64 bits Size: No Module Installed Form Factor: <OUT OF SPEC> Set: 3 Locator: DIMM6 Bank Locator: Not Specified Type: <OUT OF SPEC> Type Detail: Synchronous Speed: Unknown Manufacturer: Serial Number: Asset Tag: Part Number: Handle 0x1106, DMI type 17, 28 bytes. Memory Device Array Handle: 0x1000 Error Information Handle: Not Provided Total Width: 72 bits Data Width: 64 bits Size: No Module Installed Form Factor: <OUT OF SPEC> Set: 4 Locator: DIMM7 Bank Locator: Not Specified Type: <OUT OF SPEC> Type Detail: Synchronous Speed: Unknown Manufacturer: Serial Number: Asset Tag: Part Number: Handle 0x1107, DMI type 17, 28 bytes. Memory Device Array Handle: 0x1000 Error Information Handle: Not Provided Total Width: 72 bits Data Width: 64 bits Size: No Module Installed Form Factor: <OUT OF SPEC> Set: 4 Locator: DIMM8 Bank Locator: Not Specified Type: <OUT OF SPEC> Type Detail: Synchronous Speed: Unknown Manufacturer: Serial Number: Asset Tag: Part Number: [root@nucnoovs50 ~]# dmidecode -t 17 | grep Size Size: 2048 MB Size: 2048 MB Size: 2048 MB Size: 2048 MB Size: No Module Installed Size: No Module Installed Size: No Module Installed Size: No Module Installed [root@nucnoovs50 ~]#
HP-UX:
# cstm Running Command File (/usr/sbin/stm/ui/config/.stmrc). -- Information -- Support Tools Manager Version C.58.00 Product Number B4708AA (C) Copyright Hewlett Packard Co. 1995-2007 All Rights Reserved Use of this program is subject to the licensing restrictions described in "Help-->On Version". HP shall not be liable for any damages resulting from misuse or unauthorized use of this program. cstm>sel dev 2 cstm>info -- Updating Map -- Updating Map... cstm>il -- Converting a (3556) byte raw log file to text. -- Preparing the Information Tool Log for IPF_MEMORY on path memory File ... .... gmhpux01 : 10.0.51.55 .... -- Information Tool Log for IPF_MEMORY on path memory -- Log creation time: Wed Jun 13 16:04:55 2012 Hardware path: memory Basic Memory Description Module Type: MEMORY Page Size: 4096 Bytes Total Physical Memory: 32768 MB Total Configured Memory: 32768 MB Total Deconfigured Memory: 0 MB Memory Board Inventory DIMM Location Size(MB) State Serial Num Part Num -------------------- -------- ------- ---------------- ------------------ Cab 0 Cell 1 DIMM 0A 4096 Config PRY0834EB05Z A9849-60301 Cab 0 Cell 1 DIMM 0B 4096 Config PRY0834EB10S A9849-60301 Cab 0 Cell 1 DIMM 1A 4096 Config PRY0834EB00N A9849-60301 Cab 0 Cell 1 DIMM 1B 4096 Config PRY0834EB01H A9849-60301 Cab 0 Cell 1 DIMM 2A 4096 Config PRY0834EB08U A9849-60301 Cab 0 Cell 1 DIMM 2B 4096 Config PRY0834EB04P A9849-60301 Cab 0 Cell 1 DIMM 3A 4096 Config PRY0834EB0EQ A9849-60301 Cab 0 Cell 1 DIMM 3B 4096 Config PRY0834EB01S A9849-60301 Cab 0 Cell 1 Total: 32768 (MB) =========================================================================== Memory Error Log Summary DIMM Location Error Address Error Type Page Count ---------------------- ---------------- ---------- ------------- ----- Cab 0 Cell 1 DIMM 3A 0x4ee0d5c00 Single-Bit 0x4ee0d5 3 System start: Tue May 22 17:11:33 2012. Last error detected: Tue May 22 17:11:33 2012. Logging interval: 900 seconds. 1 address(es) with errors logged in memory error log. The Logtool Utility provides full details about the memory error log. Page Deallocation Table (PDT) DIMM Location Error Address Error Type Page ---------------------- ---------------- ---------- ------------- Cab 0 Cell 1 DIMM 3A 0x4ee0d5c00 Single-Bit 0x4ee0d5 PDT Entries Used: 1 PDT Entries Free: 199 PDT Total Size: 200 -- Information Tool Log for IPF_MEMORY on path memory -- View - To View the file. Print - To Print the file. SaveAs - To Save the file. Enter Done, Help, Print, SaveAs, or View: [Done] cstm>exit -- Exit the Support Tool Manager -- Are you sure you want to exit the Support Tool Manager? Enter Cancel, Help, or OK: [OK]
very nice.
memconf is very useful.
Thanks !!