Showing results for 
Search instead for 
Did you mean: 

memory utilization

Regular Advisor

memory utilization

Hi guys, i wanted to know as if how do you know if the memory is being utilized to its fullest. Sometimes Insight manager takes away some memory. So, how first of all i know how much is the memory and then how do i know if it is being used to the fullest.
p.s: it is a DL380-g5 Server.
Steven E. Protter
Exalted Contributor

Re: memory utilization


You can use lsof or top to see the top memory users.

output of the free command will show unused memory allocated as buffer cache. I've seen that annoy people, but that is the dafault behavior of Red Hat distributions.

Steven E Protter
Owner of ISN Corporation
Vitaly Karasik_1
Honored Contributor

Re: memory utilization

I suggest you to start from this reading: Linux Memory Management or 'Why is there no free RAM?' Understanding Virtual Memory

Occasional Contributor

Re: memory utilization

A nice graphical tool to see where memory has gone - and if processes are growing/shrinking could be gmemusage.

This is an old IRIX tool - which has been cloned:
Honored Contributor

Re: memory utilization

cat /proc/meminfo to find physicla memory

"free -mt" output; add both free and cached whihc is equal to total free memory

Total under Mem:is total physical memory too

# free -mt
total used free shared buffers cached
Mem: 3768 3571 196 0 459 2791
-/+ buffers/cache: 321 3447
Swap: 2047 71 1975
Total: 5815 3643 2172

"UNIX95= ps -eo pid,user,sz,vsz,args|sort -nbk3" to list the processes interms of represents the mem usage and vsz is the swap usage.

UNIX95= ps -eo pid,user,pcpu,args|sort -nbk3
where pcpu valus is the cpu usage.