aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2] 3

Author Topic: Too high memory usage  (Read 13786 times)

Arichy

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 224
Re: Too high memory usage
« Reply #15 on: September 18, 2005, 10:33:28 PM »

Quote
Originally posted by Kry
Try with wxCVS

Using newer wx-gtk seems to be the solution.

I have compiled wx-cvs-gtk from 2005-09-09 and aMule-CVS from 2005-09-06.

aMule is now running for five days.

In the first some ten hours the memory and swap usage increased, but then it got stable at 82 of 92 MB RAM and 47 of 94 MB swap.
Logged
Gentoo i686

Arichy

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 224
Re: Too high memory usage
« Reply #16 on: September 19, 2005, 09:12:58 AM »

I have to revoke my posting from yesterday.

As I see, aMule crashed just 30 Minutes after my posting yesterday, at 23:03.

There is just one error line in /var/log/messages:
Code: [Select]
Sep 18 23:03:20 localhost kernel: __alloc_pages: 0-order allocation failed (gfp=0x1d2/0)
After automatic restart at 23:04 (script), aMule is running faster again.

Memory usage is now (09;15) 63 MB RAM (of 92 MB) and 45 MB swap (of 94 MB).
Logged
Gentoo i686

Arichy

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 224
Re: Too high memory usage
« Reply #17 on: September 20, 2005, 06:14:46 AM »

aMule crashed again after 17h running.

No messages on that in /var/log/messages or /var/log/syslog
Logged
Gentoo i686

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Too high memory usage
« Reply #18 on: September 22, 2005, 04:31:28 AM »

This is probably a leak in either aMule or wx. As you use few RAM, the leak is more serious in your system.
Logged

zekkerj

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: Too high memory usage
« Reply #19 on: September 23, 2005, 08:34:47 AM »

Hi all, same problem here.

aMule starts smoothly, after a few days it eats all of my available memory. ;(

Output of "amule --version":
Quote
aMule 2.0.3 using wxGTK2 v2.5.4 (OS: Linux)

Celeron 1GHz,
RAM 256MiB
Swap 265MiB

Output of "uname -a":
Quote
Linux ithilien.casa 2.6.11-72032U10_17clcustom #1 Tue May 3 21:29:30 BRT 2005 i686 unknown unknown GNU/Linux

Is there any debugging switch I can use to build a trace of memory allocation?
« Last Edit: September 23, 2005, 08:37:07 AM by zekkerj »
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Too high memory usage
« Reply #20 on: September 23, 2005, 11:54:07 AM »

Use wx 2.6.2
Logged

zekkerj

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: Too high memory usage
« Reply #21 on: September 23, 2005, 10:52:12 PM »

Geeeeez, another recompile...  :))
Logged

lupz

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 54
use valgrind
« Reply #22 on: September 25, 2005, 09:06:53 PM »

if you can't find the memory leak, who has a powerful machine to keep up an amule istance two days using valgrind ?
Valgrind
Code: [Select]
valgrind --leak-check=full /path/to/amule
valgrind --tool=addrcheck --leak-check=full /path/to/amule (it's about twice faster but less accurate)
it will find a lot of leaks

the machine on which it runs, should have a powerful processor and *a lot* of RAM

it runs about 10 times slower than the real thing.. but on exit it reports all the memory that the software has wasted with the backtrace of the call that lost it!
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Too high memory usage
« Reply #23 on: September 25, 2005, 09:32:49 PM »

It's already fied on wx2.6.2, read some posts above. It was not aMule.
Logged

lupz

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 54
Re: Too high memory usage
« Reply #24 on: September 25, 2005, 10:47:26 PM »

Quote
Originally posted by Kry
It's already fied on wx2.6.2, read some posts above. It was not aMule.
I suspected something like that because on my run on valgrind a lot of wasted space resulted from lost references of wxStringBase objects.

I've compiled over wx 2.6.2 but it crashes on start some nigthly ago.. i'll try again with tomorrow build
Logged

Arichy

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 224
Re: Too high memory usage
« Reply #25 on: October 01, 2005, 02:06:04 PM »

Because wx-gtk CVS from 2005-09-09 did not help, I fell back on aMule 2.0.3 from the dude.gemil.de Debian packages.

With that, there are nor memory problems, only 50% usage, stable.
Logged
Gentoo i686

Arichy

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 224
Re: Too high memory usage
« Reply #26 on: October 26, 2005, 05:10:58 PM »

Quote
Originally posted by Kry
It's already fied on wx2.6.2, read some posts above. It was not aMule.

Still problems:

With aMule-CVS-2005-10-22 source code from amule homepage compiled with libwxgtk 2.6.2-1 from dude.gemil.de debian package repository the memory gets eaten up (from 47 to 77 MB of 92 MB RAM in 48h, then slower decreasing free memory until crash after some days).

With aMule-2.0.3 source code from amule homepage compiled with the same libwxgtk 2.6.2-1 from dude.gemil.de debian package repository the memory usage is stable low at 32 MB of 92 MB RAM.
Logged
Gentoo i686

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Too high memory usage
« Reply #27 on: October 26, 2005, 09:17:12 PM »

It's CVS. Might have leaks.
Logged

Arichy

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 224
Re: Too high memory usage
« Reply #28 on: December 02, 2005, 09:38:12 AM »

Quote
Originally posted by Kry
It's CVS. Might have leaks.

Unfortunately, it seems to have leaks indeed:

aMule-CVS from 2005-11-30 (self compiled) with wxgtk 2.6.2 package from dude.gemil.de on Debian Sarge (Kernel 2.4.27):

After 36h running:
80 MB of 92 MB RAM used
73 MB of 94 MB Swap used

Computer awfully slow (no much time and it will crash I think)

Greets, Arichy

PS Do not have a powerful computer for using valgrind (it is an Pentium III).
If there is another possibility for me to help You, please tell me.
Logged
Gentoo i686

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Too high memory usage
« Reply #29 on: December 02, 2005, 01:26:57 PM »

Can you run "amule --version" and paste the output?
Logged
Pages: 1 [2] 3