Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rtorrent and 100% CPU
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Mr. Death
n00b
n00b


Joined: 14 Jan 2012
Posts: 10

PostPosted: Wed Apr 25, 2012 11:40 am    Post subject: rtorrent and 100% CPU Reply with quote

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
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Wed Apr 25, 2012 2:06 pm    Post subject: Reply with quote

The first thing I would do is start rtorrent from a terminal and watch any output. Is there any?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Mr. Death
n00b
n00b


Joined: 14 Jan 2012
Posts: 10

PostPosted: Wed Apr 25, 2012 2:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
M
Guru
Guru


Joined: 12 Dec 2006
Posts: 432

PostPosted: Wed Apr 25, 2012 4:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mr. Death
n00b
n00b


Joined: 14 Jan 2012
Posts: 10

PostPosted: Wed Apr 25, 2012 10:22 pm    Post subject: Reply with quote

Tried disable xmlrpc and same problem. I don't know, what else should I check. :(
Back to top
View user's profile Send private message
Mr. Death
n00b
n00b


Joined: 14 Jan 2012
Posts: 10

PostPosted: Wed May 02, 2012 9:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
chrisyu
Apprentice
Apprentice


Joined: 10 Apr 2003
Posts: 207
Location: China

PostPosted: Thu May 03, 2012 12:45 pm    Post subject: Reply with quote

Had same problem too, x86 and amd64, multiple versions.

Now I switched to transmission. :oops:

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
View user's profile Send private message
Mr. Death
n00b
n00b


Joined: 14 Jan 2012
Posts: 10

PostPosted: Thu May 03, 2012 3:53 pm    Post subject: Reply with quote

chrisyu wrote:
Had same problem too, x86 and amd64, multiple versions.

Now I switched to transmission. :oops:

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
View user's profile Send private message
trubicoid
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2009
Posts: 79

PostPosted: Mon May 07, 2012 12:35 pm    Post subject: Reply with quote

chrisyu wrote:
try re-emerge curl with USE='-threads ares'


it helped, thanks a lot! :D
Back to top
View user's profile Send private message
Mr. Death
n00b
n00b


Joined: 14 Jan 2012
Posts: 10

PostPosted: Mon May 07, 2012 12:38 pm    Post subject: Reply with quote

Yes, it helped and there is something wrong with curl.
Back to top
View user's profile Send private message
trubicoid
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2009
Posts: 79

PostPosted: Mon May 07, 2012 12:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
trubicoid
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2009
Posts: 79

PostPosted: Tue May 08, 2012 11:10 am    Post subject: Reply with quote

so -ares +threads and curl-7.25.0-r1 results in 100%cpu usage
keep +ares -threads
Back to top
View user's profile Send private message
alex67500
n00b
n00b


Joined: 08 Oct 2012
Posts: 1

PostPosted: Mon Oct 08, 2012 4:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mr. Death
n00b
n00b


Joined: 14 Jan 2012
Posts: 10

PostPosted: Mon Oct 08, 2012 5:01 pm    Post subject: Reply with quote

I've solved by using older curl.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum