Operating System - HP-UX
1833685 Members
3516 Online
110062 Solutions
New Discussion

how to find out physical memory

 
SOLVED
Go to solution
shabev
Occasional Contributor

how to find out physical memory

Hi,

Can anyone help me to get a command to find out total physical memory installed in a hp-ux machine.
7 REPLIES 7
Ivan Krastev
Honored Contributor

Re: how to find out physical memory

On Integrity use
#machinfo


on PA-RISC
#echo "selclass qualifier memory; info, wait; infolog" | cstm > /tmp/meminfo


regards,
ivan
Jaime Bolanos Rojas.
Honored Contributor

Re: how to find out physical memory

Shabev,

Also this command should do the trick:

dmesg | grep -i physical

Regards,

Jaime.
Work hard when the need comes out.
ShreeS
Advisor

Re: how to find out physical memory

shabev,

Use this command to "print_manifest |more" you will get all information about your system. Use -s option to ignore H/W scanning.
Franky_1
Respected Contributor
Solution

Re: how to find out physical memory

Hi Shabev,

you can use "print_manifest|grep -i mem"
This tool comes with the ignite installation

Regards

Franky
Don't worry be happy
Geoff Wild
Honored Contributor

Re: how to find out physical memory

And here's a little program I use called memdetail. It is a c program - compiles with the built in HP-UX compiler.

cc memdetail1.c

mv a.out /usr/local/bin/memdetail

Output like:

# memdetail
Memory Stat total used avail %used
physical 40958.0 28445.2 12512.8 69%
active virtual 30213.0 8304.0 21909.1 27%
active real 19827.2 6694.1 13133.0 34%
memory swap 40958.0 15385.0 25573.0 38%
device swap 83964.0 31218.8 52745.2 37%



Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Arturo Galbiati
Esteemed Contributor

Re: how to find out physical memory

Hi,

perl -e 'local($PSTAT,$PSTAT_STATIC,$mem_info,$PSTAT_STRUCT)=(239,2,"\0"x120,"LI4L");
syscall($PSTAT,$PSTAT_STATIC,$mem_info,length($mem_info),1,0);
print "RAM=".int((unpack($PSTAT_STRUCT,$mem_info))[4]*((unpack($PSTAT_STRUCT,$mem_info))[5])/(1024*1024))."\n";'

This will give you the RAM size in Kb.
HTH,
Art
whiteknight
Honored Contributor

Re: how to find out physical memory

Hi,

it is for 11.11

# echo "phys_mem_pages /D" | adb /stand/vmunix /dev/kmem
phys_mem_pages:
phys_mem_pages: 262144

1 page = 4k x 262144 = 1048576 KB

WK
Problem never ends, you must know how to fix it