1833162 Members
2959 Online
110051 Solutions
New Discussion

Physical Memory

 
Scott McDade
Frequent Advisor

Physical Memory

I have a C3750 running 11i and I would like to find out how much physical memory I have in the machine. Can someone tell me a way to view this?

-S
Keep it Simple!~
10 REPLIES 10
Pete Randall
Outstanding Contributor

Re: Physical Memory

Scott,

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
Jannik
Honored Contributor

Re: Physical Memory

echo "phys_mem_pages/D" | adb /stand/vmunix /dev/kmem | grep phys | tail -1 | awk '{printf "%.0f MB\n",$2/256}'

It works.
jaton
Thierry Poels_1
Honored Contributor

Re: Physical Memory

even less typing :

dmesg | grep Physical

works only if the system error message buffer did not overflow, else go for:
grep Physical /var/adm/syslog/syslog.log

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
James R. Ferguson
Acclaimed Contributor

Re: Physical Memory

Hi Scott:

Another way:

# echo "selclass qualifier memory;info;wait;infolog" | cstm > /tmp/meminfo

You can see physical memory DIMMS and size and arrangement with this.

Regards!

...JRF...
Dario_1
Trusted Contributor

Re: Physical Memory

Hi!

Try one of the following:

#echo phys_mem_pages/D | adb64 /stand/vmunix /dev/mem

or

SAM--->performance monitor--->system properties

or

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

or

dmesg

Regards,

Dario
Elena Leontieva
Esteemed Contributor

Re: Physical Memory

The result of adb command shown above is in 4KB memory pages, so multiply it by 4096 to get the memory size in bytes.
Augusto Vinhaes
Frequent Advisor

Re: Physical Memory

Take a look at the kmeminfo command - it's the easiest way to get memory information. It also gives you many useful information...
Augusto
twang
Honored Contributor

Re: Physical Memory

# dmesg |grep -i physical
Brian DelPizzo
Frequent Advisor

Re: Physical Memory

If you have Support Tools Manager (STM) you can run cstm from the command line and select memory from the list of system resources. Depending on the system you have, memory may show up more than once. Add it all together. You can see some great info here including the actual memory banks and how much expandability your system has. You can also see memory parity errors. Good Tool!
Srinivas Thokala_1
Frequent Advisor

Re: Physical Memory

Use command
# grep physical /var/adm/syslog/syslog.log
Srinivas Thokala