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 17915 times)

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Extreme CPU-usage..
« Reply #15 on: November 15, 2003, 09:37:09 PM »

It's upload queue relates. Guess you all have lots of people on queue?
Logged

ThoR

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Extreme CPU-usage
« Reply #16 on: November 15, 2003, 10:09:47 PM »

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.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Extreme CPU-usage..
« Reply #17 on: November 16, 2003, 02:57:54 PM »

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
Logged

ThoR

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Extreme CPU-usage..
« Reply #18 on: November 17, 2003, 12:39:49 AM »

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.
Logged

AnonimoVeneziano

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 93
Re: Extreme CPU-usage..
« Reply #19 on: November 17, 2003, 02:35:02 PM »

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 ;)
Logged

Guest

  • Guest
Re: Extreme CPU-usage..
« Reply #20 on: November 18, 2003, 12:43:52 AM »

Can anyone tell how to link wxGTK to GTK1, please?

Thanks.
Logged

BigBob

  • aMule project creator.
  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 141
    • http://bigbob.fun.free.fr
Re: Extreme CPU-usage..
« Reply #21 on: November 18, 2003, 12:54:48 AM »

Hi,
Quote
Can anyone tell how to link wxGTK to GTK1, please?

Thanks.

Kincho, read the INSTALL file in aMule sources ...
Quote
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++
Logged
Creator of aMule & aStats projects

bLuTm8

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 30
    • http://www.blutmacht.com
Re: Extreme CPU-usage..
« Reply #22 on: November 18, 2003, 01:01:00 AM »

Quote
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
Logged

ender

  • Developer
  • Jr. Member
  • *****
  • Karma: 0
  • Offline Offline
  • Posts: 61
    • http://eternallybored.org/
Re: Extreme CPU-usage..
« Reply #23 on: November 18, 2003, 12:24:16 PM »

For those saying that GTK1 looks worse than GTK2, you should just change the theme. Compare the following two screenshots:

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.
Logged
Because 10 billion years' time is so fragile, so ephemeral... it arouses such a bittersweet, almost heartbreaking fondness.

superstoned

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 80
Re: Extreme CPU-usage..
« Reply #24 on: November 18, 2003, 02:55:24 PM »

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...
Logged

superstoned

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 80
Re: Extreme CPU-usage..
« Reply #25 on: November 18, 2003, 03:04:37 PM »

ok did it - had to use the tar.gz instead of the (uncompressed) folders... ;-)
Logged

AnonimoVeneziano

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 93
Re: Extreme CPU-usage..
« Reply #26 on: November 18, 2003, 03:16:13 PM »

Quote
Original von ender

For those saying that GTK1 looks worse than GTK2, you should just change the theme. Compare the following two screenshots:

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.


Whow , good , I try this immediatly!
Logged

superstoned

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 80
Re: Extreme CPU-usage..
« Reply #27 on: November 18, 2003, 06:46:15 PM »

yaw ;-) amule looks lot better now (fits in my liquid style)
Logged
Pages: 1 [2]