1832880 Members
2471 Online
110048 Solutions
New Discussion

Viewing amount of RAM

 
Ransom T. Scott
New Member

Viewing amount of RAM

I once had a command that would allow me to see how much RAM our HP9000, but have since lost it. Can anyone help me with this.
9 REPLIES 9
Stefan Farrelly
Honored Contributor

Re: Viewing amount of RAM


Use this script;

#!/bin/ksh
if [ `uname -r` = "B.11.00" ]
then
echo "phys_mem_pages/D" | adb /stand/vmunix /dev/kmem|grep phys|tail -1|awk '{print $2/256 " MB"}'
else
echo "physmem/D" | adb /stand/vmunix /dev/kmem|grep phys|tail -1|awk '{print "Memory size = " $2 / 256 " Megabytes"}'
fi

or use; /usr/sam/lbin/getmem
Im from Palmerston North, New Zealand, but somehow ended up in London...
Vladislav Demidov
Honored Contributor

Re: Viewing amount of RAM

The /usr/sbin/dmesg command shows amount of phisical memory in KB.
Patrick Wessel
Honored Contributor

Re: Viewing amount of RAM

Ransom,
You can use SAM (if you like SAM)
Performance Monitors -> System Property -> Memory


Or run the information tool from STM on the memory


there is also the Memory Information in the dmesg output. someting like:
Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Physical: 524288 Kbytes, lockable: 382468 Kbytes, available: 443616 Kbytes

There is no good troubleshooting with bad data
CHRIS_ANORUO
Honored Contributor

Re: Viewing amount of RAM

Hi,
dmesg will show you the Physical memory installed on th e server, or vi /var/adm/syslog/syslog.log
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Andy Monks
Honored Contributor

Re: Viewing amount of RAM

Or you can just compile up the small program attached.
Rick Garland
Honored Contributor

Re: Viewing amount of RAM

Many commands will show you the RAM on a system. "dmesg | grep -i phy" will show the physical memory. SAM will get the info and more (Performance Monitors -> System Properties), top can show you and how it is being used, etc.
Antoanetta Naghiu
Esteemed Contributor

Re: Viewing amount of RAM

STM from diagnostics could be an option as well.
Dave Wherry
Esteemed Contributor

Re: Viewing amount of RAM

All of the answers are correct. I like the approach Antoanetta posted. stm or xstm not only tells you how much memory you have, it tells you what memory modules are in what memory slots.
If a command tells you there is a GB of memory, is it two 512MB modules or four 256MB modules? If you want to add memory it's good to know if you have open slots to put it in.

Dave Wherry
Esteemed Contributor

Re: Viewing amount of RAM

All of the answers are correct. I like the approach Antoanetta posted. stm or xstm not only tells you how much memory you have, it tells you what memory modules are in what memory slots.
If a command tells you there is a GB of memory, is it two 512MB modules or four 256MB modules? If you want to add memory it's good to know if you have open slots to put it in.