aMule Forum

English => en_Bugs => Topic started by: dpcris85 on June 19, 2004, 02:31:05 PM

Title: amule eats 1GB memory
Post by: dpcris85 on June 19, 2004, 02:31:05 PM
After I launch amule, my used physical memory starts slowly to grow, until my 1024 MB ram is full. Then my kernel kills amule. The memory occupation doesn't decreases.
I have Fedora Core 2, kernel 2.6.5-1.358. I have installed amule from the tar.gz following exactly the howto. I don't think it's a kernel/distro problem, because I had the same problem with SuSE 9.0 Pro, kernel 2.4.21-215
Somebody knows any solution/hint about this problem? Thanks in advance.

P.s.: This is a system log that reports the killing (under SuSE)
Jun 12 13:25:31 dpcris85-suse kernel: __alloc_pages: 0-order allocation failed (gfp=0x1d2/0)
Jun 12 13:25:31 dpcris85-suse kernel: VM: killing process kdeinit
Jun 12 13:40:28 dpcris85-suse kernel: __alloc_pages: 0-order allocation failed (gfp=0x1d2/0)
Jun 12 13:40:28 dpcris85-suse kernel: VM: killing process amule
Jun 12 13:43:36 dpcris85-suse kernel: __alloc_pages: 0-order allocation failed (gfp=0x1d2/0)
Jun 12 13:43:36 dpcris85-suse kernel: VM: killing process kdeinit
Title: Re: amule eats 1GB memory
Post by: Jacobo221 on June 21, 2004, 04:01:30 PM
Are you using gtk2 with aMule rc3? that could be the reason. aMule rc3 and earlier shouldn't be compield with gtk2, but with gtk1 isntead.
Greetings!
Title: Re: amule eats 1GB memory
Post by: dpcris85 on June 22, 2004, 09:17:16 AM
No, I'm using gtk1. at the time of compiling, I wrote:
./configure --prefix=/usr --disable-gtk2 --with-gtk

Another thing: I enabled the "overcommit memory" option of my kernel, that should avoid kernel from killing programs that are using too much memory, but this night aMule has been killed. This is driving me crazy!
Title: Re: amule eats 1GB memory
Post by: dpcris85 on June 22, 2004, 11:56:16 PM
After a lot of searching, I found that the growing of memory is a normal behaviour of the kernels > 2.4, because the new VM algorithm uses the ram to cache the hd. This also explain the faster growing after the launch of amule. But this doesn't explain why amule is killed without a reason... Now I'm trying to discover if amule does something "bad" just before the killing by tracing it with gdb. Unluckly, amule is strongly keeping up (14hrs & more)
Title: Re: amule eats 1GB memory
Post by: dpcris85 on June 23, 2004, 10:55:32 PM
I posted a backtrace (http://www.amule.org/amule/thread.php?threadid=2656&sid=) in the related section. Maybe it contains some usefuls info (I can't understand it, I'm a bad programmer - I only understood that it's something about CryptoPP)
Title: Re: amule eats 1GB memory
Post by: Jacobo221 on June 29, 2004, 11:28:17 AM
Well, it seems like it is crashing, not a kenel problem ;-)
So keep posting backtraces in the backtraces forum so the bugs disappear.
Greetings!