View previous topic :: View next topic |
Author |
Message |
Mr. Death n00b
Joined: 14 Jan 2012 Posts: 10
|
Posted: Wed Apr 25, 2012 11:40 am Post subject: rtorrent and 100% CPU |
|
|
Hi, I have problem on my new router with rtorrent. After while it tooks 100% of CPU. I've tried masked version too with the same problem. On my previous router it worked normal. I can't locate the problem. Do you know, where could be the problem? Or what to check? Thanks in advance and sorry if it's in wrong section. |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
Mr. Death n00b
Joined: 14 Jan 2012 Posts: 10
|
Posted: Wed Apr 25, 2012 2:58 pm Post subject: |
|
|
Usually it's starts CPU drain, when someone starts downloading, but it isn't OK and even when there isn't any traffic it holds 100%.
I've tried disable all parameters, same problem.
Here is my configuration:
directory=torrent_dir
download_rate=6M
upload_rate=6M
bind = my_ip
port_range = 26900-26990
use_udp_trackers = yes
check_hash = no
session = /var/rtorrent
system.umask.set = 0000
dht = off
#dht_port = 26991
encryption = allow_incoming, try_outgoing,enable_retry, prefer_plaintext
peer_exchange = yes
scgi_port = 127.0.0.1:5000
encoding_list = UTF-8
max_memory_usage = 1400M
network.send_buffer.size.set = 2M
network.receive_buffer.size.set = 4M
min_peers = 80
max_peers = 160
min_peers_seed = 160
max_peers_seed = 320
max_uploads = 40 |
|
Back to top |
|
|
M Guru
Joined: 12 Dec 2006 Posts: 432
|
Posted: Wed Apr 25, 2012 4:17 pm Post subject: |
|
|
This happened to me too recently.
No such behaviour since I recompiled rtorrent with xmlrpc flag disabled. I don't use web frontend anyway, I guess that is what xmlrpc is for. |
|
Back to top |
|
|
Mr. Death n00b
Joined: 14 Jan 2012 Posts: 10
|
Posted: Wed Apr 25, 2012 10:22 pm Post subject: |
|
|
Tried disable xmlrpc and same problem. I don't know, what else should I check. |
|
Back to top |
|
|
Mr. Death n00b
Joined: 14 Jan 2012 Posts: 10
|
Posted: Wed May 02, 2012 9:27 pm Post subject: |
|
|
Now I've tried downgrade to previous version (0.8.7/0.12.7) and receiving segfaults. When trying open rtgui. It could be connected with newer version of XMLRPC.
But no 100% CPU. Definitely newer versions have some problems. |
|
Back to top |
|
|
chrisyu Apprentice
Joined: 10 Apr 2003 Posts: 207 Location: China
|
Posted: Thu May 03, 2012 12:45 pm Post subject: |
|
|
Had same problem too, x86 and amd64, multiple versions.
Now I switched to transmission.
You could try re-emerge curl with USE='-threads ares', after I switched to transmission, there is a bug if you emerge curl with threads.
But this is just a blind shot.
Good luck.
Last edited by chrisyu on Fri May 04, 2012 3:02 am; edited 1 time in total |
|
Back to top |
|
|
Mr. Death n00b
Joined: 14 Jan 2012 Posts: 10
|
Posted: Thu May 03, 2012 3:53 pm Post subject: |
|
|
chrisyu wrote: | Had same problem too, x86 and amd64, multiple versions.
Now I switched to transmission.
You could try re-emerge curl with USE='-threads ares', after I switched to transmission, there is a bug if you emerge curl with threads.
But this is just a blind shoot.
Good luck. |
It seems it helped. Meanwhile my harddrive is almost dead and need replace and I can't to test it properly. Thank you. |
|
Back to top |
|
|
trubicoid Tux's lil' helper
Joined: 04 Aug 2009 Posts: 79
|
Posted: Mon May 07, 2012 12:35 pm Post subject: |
|
|
chrisyu wrote: | try re-emerge curl with USE='-threads ares' |
it helped, thanks a lot! |
|
Back to top |
|
|
Mr. Death n00b
Joined: 14 Jan 2012 Posts: 10
|
Posted: Mon May 07, 2012 12:38 pm Post subject: |
|
|
Yes, it helped and there is something wrong with curl. |
|
Back to top |
|
|
trubicoid Tux's lil' helper
Joined: 04 Aug 2009 Posts: 79
|
Posted: Mon May 07, 2012 12:57 pm Post subject: |
|
|
actually the new unstable version of curl doesn't allow you to choose together ares and threads.
but I haven't tried -ares threads, maybe it also works. |
|
Back to top |
|
|
trubicoid Tux's lil' helper
Joined: 04 Aug 2009 Posts: 79
|
Posted: Tue May 08, 2012 11:10 am Post subject: |
|
|
so -ares +threads and curl-7.25.0-r1 results in 100%cpu usage
keep +ares -threads |
|
Back to top |
|
|
alex67500 n00b
Joined: 08 Oct 2012 Posts: 1
|
Posted: Mon Oct 08, 2012 4:45 pm Post subject: |
|
|
Hi,
this is not a Gentoo specific issue, it seems to be the case of FreeBSD too.
Have you managed to solve it?
Thanks.
--
Alex |
|
Back to top |
|
|
Mr. Death n00b
Joined: 14 Jan 2012 Posts: 10
|
Posted: Mon Oct 08, 2012 5:01 pm Post subject: |
|
|
I've solved by using older curl. |
|
Back to top |
|
|
|