1844001 Members
3589 Online
110226 Solutions
New Discussion

memory

 
sameer_4
Advisor

memory

Hi,
Can anybody let me know how to check the memory of Hp ux machine using command line.

thanks
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: memory

I use this 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
T G Manikandan
Honored Contributor

Re: memory

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

Multiply the resultant by 4096to get the value.

Also can use

#cat /var/adm/syslog/syslog.log|grep Phy
to get the amount of memory


Thanks
Bjoern Myrland
Advisor

Re: memory

Hello

The command
# dmesg

will show you some memory information.

Typically look for:
Memory Information:
Physical: 262144 Kbytes, lockable: 179996 Kbytes, available: 211716 Kbytes

Jean-Louis Phelix
Honored Contributor

Re: memory

Hello,

Do you mean checking size or checking fro errors ? Pete gave you a good script for size.

Here is an access to error log from diags :

A - get your memory HW path from ioscan -k (something like 8 memory Memory)

B - create an input file (X is your memory HW path) containing :
sel path X
il
done
exit

C - run "cstm < file"
Output will be something like :

-- Information Tool Log for MEMORY on path 8 --

Log creation time: Wed Oct 16 15:16:39 2002

Hardware path: 8


Basic Memory Description

Module Type: MEMORY
Total Configured Memory : 512 MB
Page Size: 4096 Bytes

Memory interleaving is supported on this machine and is ON.

Memory Board Inventory

DIMM Slot Size (MB)
--------- ---------
0a 256
0b 256
--------- ---------
System Total (MB): 512

Memory Error Log Summary

The memory error log is empty.

Page Deallocation Table (PDT)

PDT Entries Used: 0
PDT Entries Free: 50
PDT Total Size: 50
-- Information Tool Log for MEMORY on path 8 --
It works for me (© Bill McNAMARA ...)
Ken Hubnik_2
Honored Contributor

Re: memory

Try using the mem command.
>mem
MANOJ SRIVASTAVA
Honored Contributor

Re: memory

Hi Sameer


Couple of ways to do it :


1. dmesg | grep Phy will give you the physcial memeory .

2. SAM--->Performance Monitors--->system properties .

3. Glance

4. print _manifest if you ahve ignite installed .



Manoj Srivastava

Tom Maloy
Respected Contributor

Re: memory

Another alternative:

echo "selclass qualifier memory;info;wait;infolog"|cstm

Tom
Carpe diem!