Operating System - Linux
1830241 Members
1409 Online
109999 Solutions
New Discussion

Unknown high memory usage for Red Hat Linux

 
SOLVED
Go to solution
Kenneth Leung_2
Frequent Advisor

Unknown high memory usage for Red Hat Linux

My red hat server suffer high memory usage. There is 2 GB Phy mem, but only 70 MB free. With the command "free", I found the result as follows:

total: 2574344
used: 2503608
free: 70736
shared: 290624
buffers: 370832
cached: 1622856 <---????

what did the "cached" mean?? Can anyone help me? Many thanks....



6 REPLIES 6
Patrick Terlisten
Honored Contributor
Solution

Re: Unknown high memory usage for Red Hat Linux

Hello Kenneth,

that's a normal behavior. Linux uses unused memory as filesystem cache. If an application is allocating memory, the memory used as filesystem cache will be freed.

And don't forget kids: Unused memory is wasted memory. :)

Regards,
Patrick
Best regards,
Patrick
Vitaly Karasik_1
Honored Contributor

Re: Unknown high memory usage for Red Hat Linux

it should be in linux FAQ.
see, for example, this thread http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1029490
Kenneth Leung_2
Frequent Advisor

Re: Unknown high memory usage for Red Hat Linux

Thanks a lot.
Alpha977
Valued Contributor

Re: Unknown high memory usage for Red Hat Linux

Hello!

Normally Linux take all the memory, for expamle, if you see "top" you can see a bit of free memory, but with "free" you must see the real free memory (+ / - buffer cache)
If this value is too lillte, you have a problem with memory.

See also "sar" for see the load of machine. Is load it too high (4.00 -> ...) a system crash is possibile.
Ragu_3
Trusted Contributor

Re: Unknown high memory usage for Red Hat Linux

Hope you know about "vmstat". Use that and repeatedly takedown the values of "si" and "so", they should tend to zero; if not then your cache is being swapped out to the hardisk swap area. At that point in time, you have to go in for a memory increase upgrade!
Debian GNU/Linux for the Enterprise! Ask HP ...
Huc_1
Honored Contributor

Re: Unknown high memory usage for Red Hat Linux

I use the following command once in a while to check how system is performing... or when i try/start a new prog/applic to see how it inpacts on the system mem resouces.

watch -d vmstat

Hope this helps you

enjoy life.

Jean-Pierre Huc

Smile I will feel the difference