Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Physical memory on HP-UX

Status
Not open for further replies.

megh101

IS-IT--Management
May 25, 2001
9
0
0
US
I am trying to find physical memory on Hp 9000/800 boxes. I know i can find from /var/adm/syslog.log , but i want to know is thery any command which i can use from prompt other than dmesg.
 
Hi megh101,

Running dmesg and looking for the value of physical, is probably the easiest method, or you could use top, or glance if installed.

Regards
Queenie
 
Hai megh
If u want to know the physical memory installed in HP900/800, (HPUX 10.20) then there are 3 ways.

1. use /usr/sbin/dmesg | grep Physical
this will give the memory installed at the server.

2. use /usr/sam/lbin/getmem
This will give you the memory installed in MB

3. wc -c /dev/mem
this is a slow process, and gives the result in kb.

hope this helps u.

srini
 
It is good to know and use the hp_ux utility : stm.
I like it. It is useful for dbas and system admins.
 
Some other methods:

# echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem
(The results of these commands are in memory pages, multiply by 4096
to obtain the size in bytes)

/usr/sam/lbin/getmem

These only work if you are "root". You can write a very simple C program that manipulates the "pstat.h" library, and will work as any user.
 
go into SAM
Click on Performance Monitors
then System Properties
then the tab that says Memory
Hope this helps
MIke
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top