Operating System - HP-UX
1834494 Members
3268 Online
110067 Solutions
New Discussion

Memory Usage vs Free Memory

 
SOLVED
Go to solution
Nikee Reddy
Regular Advisor

Memory Usage vs Free Memory

Hello,

IS there a way for me to find out the current system physical memory usage and free memory ?

Thanks,
Nikee
4 REPLIES 4
RAC_1
Honored Contributor
Solution

Re: Memory Usage vs Free Memory

glance -m

echo "free_mem/D|adb -k /stand/vmunix
grep -i physical /var/adm/syslog/syslog.log -- to get physical RAM on system.
vmstat 5 5
Check free mem column. Unit is page. One buffer page is 4096k.

Anil
There is no substitute to HARDWORK
G. Vrijhoeven
Honored Contributor

Re: Memory Usage vs Free Memory

Hi Nikee,

The best way is to use a tool called glance. If you do not have it installed ( 60 days free ) you could use top, vmstat, ps, swapinfo but those tools do not give you a clear output.

HTH,

Gideon
Sundar_7
Honored Contributor

Re: Memory Usage vs Free Memory

Hi,

# echo "freemem/D" | adb -k /stand/vmunix /dev/kmem

The output is the free memory in pages. Multiply the resulting number with 4 to get the free memory in Kbytes.

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

The output is the total memory in pages.Multiply the resulting number with 4 to get the free memory in Kbytes.

Used memory=Total memory-Free memory

Thanks,

Sundar.
Learn What to do ,How to do and more importantly When to do ?
Olivier Decorse
Respected Contributor

Re: Memory Usage vs Free Memory

Just want to add that kmeminfo (in /usr/contrib/Q4) is very useful :
Example on a A400 server (display containts tab) :

Physical memory usage summary (in pages):
Physmem = 131072 Available physical memory:
Freemem = 57764 Free physical memory
Used = 73308 Used physical memory:
System = 46487 by kernel:
Static = 6465 for text and static data
Dynamic = 20635 for dynamic data
Bufcache = 19387 for file-system buffer cache
User = 28946 by user processes
Uarea = 1136 for thread uareas
Disowned = 256 disowned pages

Olivier.
They say "install windows 2k, xp or better", so i install unix !