aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: aMule and multi-core processors  (Read 5998 times)

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
aMule and multi-core processors
« on: July 22, 2010, 01:47:14 PM »

If I upload a very much files so amule sometimes freeze but I watch that that one use one core only on my AMD Athlon quad-core processor.
Can I run aMule that that app use 2 or all 4 core of my CPU?

Thanks.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule and multi-core processors
« Reply #1 on: July 22, 2010, 09:57:27 PM »

No. Almost all activity happens in the main thread.
Have you activated "Files/Try to transfer full chunks to all uploads" ? If not, do it. It reduces CPU usage.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
Re: aMule and multi-core processors
« Reply #2 on: July 23, 2010, 10:50:16 AM »

No. Almost all activity happens in the main thread.
Have you activated "Files/Try to transfer full chunks to all uploads" ? If not, do it. It reduces CPU usage.

There's already that one as marked.

anyway..
Code: [Select]
top - 12:35:37 up 23:00,  9 users,  load average: 0.64, 1.32, 1.30
Tasks: 258 total,   2 running, 256 sleeping,   0 stopped,   0 zombie
Cpu0  : 21.4%us,  5.8%sy,  0.0%ni, 72.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu1  : 26.9%us,  5.4%sy,  0.0%ni, 63.6%id,  3.5%wa,  0.3%hi,  0.3%si,  0.0%st
Cpu2  : 18.6%us,  4.7%sy,  0.0%ni, 73.8%id,  0.9%wa,  0.3%hi,  1.6%si,  0.0%st
Cpu3  : 16.4%us,  4.7%sy,  0.0%ni, 73.3%id,  3.8%wa,  0.0%hi,  1.9%si,  0.0%st
Mem:   6126480k total,  6058808k used,    67672k free,   119504k buffers
Swap:        0k total,        0k used,        0k free,  4780676k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                              
27321 slvr      20   0  603m 110m  17m R 58.2  1.8   2:26.36 amule
.........

aMule freezes periodically.
upload speed ~2 mBps

I can give a big value of speed for upload slots (about 20 kBps instead 2-5 kBps). It helps. But then upload speed falls to ~ 1-0.5 mBps.

I had read Documentation but there's only  generalized advices so as upload speed and the end. Maybe I were badly searching:
http://forum.amule.org/index.php?topic=15945.0:
Quote
Set a smart upload limit[/u]
As a rule it is important that on ADSL neither the uplink nor the downlink be used at 100% capacity. Usually 90-95% is a good idea (taking into account overheads too)
if your not up to testing your own connection using 75%-90% of your 'real' upload capacity will be fine
test at http://speedtest.net/ for example:

367 kb/s / 8 * 0.75 = 34 kB/s rounded down to 30 kB/s

upload 30 kB/s (make sure the upload in the stats tab is a straight line)
slot allocation 3 or 5 kB/s works good

IMO a stable slower upload is better then hitting your limit all the time.

I so and changed. A speed of my "glass" is ~ 3 mBps (~25 mbps).

the app.. works as "slideshow".
« Last Edit: July 23, 2010, 10:51:48 AM by veranyon »
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule and multi-core processors
« Reply #3 on: July 23, 2010, 08:38:43 PM »

What version are you running? What OS? Could you try the SVN version?
What are your settings for "upload speed" and "slot allocation"?
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
Re: aMule and multi-core processors
« Reply #4 on: July 24, 2010, 06:58:22 AM »

What version are you running? What OS? Could you try the SVN version?
What are your settings for "upload speed" and "slot allocation"?

LANG=en_US yum list *amule*
Loaded plugins: presto, refresh-packagekit
Installed Packages
amule.x86_64                                                                         2.2.6-1.fc12                                                                    @rpmfusion-free
amule-nogui.x86_64                                                                   2.2.6-1.fc12                                                                    @rpmfusion-free
Available Packages
xchat-amule.noarch                                                                   2.2.6-1.fc12                                                                    rpmfusion-free

uname -a
Linux .... 2.6.33.6-147.fc13.x86_64 #1 SMP Tue Jul 6 22:32:17 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

Fedora 13 x86_64

Upload Speed: 1700 kB/s
per slot: 5 kB/s
« Last Edit: July 24, 2010, 07:00:07 AM by veranyon »
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule and multi-core processors
« Reply #5 on: July 24, 2010, 10:55:35 AM »

Well, with 5 kB/s per slot and 1700 kB/s you get 340 slots. That's way too much. Try 50 kB/s per slot.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
Re: aMule and multi-core processors
« Reply #6 on: July 24, 2010, 05:33:42 PM »

Well, with 5 kB/s per slot and 1700 kB/s you get 340 slots. That's way too much. Try 50 kB/s per slot*****.

Then upload speed is falling to ~500 KB/s. 500 KBps. +- 200 KB

And amule is periodically freezing anyway. And after that***** changing
Now I' waiting when that app will coming to live about 10 minutes. there's working nothing now.

helps when I kill that app. from terminal (killall amule)
or ps -auxw | grep amule
slvr     26979 76.3  3.3 854820 202820 ?       Rl   19:18  30:30 amule
..
kill -9 26979

the one freezes after about 15 minytes after start with 1700 KBps / 50 KBps per slot settings.
« Last Edit: July 24, 2010, 06:07:01 PM by veranyon »
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule and multi-core processors
« Reply #7 on: July 24, 2010, 06:31:30 PM »

There is a memory leak problem with ultra-high-speed uploaders like you in 2.2.6.
Can you try the SVN version?
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: aMule and multi-core processors
« Reply #8 on: July 24, 2010, 11:02:12 PM »

Can you try the SVN version?
There are prebuilt (32-bit) binaries at http://www.webalice.it/iz0bbz/amule.html
If you need 64-bit binaries, you'll have to compile it (don't know how up-to-date the instructions are...)
Logged
concordia cum veritate

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
Re: aMule and multi-core processors
« Reply #9 on: July 25, 2010, 09:21:12 AM »

There are prebuilt (32-bit) binaries at http://www.webalice.it/iz0bbz/amule.html
If you need 64-bit binaries, you'll have to compile it (don't know how up-to-date the instructions are...)

aMule SVN Snapshot: rev. 10257

That one periodically faults.
Logged

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
Re: aMule and multi-core processors
« Reply #10 on: July 25, 2010, 10:58:16 AM »

... Or freezes anyway



« Last Edit: July 25, 2010, 11:12:31 AM by veranyon »
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule and multi-core processors
« Reply #11 on: July 25, 2010, 01:21:47 PM »

aMule SVN Snapshot: rev. 10257
That one periodically faults.
Backtrace?
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
Re: aMule and multi-core processors
« Reply #12 on: July 25, 2010, 01:37:41 PM »

Logged

RRM

  • Sr. Member
  • ****
  • Karma: 40
  • Offline Offline
  • Posts: 444
Re: aMule and multi-core processors
« Reply #13 on: August 04, 2010, 10:07:11 AM »

Backtrace?

mldonkey

Stu would like to see a good backtrace, to be able to analyze your issue.
Here's how you can get a good backtrace:
http://forum.amule.org/index.php?topic=4115.0

I too upload with ultra high speed, just as you do, and i used to have a memory leak problem,
but this issue was resolved (by Stu) in the SVN version.
Logged