Closed nolemons closed 5 months ago
Upgrade to docker edge to resolve this problem.
@stickz Sorry I should have followed up earlier here - I didn't realize what you meant by "edge" but I saw it's a tag. I've just gone ahead and set it but I'm still getting the same issue.
Out of curiosity, was there a particular change in the edge changes that you were expecting to fix this? If so I'd be curious to learn more and see if there's anything I can dig into there.
Can confirm, still happens on the latest edge. Please reopen.
@nolemons This docker container was just switched to rTorrent stickz. https://github.com/stickz/rtorrent
Could you retest with 4.3.5-3.2
and file an issue report there if the problem persists? We can then discuss next steps.
Support guidelines
I've found a bug and checked that ...
Description
When a sufficient number of torrents in my client error with the status
Tracker Status: Tracker: [Timeout was reached]
, I see constant 100% CPU usage (single core) from the rtorrent process in the container.Expected behaviour
Tracker timeouts don't cause 100% CPU usage unnecessarily.
Actual behaviour
Tracker timeouts cause 100% CPU usage.
Steps to reproduce
Docker info
Additional info
This looks quite similar to a bug with rtorrent that was caused by a regression in curl, specifically https://github.com/rakshasa/rtorrent/issues/951 / https://github.com/rakshasa/rtorrent/issues/580 / https://github.com/rakshasa/rtorrent/issues/457. However, this seems to be from a very old version of curl, it looks like curl in the container currently is v8.5.0, and this was an issue back around v7.55.0.
I straced the process and got the following output:
This does look pretty similar, although it is a different syscall (epoll_pwait instead of epoll_wait). I've tried poking around for recent bug reports here but have been unable to find anything. I haven't tried messing around with curl, but will likely see try to see if somehow this is a similar issue. Frankly I'm not the most familiar with this stuff so I wouldn't really know what I'm doing, and mostly wanted to file this issue to see if anyone else has ran into this issue and found a resolution.
I did just find https://github.com/rakshasa/rtorrent/issues/1208 which claims there may be an issue in recent versions of curl here - I'm going to try changing the versions around and see if I'm able to resolve this. edit: nope, v7.84.0 which is mentioned in that thread doesn't seem to resolve it. That looks to be gentoo specific anyways, so it was really a shot in the dark anyways.