rakshasa / rtorrent

rTorrent BitTorrent client
https://github.com/rakshasa/rtorrent/wiki
GNU General Public License v2.0
4.2k stars 415 forks source link

rtorrent 0.9.4 freezes when adding a magnet #234

Open Nihim opened 10 years ago

Nihim commented 10 years ago

I won't link a config since I tried it also on my box & a vps using: rtorrent -n so the default settings. libtorrent / rtorrent: 0.13.4 / 0.9.4 compiled from source. Box OS: Debian 7 3.12-0.bpo.1-amd64 #1 SMP Debian 3.12.9-1~bpo70+1 vps OS: Debian 7 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 Both installs are less than 5days old.

What happens is that when I add a manget link it will appear to freeze (totally unresponsive to commands, doesn't update) for some time, afterwards it will randomly freeze again every now and then. Trying to add another magnet will cause it to happen again. Freezes can be several seconds up to minutes.

I saw no spikes on cpu (htop) or I/O (iotop) whatsoever.

I have no debugging skills but I get the feeling it has to do with dht polling or trackers timing out. Since it seems to smooth out over time till I try to add something new.

Strace shows it slowing down and repeating some lines when it "freezes" which appear tracker related? So it might be related to ticket: https://github.com/rakshasa/rtorrent/issues/180

Below are pictures from the strace (yes I recorded the behaviour + strace...) Since obviously I don't know a lot of stuff about linux feel free to tell me if I should do something more / else.

2014-09-09_204331043 mp4_snapshot_01 20_ 2014 09 09_21 53 05 2014-09-09_204331043 mp4_snapshot_02 37_ 2014 09 09_21 54 36

Nihim commented 10 years ago

want to update with the fact that rtorrent is now using 100% of one thread, though is responsive (not dling anything atm). Even removing all torrents keeps it at 100%

strace is full of this:

{EPOLLOUT|EPOLLERR|EPOLLHUP, {u32=22, u64=22}}, {EPOLLOUT|EPOLLERR|EPOLLHUP, {u32=14, u64=14}}}, 1024, 213) = 3 epoll_wait(7, {{EPOLLOUT|EPOLLERR|EPOLLHUP, {u32=16, u64=16}}, {EPOLLOUT|EPOLLERR|EPOLLHUP, {u32=22, u64=22}}, {EPOLLOUT|EPOLLERR|EPOLLHUP, {u32=14, u64=14}}}, 1024, 213) = 3 epoll_wait(7, {{EPOLLOUT|EPOLLERR|EPOLLHUP, {u32=16, u64=16}}, {EPOLLOUT|EPOLLERR|EPOLLHUP, {u32=22, u64=22}}, {EPOLLOUT|EPOLLERR|EPOLLHUP, {u32=14, u64=14}}}, 1024, 213) = 3 epoll_wait(7, {{EPOLLOUT|EPOLLERR|EPOLLHUP, {u32=16, u64=16}}, {EPOLLOUT|EPOLLERR|EPOLLHUP, {u32=22, u64=22}}, {EPOLLOUT|EPOLLERR|EPOLLHUP, {u32=14, u64=14}}}, 1024, 213) = 3 epoll_wait(7, {{EPOLLOUT|EPOLLERR|EPOLLHUP, {u32=16, u64=16}},

rtega commented 10 years ago

I have the same issue on Ubuntu with version 0.9.2-1

gs11 commented 9 years ago

Same issue with 0.9.2-1 on Debian. I'm fairly sure the issues started recently without any recent updates of rtorrent.

Tried 0.9.4 w/ libtorrent 0.13.4 compiled from source...same problem.