cancel
Showing results for 
Search instead for 
Did you mean: 

Figure out free memory on server

SOLVED
Go to solution
K Arora
Occasional Visitor

Figure out free memory on server

Hi Unix Experts

I have HP_UX 11.11 server which has 1 Oracle instance on it with version 10.2.0.1.0.
Now I would like to install Grid control with a separate instance for repository.
I was told I would need 4 GB Ram total. Now how do I figure out if my server has enough resources from Ram perspective

Following is output from top and vmstat

1. for top it says 3045556K free , now is this free memory virtual(real +swap) or real?
2. as per top I only have free 3GB(3045556K) , so does that mean I can not have Grid control on this server ?
3. In vmstat I see free memory as 762335
in man it says free - Size of the free list
what does this mean, how much is my free meemory ?

cov6817:plmbomdv $ vmstat 2 5
procs memory page faults cpu
r b w avm free re at pi po fr de sr in sy cs us sy id
1 0 0 3348627 762335 69 11 0 0 0 0 0 1014 4916 671 12 1 87
1 0 0 3348627 762284 17 0 0 0 0 0 0 1040 10514 886 1 0 99
1 0 0 3330668 762284 10 0 0 0 0 0 0 1031 7820 872 0 0 100
1 0 0 3330668 762284 9 0 0 0 0 0 0 1033 6173 873 0 0 100
1 0 0 3330668 762284 5 0 0 0 0 0 0 1029 5468 891 1 0 98
cov6817:plmbomdv $ top
System: cov6817 Wed Jul 18 08:48:43 2007
Load averages: 0.02, 0.04, 0.03
267 processes: 215 sleeping, 51 running, 1 zombie
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 0.03 0.0% 0.0% 0.2% 99.8% 0.0% 0.0% 0.0% 0.0%
1 0.03 0.6% 0.0% 0.4% 99.0% 0.0% 0.0% 0.0% 0.0%
2 0.02 0.6% 0.0% 0.2% 99.2% 0.0% 0.0% 0.0% 0.0%
3 0.01 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
--- ---- ----- ----- ----- ----- ----- ----- ----- -----
avg 0.02 0.4% 0.0% 0.2% 99.4% 0.0% 0.0% 0.0% 0.0%

Memory: 8733312K (7157492K) real, 15353696K (13382776K) virtual, 3045556K free Page# 1/10

CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
0 ? 26521 oasadm 152 20 1517M 1141M run 3:49 2.53 2.52 java
0 ? 3377 oasadm 152 20 1657M 1276M run 54:49 1.88 1.88 java


Thanks a lot
Oracle DBA
5 REPLIES
Steven E. Protter
Exalted Contributor
Solution

Re: Figure out free memory on server

Shalom,

I think the best way to check is:

swapinfo -tam

This gives you a critical look at how HP uses memory.

argus:/# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 0 1024 0% 0 - 1 /dev/vg00/lvol2
reserve - 236 -236
memory 468 281 187 60%
total 1492 517 975 35% - 0 -


Memory for HP-UX is the total of swap and memory. You see here a system that is not using swap, but it gives a great picture of what you have and what you have available.

I don't like top. It's calculation is not as good and its not specific to how HP-UX does memory.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
K Arora
Occasional Visitor

Re: Figure out free memory on server

Thanks Steven But I do not have access to swapinfo, how about glance is that info good

In memory report I see this

MEMORY REPORT Users= 8
Event Current Cumulative Current Rate Cum Rate High Rate
--------------------------------------------------------------------------------
Page Faults 0 127370 0.0 260.2 1966.2
Page In 0 61180 0.0 124.9 749.5
Page Out 0 0 0.0 0.0 0.0
KB Paged In 0kb 40.4mb 0.0 84.5 2036.3
KB Paged Out 0kb 0kb 0.0 0.0 0.0
Reactivations 0 0 0.0 0.0 0.0
Deactivations 0 0 0.0 0.0 0.0
KB Deactivated 0kb 0kb 0.0 0.0 0.0
VM Reads 0 2692 0.0 5.4 134.7
VM Writes 0 134 0.0 0.2 3.1

Total VM : 14.8gb Sys Mem : 3.09gb User Mem: 8.51gb Phys Mem: 16.0gb
Active VM: 12.9gb Buf Cache: 1.60gb Free Mem: 2.80gb Page 1 of 1
ProcList CPU Rpt Mem Rpt Disk Rpt NextKeys SlctProc Help Exit

How much is my total memory , is it
Phy Mem : 16g + Total VM : 14.8 GB

and out of total memory only Free Mem: 2.80gb is free, is this physical or virtual ?

Can I install OEM grid control with requirement of 4 GB when I have 2.80gb is free which is physical or virtual or both ?

I appreciate all your help
Dennis Handly
Acclaimed Contributor

Re: Figure out free memory on server

>But I do not have access to swapinfo

Why? It is /usr/sbin/swapinfo.

It says your total RAM is: Phys Mem: 16.0gb

>out of total memory only Free Mem: 2.80gb is free, is this physical or virtual?

I would hope it is physical.
Juan_20
Advisor

Re: Figure out free memory on server

Hi

vmstat shows PAGES.
So you the real value is:
762335x4KB=3049340= 3GB.

This shows your physical men and pagesize:
dmesg |grep sical

I use gpm (glance Plus)´s memory report:
Mine shows:
Physical:2GB

Sys mem:406 mb
buf: 321 mb
user:226 mb
free:1,1 GB

sum:406+321+226+1100=2GB

I think it´s clear.
Greetings.
jm
Juan_20
Advisor

Re: Figure out free memory on server

Hi

vmstat shows PAGES.
So you the real value is:
762335x4KB=3049340= 3GB.

This shows your physical men and pagesize:
dmesg |grep sical

I use gpm (glance Plus)´s memory report:
Mine shows:
Physical:2GB

Sys mem:406 mb
buf: 321 mb
user:226 mb
free:1,1 GB

sum:406+321+226+1100=2GB

I think it´s clear.
Greetings.
jm