Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rTorrent: improve session saving support #5727

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stickz
Copy link

@stickz stickz commented May 11, 2023

Description

This commit improves session saving support for rTorrent to prevent unnecessary loss of torrent files. It also increases the session saving interval from 20 minutes to 1 hour to reduce disk i/o usage with thousands of torrents. Session saving is a very intensive task that can take minutes. Torrents fail to save into session by default when added and can be lost if a crash occurs between saving intervals. These two fixes improve the performance and stability of the rTorrent client.

Checklist

  • Build rule all-supported completed successfully
  • New installation of package completed successfully
  • Package upgrade completed successfully (Manually install the package again)
  • Package functionality was tested
  • Any needed documentation is updated/created

Type of change

  • Bug fix
  • New Package
  • Package update
  • Includes small framework changes
  • This change requires a documentation update (e.g. Wiki)

This commit improves session saving support for rTorrent to prevent unnecessary loss of torrent files. It also increases the session saving interval from 20 minutes to 1 hour to reduce disk i/o usage with thousands of torrents. Session saving is a very intensive task that can take minutes. Torrents fail to save into session by default when added and can be lost if a crash occurs between saving intervals.
@stickz stickz mentioned this pull request May 11, 2023
6 tasks
Comment on lines +16 to +17
schedule2 = session_save, 1200, 3600, ((session.save))
method.set_key = event.download.inserted, 2_save_session, ((d.save_full_session))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open question: this will only be applied on new installation and won't be applied on upgrade. Is this something we want or would we want to try to amend existing installation's configurations on upgrade ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, session saving could present challenges for NAS environments. It highly possible to consume more resources writing session files with torrent information to disk than actually seeding torrents. RAID 5 in particular is very suspectable to this issue.

This and the potential to lose torrents is why I would recommend amending existing installs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants