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: high cpu usage since rc4  (Read 11626 times)

snicker

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
high cpu usage since rc4
« on: November 03, 2004, 11:53:46 PM »

Hi folks,
I've been using aMule for a while now. But there is one thing that bugs me a lot: since I started using it, cpu usage is at about 30-60%, which is completely incomprehensible for me. actually it is almost unacceptable.   sometimes I can't even use my computer, because all the resources are being drained.
Maybe it is my fault and I'm doing something wrong...
... can you give me tips about how to mend this problem ?
Perhaps some preferences I can change?
Or is it because I have too many downloads at the time?
I don't know... I thought rc6-7 would have this solved, but all stayed the same...
By the way: this is not a hashing problem, cpu usage is constantly up...

I'm running Debian usntable on an AMD 2400 (2Ghz clock: 700 just for aMule!!).

Thanks a lot in advance!!!
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: high cpu usage since rc4
« Reply #1 on: November 04, 2004, 10:52:26 PM »

Are you on wxWidgets 2.4 ?
Logged

snicker

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
Re: high cpu usage since rc4
« Reply #2 on: November 05, 2004, 02:19:28 AM »

how do I find that out???
I just did an 'apt-get install amule' on debian unstable....
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: high cpu usage since rc4
« Reply #3 on: November 05, 2004, 04:01:12 AM »

ls -l /usr/bin/wx*

ls -l /usr/local/bin/wx*

snicker

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
Re: high cpu usage since rc4
« Reply #4 on: November 05, 2004, 06:11:57 AM »

$ ls -l /usr/bin/wx*
-rwxr-xr-x  1 root root 342440 2004-10-19 19:29 /usr/bin/wxcas
lrwxrwxrwx  1 root root      3 2004-10-26 13:58 /usr/bin/wxvlc -> vlc

$ ls -l /usr/local/bin/wx*
ls: /usr/local/bin/wx*: not found

guess I have... right? so, now what?
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: high cpu usage since rc4
« Reply #5 on: November 05, 2004, 11:32:20 AM »

uh... you didn't compile it, didn't you? you installed from rom maybe?
If so, use wx rpms here at amule.org The wx rpms provided by distros a BROKEN (and they know, but they don't mind fixing them) and take HUGE amounts of CPU and frequent crashes.
Greetings!
Logged

snicker

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
Re: high cpu usage since rc4
« Reply #6 on: November 05, 2004, 11:41:39 AM »

no I didn't compile. I installed the '.deb' from debian repositories.
so what should I do:
- compile myself [in this case: with or without wx? how would I do that (I mean, enable or disable wx)?]
- get an rpm and install even though I'm in Debian (don't even know how to do that! or if is is 'legal'...)

by the way, thanks to all the help you've been giving me!

oh, another thing:
"The wx rpms provided by distros a BROKEN (and they know, but they don't mind fixing them) "
is this really true for debian packages??? is there a way to verify that? who is responsible for that!?
it doesn't seem like a good practice...
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: high cpu usage since rc4
« Reply #7 on: November 05, 2004, 12:51:25 PM »

The best way is to download wxWidgets-2.5.3 from http://wxwidgets.org and compile/install it yourself. (Note: do not compile with unicode if you plan to use the webserver, it's now broken for unicode builds).

After this is finished, download amule (CVS, or rc7 if you really don't like CVS) source and compile it for yourself. (use configure with --disable-optimize --enable-debug ...etc what you like -- configure --help gives a full list of switches)

This should fix your problem, my aMule here uses about 6-9% of CPU
Logged
concordia cum veritate

snicker

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
Re: high cpu usage since rc4
« Reply #8 on: November 05, 2004, 05:06:27 PM »

ok, so I downloaded:
-wxGTK-2.4.2 (here: http://download.berlios.de/amule/wxGTK-2.4.2.tar.gz)
-wxBase-2.4.2 (here: http://download.berlios.de/amule/wxBase-2.4.2.tar.gz)
then, did a:
$ apt-get install libgtk1.2-dev libcurl2-dev
(required to install sources in debian)
installed the wx (see http://www.amule.org/wiki/index.php/HowTo_Compile_In_Debian), everything went ok.
got aMule from CVS:
$ cvs -d:pserver:anonymous@cvs.amule.berlios.de:/cvsroot/amule login
(press enter when prompted for password, took me a while to figure that one out!!)
$ cvs -z3 -d:pserver:anonymous@cvs.amule.berlios.de:/cvsroot/amule co amule-cvs

then I:
$ ./autogen.sh
and then:
$ ./configure --enable-debug --enable-optimise --prefix=/usr
and, finally:
$ make

and I got:

gcc  -Wall -g -ggdb -fno-inline -D__DEBUG__ -g -O2    -o cas  cas.o  -L/usr/lib -lcurl -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz -lcryptopp
/usr/bin/ld: cannot find -lcryptopp
collect2: ld returned 1 exit status
make[2]: ** [cas] Erro 1
make[2]: Leaving directory `/home/rhwinter/compactados/aMule/amule-cvs/src'
make[1]: ** [all-recursive] Erro 1
make[1]: Leaving directory `/home/rhwinter/compactados/aMule/amule-cvs'
make: ** [all] Erro 2

which made me realise this is not the correct CVS.... wonder where it is at...
got a tarball here:
http://amule.hirnriss.net/
(today's version! 05/11/04)

$ tar -xjvf aMule.(etc).tar.bz2
$ ./configure --enable-debug --enable-optimise --prefix=/usr
$ make && make install
(make gave me A LOT of warnings, guess that is normal...)

and now, cpu usage is the same !!! :(
I even tried with the "disable-optimise" flag you mentioned, but all stayed the same...
well... maybe it did go down a bit, but still ~30-40% is too much, isn't it?!?
GonoszTopi, how many downloads do you have?
is that what influences, maybe?
Logged

snicker

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
Re: high cpu usage since rc4
« Reply #9 on: November 05, 2004, 05:14:08 PM »

and oh.... searching is not working on the cvs version...
(at least I hope that is the problem, if it is wx instead, then I'll just go and kill myself right away)
so, back to:
$ apt-get remove amule
$ apt-get install amule
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: high cpu usage since rc4
« Reply #10 on: November 06, 2004, 11:19:58 AM »

Install wxWidgets 2.5.3 instead of 2.4.2. There are many chenges in wx since 2.4.2, and a lot regarding performance.

(The only thing known to not work is the webserver, but only with gtk2 and unicode enabled build)

You will also have to recompile amule !

Note: before starting, remove ALL wxWidgets installations and previous aMule versions (this may save you some desperate hours) :)

btw, currently I have ~140 partfiles, ~500 clients to download from, 642 clients in the upload queue, and 21 shared files - CPU musage is 10.1% atm)
Logged
concordia cum veritate

snicker

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
Re: high cpu usage since rc4
« Reply #11 on: November 06, 2004, 04:14:42 PM »

ok. I downloaded wxWidgets from the wxwidgets.org
but now I don't know what I should do to install it.
in the 'from scratch' installation guide at amule's wiki the files are different.
I downloaded wxAll-2.5.3.tar.bz2 (http://prdownloads.sourceforge.net/wxwindows/wxAll-2.5.3.tar.bz2)
which means I don't have those 'base' and 'GTK' packages they mention at the wiki...
how do I install this new version, I see a INSTALL-X11.txt on the extracted dir, should I follow that?
"this may save you some desperate hours"
why ?
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: high cpu usage since rc4
« Reply #12 on: November 06, 2004, 04:28:58 PM »

To install wxWidgets:

$ ./configure --with-gtk --disable-gtk2
or
$ ./configure --with-gtk --enable-gtk2
or
$ ./configure --with-gtk --enable-gtk2 --enable-unicode

then

$ make

and as root do

$ make install
$ ldconfig

Then recompile aMule, and enjoy 8)

"this may save you some desperate hours" - because if you accidentally miss one step, aMule may configure itself to one version, and link to the other - this has happened to me once :( was real fun to find out why it doesn't do what I'd like to.

Have fun!
Logged
concordia cum veritate

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: high cpu usage since rc4
« Reply #13 on: November 06, 2004, 04:35:56 PM »

dont forget the prefix=/usr/
since amule will look in /usr/ not /usr/local/
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: high cpu usage since rc4
« Reply #14 on: November 06, 2004, 04:40:43 PM »

For me it's installed into /usr/local/, and works fine.
Logged
concordia cum veritate
Pages: [1] 2 3