Operating System - HP-UX
1828225 Members
2486 Online
109975 Solutions
New Discussion

command to find memory size

 
T.S.SHIVAKUMAR
Occasional Advisor

command to find memory size

Hi!
Is there any way to find the memory size in my HP workstation ... something other than "dmesg" or SAM. this I would like to out in a script to collect the memory info in all my HP m/cs (which are quite a lot) I believe there is a way using "adb" although I don't recall. Could someone help me out? Also is there any command to find the hardware model and processor type-speed details?
Regards,
Shivakumar
Try...try... till your system crashes!
7 REPLIES 7
Dan Hetzel
Honored Contributor

Re: command to find memory size

Hi,

echo "mem_ptr/D"| adb /stand/vmunix /dev/mem


Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
R Madhavan
Frequent Advisor

Re: command to find memory size

Assume you are using 11.00, you can use,

echo 'phys_mem_pages/D'|adb -k /stand/vmunix /dev/kmem.

For 10.20,

echo 'physmem/D'|adb -k /stand/vmunix /dev/kmem

To know model and speed use 'model' command.

/*
James R. Ferguson
Acclaimed Contributor

Re: command to find memory size

Hi:

To obtain the processor speed (MHz):

# echo itick_per_usec/D|adb -k stand/vmunix /dev/kmem|awk 'NR==2 {print}'

...JRF...
federico_3
Honored Contributor

Re: command to find memory size

For 11.00, you can use,

echo 'phys_mem_pages/D'|adb -k /stand/vmunix /dev/kmem | tail -1 | awk '{print $2/256}'.

For 10.20,

echo 'physmem/D'|adb -k /stand/vmunix /dev/kmem | tail -1 | awk '{print $2/256}'.


To know model 'model' command.

for processor speed
# echo itick_per_usec/D|adb -k stand/vmunix /dev/kmem|tail -1 | awk '{print $2}'


federico


Carlos Fernandez Riera
Honored Contributor

Re: command to find memory size

search for "how much memory" in forums

You will be surprised of howe many kinds there are to get this info.


unsupported
Alan Riggs
Honored Contributor

Re: command to find memory size

grep Physical /var/adm/syslog/syslog.log
James R. Ferguson
Acclaimed Contributor

Re: command to find memory size

Hi:

You can not only find out how much memory, but also the physical board (SIM) sizes and arrangement by using the online diagnostics tool:

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

...JRF...