View previous topic :: View next topic |
Author |
Message |
RoadRunn Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 10 Jun 2004 Posts: 162
|
Posted: Fri Sep 24, 2004 2:09 pm Post subject: Possible memory leak? |
|
|
Forgive me if this is the wrong forum but it is the closest I could find for my issue. I have the following setup:
Compaq Proliant 6500
Quad Pentium II Xeon 400MHz
4GB RAM
200GB Internal RAID-5 on Smart2 Array Controller
2 External Firewire drives on add-in Firewire PCI Card
Code: | pl6500 etc # uname -a
Linux pl6500 2.6.8-gentoo-r3 #2 SMP Thu Sep 23 14:20:14 CDT 2004 i686 Pentium II (Deschutes) GenuineIntel GNU/Linux |
This server has quite a number of proccess running but the machine should be able to handle:
Apache2
Pure-FTPd
MySQL
Postfix with Amavisd-new, SpamAssassin, and Clam AV in front
Courier-IMAPD
NFS Server
BIND DNS server
DHCP Server
RSync server (Portage mirror for my internal network)
Jabber Server with multiple transports
The issue I am seeing is that memory is being drained but not being released. When I first come back from a reboot /proc/meminfo will report only 200MB being used after all services are up and I have received a few emails. The next morning it will show that I have 950MB used and continue to grow.
I do have all of my machines "emerge sync"-ing with this machine at night but that memory should be released when RSync is done and shuts down. I also have Rules_Du_Jour running to update my SA custom rule sets at night but that is a BASH script using Curl and then restarting Amavisd-new, nothing that should constantly consume memory.
Top doesn't show any process that is using that much memory and I don't know how else to trace where the leak is.
Any help would be appreciated. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
eelke Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/7412758944352043fc2090.jpg)
Joined: 17 May 2004 Posts: 406 Location: Earth, Netherlands, Friesland
|
Posted: Fri Sep 24, 2004 7:28 pm Post subject: |
|
|
There is no leak. The kernel will use any free memory as disk cache. So it will slowly fill the complete 4GB of RAM. Don't worry as soon as an application needs memory the kernel will take it from disk cache and gives it to the application. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
RoadRunn Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 10 Jun 2004 Posts: 162
|
Posted: Sun Sep 26, 2004 5:18 pm Post subject: |
|
|
Thanx for the reply. I started seeing this trend after I posted. This morning I see:
1815308 Used
298656 in buffers
1147772 for cache
If I subtracted the buffers and cache amount from the used amount, I would get around 360MB, this was the sam amount that was "used" and not by buffers or cache after 8 hrs when "used" was only 800MB.
Thanx for the sanity check. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|