aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: cpu usage issues  (Read 3372 times)

Painkiller Jane

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
cpu usage issues
« on: March 18, 2004, 04:33:27 PM »

hey!
1st of all: thnx for taking the effort to make a usable X-platform mule.

i experience a problem concerning the cpu usage of amule on my intel/linux box/kde 3.1.
1st i tried the 1.2.6 rpm package from you download page.
that version starts with ~12% cpu usage (4 files in transfer ~ 200 sources) but after a couple of hours the cpu usage rises to > 70% and finally to 100%.
the gui becomes very unresponsive while the 'core' (the up/downloading) still does it's work ok.
so i grabbed the cvs from 17th of march and compiled it with --disable-debug --enable-optimise to see if that helps. but i get the same result.

i've seen some posts dealing with cpu usage saying this can be caused due to wrong linking with gtk2 instead of gtk1. i've used the wx* rpm packages from your download page and followed deltaHF's instructions (thnx for that deltaHF) so i guess i should be on the right gtk side here.

anyways, here's some info maybe i miss something? is it all installed correctly?

get-info.sh output
Quote
I.   Development Environment

     A. Compiler Info
        Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.1/specs Konfiguriert mit: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux Thread model: posix gcc-Version 3.3.1 (SuSE Linux)

     B. wxWindows Info
        Version: 2.4.2
        -pthread -lwx_gtk-2.4

     C. GTK Info
        GTK 1: 1.2.10
./get-info.sh: line 1: pkg-config: command not found
        GTK 2:

II.  System Environment

     A. CPU Info
        Type:  GenuineIntel
        Model: Celeron (Coppermine)
        Speed: 696.664
        BMips: 1376.25
        Flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse

     B. Memory Info
        Total:   255832 kB
        Unused:  148188 kB

     C. Kernel Info
        Version: 2.4.21-192-default

     D. Library Info
./get-info.sh: line 33: temp_sharedlibs: Keine Berechtigung
        wxWindows library: libwx_gtk-2.4.so (libc6) => /usr/lib/libwx_gtk-2.4.so libwx_base-2.4.so (libc6) => /usr/lib/libwx_base-2.4.so

wx* stuff
Quote
jane@killroy:~> ls -l /usr/bin/wx*
-rwxr-xr-x    1 root     root         4864 2003-11-28 13:08 /usr/bin/wxbase-2.4-                                                                            config
lrwxrwxrwx    1 root     root           26 2004-03-18 06:23 /usr/bin/wxbase-conf                                                                            ig -> /usr/bin/wxbase-2.4-config
lrwxrwxrwx    1 root     root           25 2004-03-18 06:22 /usr/bin/wx-config -                                                                            > /usr/bin/wxgtk-2.4-config
-rwxr-xr-x    1 root     root         5159 2003-09-21 15:14 /usr/bin/wxgtk-2.4-c                                                                            onfig
jane@killroy:~> ls -l /usr/lib/libwx*
lrwxrwxrwx    1 root     root           23 2004-03-18 05:38 /usr/lib/libwx_base-2.4.so -> libwx_base-2.4.so.0.                                              1.1
lrwxrwxrwx    1 root     root           23 2004-03-18 05:38 /usr/lib/libwx_base-2.4.so.0 -> libwx_base-2.4.so.                                              0.1.1
-rwxr-xr-x    1 root     root      1374861 2003-11-28 13:08 /usr/lib/libwx_base-2.4.so.0.1.1
lrwxrwxrwx    1 root     root           22 2004-03-18 05:33 /usr/lib/libwx_gtk-2.4.so -> libwx_gtk-2.4.so.0.1.                                              1
lrwxrwxrwx    1 root     root           22 2004-03-18 05:30 /usr/lib/libwx_gtk-2.4.so.0 -> libwx_gtk-2.4.so.0.                                              1.1
-rwxr-xr-x    1 root     root      5732291 2003-09-21 15:14 /usr/lib/libwx_gtk-2.4.so.0.1.1
« Last Edit: March 18, 2004, 04:37:41 PM by Painkiller Jane »
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: cpu usage issues
« Reply #1 on: March 18, 2004, 04:45:09 PM »

tell me your prefs -> tweaks settings plz

greets

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: cpu usage issues
« Reply #2 on: March 18, 2004, 05:05:52 PM »

I fear a enable verbose ;)
Logged

Painkiller Jane

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: cpu usage issues
« Reply #3 on: March 18, 2004, 05:14:53 PM »

hi guys,

thnx for very fast replies. :)
max con per 5: 30
verbose checked (good guess, kry;) that's a known problem?)
auto take ed2k checked
show transfer unchecked
filebuffer: 240000
queue size: 500
server refresh: 30 mins
u/l d/l list refresh unchecked
u/l d/l refresh time: realtime

i will try without verbose log output now. will get back to you if i experience any changes.

cheers,

pkj
« Last Edit: March 18, 2004, 05:17:41 PM by Painkiller Jane »
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: cpu usage issues
« Reply #4 on: March 18, 2004, 05:22:42 PM »

enable verbose kills cpu usually. Imagine you have 40 sources disconection per second, and amule has to add it to dialog ;) And sec ident debug output, and blahblahblah
Logged

Painkiller Jane

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: cpu usage issues
« Reply #5 on: March 18, 2004, 05:33:00 PM »

i see.
well, i'll report back here if the log really was the trouble maker.

thnx,

pkj
Logged

Painkiller Jane

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: cpu usage issues
« Reply #6 on: March 18, 2004, 10:02:14 PM »

yupp, it seems that switching off the verbose log solves the problem. :)
runs a couple of hours and still cpu usage < 12%.

never would have guessed that verbose can cause such a high cpu usage.
old win32 emule never had any probs in that department.

cheers,

pkj
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: cpu usage issues
« Reply #7 on: March 18, 2004, 11:17:54 PM »

We'll try to fix it, for sure.
Logged