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

Author Topic: Extreme CPU-usage..  (Read 17938 times)

Guest

  • Guest
Extreme CPU-usage..
« on: November 06, 2003, 12:13:03 PM »

Is aMule supposed to use 100% CPU all of the time?
It starts by using around 30-60% for about 30 minutes, then it goes up to 90% for another 30 minutes, then keep maxing out at 99-100% CPU the rest of the time and downloads are going slower and slower.. After a few hours it uses 200-300MB of RAM (even in 1.1.2) xMule, lMule and mldonkey has similar problems..
Is the eMule/edonkey protocol really THAT complex? Or is the code just unoptomized and leaking?  Has anyone done any profiling of the code to see where it spends most of its CPU-time?
I have a dual Athlon-MP 2x1.2Ghz and 512 MB RAM..
Logged

BigBob

  • aMule project creator.
  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 141
    • http://bigbob.fun.free.fr
Re: Extreme CPU-usage..
« Reply #1 on: November 06, 2003, 03:57:24 PM »

Hi Tuxie,

How do you have compiled aMule (any flags) ?

A++
Logged
Creator of aMule & aStats projects

Guest

  • Guest
Re: Extreme CPU-usage..
« Reply #2 on: November 06, 2003, 04:05:38 PM »

I've tried both with "-O3 -march=athlon-mp -fomit-frame-pointer" and "-Os -march=athlon-mp" .. the first with just ./configure (default gentoo install) and the second with --disable-debug --enable-optimize
using gcc 3.3.2
Logged

Guest

  • Guest
Re: Extreme CPU-usage..
« Reply #3 on: November 06, 2003, 09:21:28 PM »

I can confirm this behaviour.

In fact amule has the problems inherited from xmule :
- memory leaks leading to full utilisation
- high cpu usage =>100 %
and finaly i freezes usually 10 to 24 hours after launch time.

I'm running Mandrake 9.2
CPU = Athlon 1000 MP
Ram = 384 MO
Wxgtk 2.2.4

aMule was compiled with the standard flags as shown on main page.

I can post more info if needed.

By the way, I tried to compile with optimisation for athlon with this :
./autogen.sh && CXX="g++ -Os -march=athlon-mp" CC="gcc -Os -march=athlon-mp" ./configure --disable-debug --enable-optimise

Compilation was ok but amule crashed on startup.

Is "processor" optimisation a way to decrease CPU usage ?

It seems to me that memory leaks are the main problem here.

Continue the good work

Phileo
Logged

cyb

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
    • http://www.okee.org
Re: Extreme CPU-usage..
« Reply #4 on: November 06, 2003, 11:34:13 PM »

well i have this behaviour after one day only :

at start amule take around 15%(even less) of CPU time and after hours it take more and more , after a day: around 70 and when it take too much amule crash ....

i have seen on my athlon 1Ghz and a duron 700Mhz

well it seem too take too lot of memory.

if someone have a good flag for amule compilation, i'll take them with pleasure.

PS:
version 1.1.0 running on my Athlon 1Ghz
version 1.1.1b running on my duron 700Mhz
Logged
-= Only Amiga Makes It Possible =-

Guest

  • Guest
Re: Extreme CPU-usage..
« Reply #5 on: November 06, 2003, 11:43:28 PM »

Same thing here: amd processors and high memory/cpu usage.

running 1.1.1b and i will try 1.1.2 soon
Logged

Guest

  • Guest
Re: Extreme CPU-usage..
« Reply #6 on: November 09, 2003, 12:11:32 PM »

Not only with AMD CPUs...

I'm running a Dual 750MHz PII Server with 1GB RAM and Redhat 9.

After some hours (usually ~24) CPU utilization is between 75 and 99%.
And it's not only on one CPU... It's happily changing from one CPU to
the other, keeping the machine's load around 0.9.
Memory consumption is not so funny as well: aMule is eating upo all
available memory and is just short from using swap space.

My solution is the reboot the server at least every second day, which
is not acceptable for a PDC/Fileserver/Proxy ...

BTW: I wasn't able to compile, so I installed the RPM.

Blondie
Logged

goga

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
similar problem.
« Reply #7 on: November 11, 2003, 06:58:23 AM »

version 1.1.2

i have similatr problem. (freezing after a while the whole windows (xwin)
kernel redhat 9.0 latest uptate
also same thing on 2.6.0-test9, 2.6.0-test5, 2.6.0-test7 AMD k6-iii 450mhz

basically amule works great for a few hous (3, 4 sometimes 6)
the load average sometimes exceeds 7.2 after 6 hors or so
then either linux ittself freeses from overload and frreses the xwindow (kde or gnome) or it freses the vncserver virtual desktop.
Logged

superstoned

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 80
Re: Extreme CPU-usage..
« Reply #8 on: November 11, 2003, 02:36:47 PM »

amule 1.1.2
linux 2.4.20xfs (debian, unstable and even some experimental packages)
AMD athlon 1ghz
256mb ram
amule uptime 20:34 hours
cpu(top): goes up and down between 5 and 15%

my upload is at its max (5) download doesnt come higher than some 10/sec and on average I upload more than I download but thats ok for me
I can wait as long as it doesnt crash ;-)

I must say last week amule didnt survive long, crashed most of the time after just a few mins. but I apt-get updated, to amule (debian) 1.1.2-3 and it works very fine now.

and this site used to crashe konqeror if I hit submit (but the post is done), so I posted about this on this site, and it didnt crash that time... Me very very curious what will happen if I hit submit this time ;-)

maybe I have to complain about the crashes every post i make so it wont crash  :twisted:
Logged

superstoned

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 80
Re: Extreme CPU-usage..
« Reply #9 on: November 11, 2003, 02:38:34 PM »

didnt crash 8)

(notice I dont complain this time, just to try out ;))
Logged

Guest

  • Guest
the same
« Reply #10 on: November 14, 2003, 09:27:44 AM »

i've got the same problem.
my cpu load raise up to 100% then aMule freeze. (after two hours)
my cflags : -march=athlon-xp -O2 -pipe -fomit-frame-pointer -ffast-math -fprefetch-loop-arrays
on AMD duron 1,4 Ghz, and via kt133a.
 :cry:
Logged

newbeewan

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
aMule 1.1.2
« Reply #11 on: November 14, 2003, 11:49:10 AM »

Hi,
I have the same pb, cpu become very hight(50~90%) and 200-500 Mo of memory used after 30 minutes of use... I stop it after that, because my box start to swap, and becoming very low... :(
My version :
Self compiled ( gcc3.2.2 Mandrake/kernel 2.4.21 ) Athlon1300/512Mo
Used option for GTK1 into the INSTALL file...
See you
Logged

superstoned

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 80
Re: Extreme CPU-usage..
« Reply #12 on: November 14, 2003, 01:01:12 PM »

afaik, you shouldnt compile amule with any optimizations, this causes problems. the debian deb's are working very well for me, just shut down amule after running another 20 hours.

might help: I dont "hide" the main window, I've seen it crash a few times with hided main window, but never when it was shown (on some desktop, minimized, so its not that big problem). u guys might try, and the devz may check the hide-code.
Logged

cyb

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
    • http://www.okee.org
Re: Extreme CPU-usage..
« Reply #13 on: November 14, 2003, 06:06:16 PM »

I need to try that, I'm always hiding aMule

btw it seems that the CPU is overload when download rate are high, without Internet connection amule take less 1% of CPU... it seems when I run amule without downloading something, it take less cpu ...

However memory taken, always grown with time, even if I'm not connected nor downloading.

My uptime record is 5 days on the strongest computer and 1 day and half on the weakest, then i can't complain myself totally ;)

keep the good work.
Logged
-= Only Amiga Makes It Possible =-

Guest

  • Guest
Re: Extreme CPU-usage..
« Reply #14 on: November 15, 2003, 09:06:46 PM »

Known problem.

Compile wxgtk from a source tarball and make sure it links against gtk1.

Admitted amule looks less pretty, but it works fine after that.
Logged
Pages: [1] 2