1832258 Members
2776 Online
110041 Solutions
New Discussion

Memory installed?

 
Brantley Hudson_1
Occasional Contributor

Memory installed?

I have a newbie question. How do I determine the amount of memory installed in
a HP-UX box that is operational (short of rebooting it)?
6 REPLIES 6
John Mai_2
New Member

Re: Memory installed?

Login as root. Type dmesg
Look under Memory Information.
Melvyn Burnard_1
Regular Advisor

Re: Memory installed?

Every time the system reboots, it logs the memory information into the
/var/adm/syslog/syslog.log file.
So an easy way to check for the memory is:

grep Physical /var/adm/syslog/syslog.log

Here is a sample output:

$ grep Physical /var/adm/syslog/syslog.log
Mar 6 16:16:00 hpwin025 vmunix: Physical: 1048576 Kbytes, lockable: 808624
Kbytes, available: 930084 Kbytes
$
Justen Layne_1
Occasional Advisor

Re: Memory installed?

you can login as root and type dmesg, you can look in SAM-->performance
monitors-->system properties under the memory tab, or, if you have online
diagnostics installed, you can do an information query on the memory.
Brett Smith
New Member

Re: Memory installed?

Run /usr/lbin/sam/getmem
It's all ball bearings these days
Andy Monks
Honored Contributor

Re: Memory installed?

Anyone way is via a small C program. It save's using grep etc to find the info:-

phys_mem.c
----------

#include
#include
#include
main()
{
struct pst_static pst;

if (pstat_getstatic(&pst, sizeof(pst), (size_t)1, 0) != -1)
(void)printf("Physical Memory is %d bytesn",
pst.page_size * pst.physical_memory);
else
perror("pstat_getstatic");
}

To compile do :-

make phys_mem
Dave Wherry
Esteemed Contributor

Re: Memory installed?

Yet another way is to run the Support Tool Manager. You can run the character version (mstm) or the X version (xstm).
Navigating through the X version is easier to me.
Start either one. In mstm cursor to the MEMORY line or highlight the Memory icon on the xstm version.
On the menu bar go into Tools and then Information, then Run.
It will give you a report on the memory and tell you how many of what size DIMM's you have and the total.
It also tells you how your slots are populated so you can plan upgrades. I've seen people buy memory only to find out they do not have any available slots or the wrong size DIMM's to correctly interleave.