aMule Forum
English => en_Bugs => Topic started by: Guest 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..
-
Hi Tuxie,
How do you have compiled aMule (any flags) ?
A++
-
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
-
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
-
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
-
Same thing here: amd processors and high memory/cpu usage.
running 1.1.1b and i will try 1.1.2 soon
-
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
-
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.
-
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:
-
didnt crash 8)
(notice I dont complain this time, just to try out ;))
-
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:
-
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
-
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.
-
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.
-
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.
-
It's upload queue relates. Guess you all have lots of people on queue?
-
I've got the same problem on debian sid with the amule debs since 1.1.0. It won't work well after some time.
First, it'll use 100% CPU for about two seconds, then low CPU for about 2 seconds and so on. When amule uses 100% CPU, not even typing text into config dialog widgets works (it will be shown after 2 seconds).
Then, after some hours, it'll use 100% CPU and will take 5-10 seconds to respond to clicks or redraw the UI.
Downloads drop down, Upload goes to less than 1/2 (which usually never happens), in sweeps and pauses.
Upload is being shown wrong (10K, and it IS 3-5K then), Download seems okay.
BUT: I've got a selfcompiled 1.1.0, which didn't have this problem when I used it, but I just tested it and it does now. Could it be that the evil CPU eating bug is in a library amule uses?
Because the UI doesn't respond when it sweeps the CPU, maybe wx? Wouldn't be the first time...
Debian sid, Athlon XP 1700, HTB Traffic shaper.
It worked before 1.1.0.
-
You're using debian sid as me, and I think high cpu usage it Upload-Queue relaed (I'm pretty sure) and upload queue is a wxArray and...
Yeah, could be wx's fault
-
More Info:
I just checked the wx debian changelogs and 25 Oct 2003 is the date of the most recent wx update. This roughly fits the time since when I have this CPU terror.
I rechecked versions down to 1.1.0, which didn't have this problem before, selfcompiled, from the external apt source, natively from debian sid and selfcompiled versions. All do show the same behaviour.
Sadly, I don't have older wx packages in my apt cache, so I can't test it against an older version of wx. The newest version in sid is 2.4.2.4 and the one before that is 2.4.1.2.
The wx changelog doesn't show anything suspicious to me.
It's exactly the same with xmule, which I just checked, up to v1.7.0.
-
Yes, is a problem of wxGTK linked to GTK2 Libs .
I've now tried to link wxGTK to GTK1 and now the max CPU usage that I've got is 4 % and 5% memory (after 7 hours)
Thanks
Marcello
PS= Is not beautiful as GTK2 but works ;)
-
Can anyone tell how to link wxGTK to GTK1, please?
Thanks.
-
Hi,
Can anyone tell how to link wxGTK to GTK1, please?
Thanks.
Kincho, read the INSTALL file in aMule sources ...
HOW TO COMPILE WXWINDOWS
------------------------
Only GTK1 is supported. Don't try GTK2 anymore. wxWindows isn't ready for it.
For GTK1:
./configure --prefix=/usr --disable-gtk2 --enable-timedate --enable-gui --enable-protocol --enable-http --enable-ftp --enable-resources --enable-prologio --disable-debug --enable-final --enable-timer --with-gtk --disable-profile
A++
-
Original von Han
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.
so it is..... the memory leaks located in wxgtk-library. other applications using this lib are more simple and not build for running 24/7.
so in fact: xmule, amule, anymule running x11 with wxgtk could have this problem.
compiling wxgtk for urselfe should help in any solutions,
-------------------------------------------------------------------------------------------------------
otherwise u must drastical reduce ur settings in amule (limit concurrently downloads < 25, don't share more than 300 files, maxconnections < 500, max sources (hardlimit) < 300, max connection per 5 s < 20, disable statistics (bars to left corner), set file buffer to max (this reduce hdd activity), and dont make queue greater then 2000)
with this settings ur amule/xmule should running 4 weaks without restarting
-
For those saying that GTK1 looks worse than GTK2, you should just change the theme. Compare the following two screenshots:
(http://deepthought.ena.si/imgs/gtk1.png) (http://deepthought.ena.si/imgs/gtk2.png)
Left is GTK1, right is GTK2, both use the XLiquid_GTK-1.0.3 theme.
Nevertheless, I'll keep using GTK2 with wxGTK, I like the smoothened fonts :mrgreen:
To switch the GTK+ themes easier, use GTK Theme Switch (http://www.muhri.net/nav.php3?node=gts).
-
I like the theme too, but how to install it??? downloaded it, and used 'install new theme' in GTK theme switch, but it just crashes...
-
ok did it - had to use the tar.gz instead of the (uncompressed) folders... ;-)
-
Original von ender
For those saying that GTK1 looks worse than GTK2, you should just change the theme. Compare the following two screenshots:
(http://deepthought.ena.si/imgs/gtk1.png) (http://deepthought.ena.si/imgs/gtk2.png)
Left is GTK1, right is GTK2, both use the XLiquid_GTK-1.0.3 theme.
Nevertheless, I'll keep using GTK2 with wxGTK, I like the smoothened fonts :mrgreen:
To switch the GTK+ themes easier, use GTK Theme Switch (http://www.muhri.net/nav.php3?node=gts).
Whow , good , I try this immediatly!
-
yaw ;-) amule looks lot better now (fits in my liquid style)