Operating System - HP-UX
1753872 Members
7434 Online
108809 Solutions
New Discussion юеВ

how do I check memory available on the system

 
ng_7
Regular Advisor

how do I check memory available on the system

dear experts,

how do I check the
memory available on the system, I use this command


db1:/# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol9
reserve - 2855 -2855
memory 3827 1559 2268 41%
total 12019 4414 7605 37% - 0
db1:/#

from the result, can I say my memory available is 2.26GB ?

thanks
12 REPLIES 12
Suraj K Sankari
Honored Contributor

Re: how do I check memory available on the system

Hi,

You can used top and glance also to see the memory used.

Suraj
SKR_1
Trusted Contributor

Re: how do I check memory available on the system

1. dmesg | grep -i physical
2. print_manifest
3. SAM
4. glance ( press m )



Thanks

SKR
ng_7
Regular Advisor

Re: how do I check memory available on the system

hi, sorry, please allow my stupid and unprofessional question.

my result

db1:/# dmesg | grep -i physical
physical page size = 4096 bytes, logical page size = 4096 bytes

Physical: 5242880 Kbytes, lockable: 4656104 Kbytes, available: 4501384 Kbytes

does it mean I have 4.5 Gb of memory only

what is lockable memory ?

thanks
VVS
Regular Advisor

Re: how do I check memory available on the system

Hi

>>db1:/# dmesg | grep -i physical
physical page size = 4096 bytes, logical page size = 4096 bytes

It means, you have 4GB of physical Memory.

>>what is lockable memory ?
When you boot your system some amount of memory is used by the kernal code and data structure. It is called lockable memory.
The remaining memory is available memory.

Regards,

VVS
Work is life, you know, and without it, there's nothing but fear and insecurity.
SKR_1
Trusted Contributor

Re: how do I check memory available on the system

yes, you have 4GB physical memory.

you can go through below link for understanding all terms related to memory.

http://docs.hp.com/en/5965-4641/ch01s03.html

Thanks

SKR
ng_7
Regular Advisor

Re: how do I check memory available on the system

but we have physical memory 5GB according to SAM, why here tell us only 4GB, is it some is reserve ?

thanks

Yogeeraj_1
Honored Contributor

Re: how do I check memory available on the system

hi,

also have a look at the following thread:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1179723

the memdetail program can be used to display more details on the system memory.

e.g.
# memdetail
Memory Stat total used avail %used
physical 40958.0 28445.2 12512.8 69%
active virtual 30213.0 8304.0 21909.1 27%
active real 19827.2 6694.1 13133.0 34%
memory swap 40958.0 15385.0 25573.0 38%
device swap 83964.0 31218.8 52745.2 37%



hope this helps!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
ng_7
Regular Advisor

Re: how do I check memory available on the system

hi, thanks to all your help, lastly I would like to seek for your advise on below :

I have a solution to solve my currenct MRP problem
"set maxdsiz_64bit to at
least close to the memory available on the system."

can I set maxdsiz_64bit to close to 4GB ?

thank you very much
Ganesan R
Honored Contributor

Re: how do I check memory available on the system

Hi NG,

You are correct. You have 5GB of memory.

look at your dmesg output.

db1:/# dmesg | grep -i physical
physical page size = 4096 bytes, logical page size = 4096 bytes

Physical: 5242880 Kbytes, lockable: 4656104 Kbytes, available: 4501384 Kbytes

Physical: 5242880 Kbytes --> This is the physical memory you have on your system. It is 5242MB. Kernel will be loaded at the initial pages of the memory. Remaining amount only will be available to the system. That is 4656104 Kbytes.

You can also check the physical by using this command.
#echo "selclass qualifier memory;info;wait;infolog" | /usr/sbin/cstm | grep 'Total Configured'

#echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem --> it will give it in pages. you need to multiply with 4 if physical page size is 4096 bytes.

Hope you will be clear now.


Best wishes,

Ganesh.