rakshasa / rtorrent

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

Lengthy disk I/O spikes in 0.10.0 #1308

Open grdryn opened 5 hours ago

grdryn commented 5 hours ago

When I upgraded to 0.10.0, I noticed that every few minutes (10-15 maybe? I haven't timed it), the disk I/O would spike for 90 seconds or more. When I downgraded to 0.9.8 again, this disappeared again. I have maybe a few thousand torrents, but these spikes happen even when none of them are connected to any peers, so there's no data being sent or received over the network, as far as I can tell.

Is there any information that you'd like me to gather and provide here?

stickz commented 3 hours ago

This is the session saving interval every 15-20 minutes. We added fdatasync to ensure the session files land on the disk. It prevents torrent client breakage caused by file corruption during a sudden failure.

If this bothering you, I can send you a couple rtorrent.rc commands to increase the session saving interval and save newly added torrents instantly.

If you can't redirect your session files to an SSD, this is the next best option. This task needs to happen for stability purposes. Thousands of torrents are intensive.