Operating System - Linux
1829608 Members
1400 Online
109992 Solutions
New Discussion

Re: Memory staying in cached status

 
Andrew Kaplan
Super Advisor

Memory staying in cached status

Hi there --

I am running Fedora Core 5 that was hardened Bastille Linux on a system with 1.5 GB of RAM. The system functions as an e-mail server running Sendmail along with MailScanner, SpamAssassin, and ClamAV.

I have noticed over time, via the free -m command, that the amount of cached RAM is going up. This results in the amount of free memory going down to where there is almost nothing left. The end result has been the system to periodically hanging, which forces me to reboot the server.

What can I do to correct this problem? Thanks.
A Journey In The Quest Of Knowledge
2 REPLIES 2
Atul Gautam
Valued Contributor

Re: Memory staying in cached status

Hi Andrew,

Please forward the output for the following commands ---

1) free -m
2) cat /proc/meminfo




Atul
Patrick Terlisten
Honored Contributor

Re: Memory staying in cached status

Hello Andrew,

are you sure that the amount of free memory is the root cause for your problem? Linux uses free memory as cache. Unused free memory is wasted memory. :) If the amount of free memory is low, Linux will reduce the memory that is used as cache. There is another strange behavior in the memory management: There ist free memory, but the kernel is using swap-space. This behavior is called "swapiness" and can be configured in the /etc/sysctl.conf.

Please check your logs, take a look at /var/log/messages.

Regards,
Patrick
Best regards,
Patrick