Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Possible memory leak?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
RoadRunn
Apprentice
Apprentice


Joined: 10 Jun 2004
Posts: 162

PostPosted: Fri Sep 24, 2004 2:09 pm    Post subject: Possible memory leak? Reply with quote

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
View user's profile Send private message
eelke
Guru
Guru


Joined: 17 May 2004
Posts: 406
Location: Earth, Netherlands, Friesland

PostPosted: Fri Sep 24, 2004 7:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
RoadRunn
Apprentice
Apprentice


Joined: 10 Jun 2004
Posts: 162

PostPosted: Sun Sep 26, 2004 5:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum