aMule Forum

English => aMule Help => Topic started by: veranyon on July 22, 2010, 01:47:14 PM

Title: aMule and multi-core processors
Post by: veranyon 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.
Title: Re: aMule and multi-core processors
Post by: Stu Redman 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.
Title: Re: aMule and multi-core processors
Post by: veranyon 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".
Title: Re: aMule and multi-core processors
Post by: Stu Redman 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"?
Title: Re: aMule and multi-core processors
Post by: veranyon 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
Title: Re: aMule and multi-core processors
Post by: Stu Redman 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.
Title: Re: aMule and multi-core processors
Post by: veranyon 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.
Title: Re: aMule and multi-core processors
Post by: Stu Redman 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?
Title: Re: aMule and multi-core processors
Post by: GonoszTopi 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 (http://wiki.amule.org/index.php/HowTo_Compile_In_RedHat-Fedora) it (don't know how up-to-date the instructions are...)
Title: Re: aMule and multi-core processors
Post by: veranyon 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 (http://wiki.amule.org/index.php/HowTo_Compile_In_RedHat-Fedora) it (don't know how up-to-date the instructions are...)

aMule SVN Snapshot: rev. 10257

That one periodically faults.
Title: Re: aMule and multi-core processors
Post by: veranyon on July 25, 2010, 10:58:16 AM
... Or freezes anyway

(http://i8.fastpic.ru/thumb/2010/0725/d1/76b4e4ce8ed78f7723bb1a3d07372ed1.jpeg) (http://fastpic.ru/view/8/2010/0725/76b4e4ce8ed78f7723bb1a3d07372ed1.png.html)

(http://i8.fastpic.ru/thumb/2010/0725/57/447aff7195c5d1e9b0776ec90c77d557.jpeg) (http://fastpic.ru/view/8/2010/0725/447aff7195c5d1e9b0776ec90c77d557.png.html)
Title: Re: aMule and multi-core processors
Post by: Stu Redman on July 25, 2010, 01:21:47 PM
aMule SVN Snapshot: rev. 10257
That one periodically faults.
Backtrace?
Title: Re: aMule and multi-core processors
Post by: veranyon on July 25, 2010, 01:37:41 PM
Backtrace?

mldonkey
Title: Re: aMule and multi-core processors
Post by: RRM 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.