Operating System - HP-UX
1828252 Members
3519 Online
109975 Solutions
New Discussion

Command to find the memory

 
SOLVED
Go to solution
Shivkumar
Super Advisor

Command to find the memory

Dear Sirs,

What is the command to find the memory of the system ?

Thanks,
Shiv
12 REPLIES 12
Mel Burslan
Honored Contributor
Solution

Re: Command to find the memory



dmesg | grep -i physical

-or-

echo phys_mem_pages/D | adb -k /stand/vmunix /dev/mem | \
awk '{print 4096*$2}'
________________________________
UNIX because I majored in cryptology...
Sheriff Andy
Trusted Contributor

Re: Command to find the memory

Check out this website.

ftp://hprc.external.hp.com/memory.htm
Devesh Pant_1
Esteemed Contributor

Re: Command to find the memory

Shiv,
here is a small script courtesy Stephan Farrely
-----------------------------------
#!/bin/ksh
# Find total memory claimed by system.
# With help of Stefan Farrely
count=0
for input in `UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line | sort -rnk1 | grep -v Kbytes | awk '{print $1}'`
do
count=`expr $count + $input`
done
print "Total memory claimed : $count Kbytes \n"
----------------------

thanks
DP
Sandman!
Honored Contributor

Re: Command to find the memory

Shiv,

Depends on the OS version you are using.

For 10.x use:

# echo physmem/D | adb /stand/vmunix /dev/kmem

For 32-bit 11.x use:

# echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem

For 64-bit 11.x multiply the output below with 4096 for total memory in bytes:

# echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem

with SAM...

SAM -> Performance Monitors -> System Properties -> Memory

cheers!
Sandman!
Honored Contributor

Re: Command to find the memory

Sorry correction multiply the output of each of the above commands with 4096 to get the total memory in bytes or simply use SAM.

hope it helps!!!
Indira Aramandla
Honored Contributor

Re: Command to find the memory

Hi Shiv,

To get the total physical memory on a system
grep -i physical grep -i physical /var/adm/syslog/OLDsyslog.log

or

Memory:

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

Multiply the above with 4 to get it in KB.

IA
Never give up, Keep Trying
Joseph Loo
Honored Contributor

Re: Command to find the memory

hi,

aside from pulling out the top of yr server ....

try this:

# dmesg|grep Physical
for total physical memory

if u r running make_tape_recovery, run print_manifest command for other hardware, software and kernel info.

or use sam -> Performance Monitor -> System Properties -> Memory tab


regards.
what you do not see does not mean you should not believe
Muthukumar_5
Honored Contributor

Re: Command to find the memory

You can get it by,

1> sam -> performance monitor -> system properties -> memory tab

2> dmesg | grep 'Phy'

3> If ignite-ux installed,
print_manifest

4> If o/s version is 11.23 then,
machinfo

hth.
Easy to suggest when don't know about the problem!
Eknath
Trusted Contributor

Re: Command to find the memory

Hi Shiv,

You can use dmesg or glance plus or stm all will give you system memory.

Cheers!!!
eknath
Devesh Pant_1
Esteemed Contributor

Re: Command to find the memory

Shiv

easiest would be to fire up glance
or
dmesg | grep -i physical

and the like
DP
Devender Khatana
Honored Contributor

Re: Command to find the memory

Hi Shiv,

The most common procedure for the same are following three.

#dmesg |grep Physical

to know total memory installed in the ststem.
For detaled information regarding various physical modules installed in the system try.

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

HTH,
Devender
Impossible itself mentions "I m possible"
Mahesh Kumar Malik
Honored Contributor

Re: Command to find the memory

Hi Shive

1. #dmesg |grep physical is one of way of knowing physical memory in system

2. #top can also give you an idea on system memory

Regards
Mahesh