1837144 Members
2303 Online
110112 Solutions
New Discussion

Memory on server

 
Sam Dee
Advisor

Memory on server

Hi gurus,
Please I would like to know how much memory I have on my HP-UX 11i box.
Your asistance will be very much appreciated
BR

Sam
13 REPLIES 13
Pete Randall
Outstanding Contributor

Re: Memory on server

Sam,

I use this little script:

HPUX=/stand/vmunix
MAJORREV=$(uname -r | cut -f2 -d .)
if [ $MAJORREV -ge "11.0" ]
then
MYSYMBOL="phys_mem_pages"
else
MYSYMBOL="physmem"
fi

MYMEM=$(echo "${MYSYMBOL}/D" \
| adb $HPUX /dev/kmem \
| grep "${MYSYMBOL}: *." \
| awk '{printf "%.0f MB\n",$2/256}')
echo $MYMEM


Pete

Pete
Sundar_7
Honored Contributor

Re: Memory on server

Hi,

# typset -i PAGES=0 MEM=0
# PAGES=$(echo "phys_mem_pages/D" | adb -k /stsnd/vmunix /dev/kmem | tail -1 | awk '{print $2}')

# (( MEM=PAGES*4/1024 ))
# echo $MEM

Sundar
Learn What to do ,How to do and more importantly When to do ?
Patrick Wallek
Honored Contributor

Re: Memory on server

If you have diagnostics installed you can also use this:

# echo "selclass qualifier memory ; il" | cstm | grep "Total Physical"
Sanjay_6
Honored Contributor

Re: Memory on server

Hi Sam,

Try,

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

or if you have STM/cstm on the system,

echo "selclass qualifier memory;info;wait;infolog" | cstm | grep 'Total Configured'

Hope this helps.

Regds
Sanjay_6
Honored Contributor

Re: Memory on server

Hi Sam,

If you have perl installed and in your path, you can also use,

echo 'memory_installed_in_machine/D' | adb -k /stand/vmunix /dev/mem | perl -nle'/(\d+)/&&print$1*4,"k"'

Hope this helps.

Regds
Scott Palmer_1
Trusted Contributor

Re: Memory on server

Sam,
dmesg | grep Physical
this should get you what you need

Scott
Marvin Strong
Honored Contributor

Re: Memory on server

glance -m

if you have glance installed.
Geoff Wild
Honored Contributor

Re: Memory on server

Here's another script called hpmem:

# hpmem
HP-UX pc0004 B.11.11 U 9000/800 2504392628 unlimited-user license
CPU Count: 6
CPU Speed: 750 MHz
CPU HW Support: 64-bit
Kernel Support: 64-bit
RAM Size: 10080 MB
bufpages: 806 MB
maxuprc: 800
maxvgs: 128
maxfiles: 2048
max_thread_proc: 256
nfile: 189100
nflock: 1200
nproc: 2560
ninode: 16384
shmmax: 1073741824
shmmni: 256
dbc_max_pct: 8

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.
Sam Dee
Advisor

Re: Memory on server

Hi,
Please I don't have Perl installed nor other utilities.
The /var/adm/syslog/syslog.log give me 2097152 kbytes.

Could you please interprete this figure for me as it is more than what I expect

Sam
Sam Dee
Advisor

Re: Memory on server

Hi,
Please I don't have Perl installed nor other utilities.
The /var/adm/syslog/syslog.log give me Physical:2097152 kbytes.

Could you please interprete this figure for me as it is more than what I expect

Sam
Naveej.K.A
Honored Contributor

Re: Memory on server

Hi sam,

if you got the ignite ux installed

execute the print_manifest command to get the full system information. You also get to see how much memory is installed in the system.

/opt/ignite/bin/print_manifest

with best wishes
Naveej
practice makes a man perfect!!!
Sam Dee
Advisor

Re: Memory on server

Thanks guys,

I used Naveej's ignite solution. It worked much faster.

BR
Sam
Scott Palmer_1
Trusted Contributor

Re: Memory on server

Sam,

If i read that right, wouldn't Physical:2097152 kbytes be about
2 gig of physical memory?

Scott