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: Install faster with ramdisk #975

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

stickz
Copy link
Contributor

@stickz stickz commented Apr 4, 2023

This commit mounts a 1 GB tmpfs ram disk for rtorrent installations. Four gigabytes of system memory is required. Increases installation speed and efficiency.

It was required to refactor the build paths. The ram disk needs to be mounted in a non conflicting location.

Changes were tested on an 8 core Ubuntu 22.04 LTS VPS with 16GB of RAM. rTorrent source 0.9.8 was built. The entire installation process of rTorrent (from start to finish) with box install rtorrent took 82 seconds. Faster install times are anticipated with dedicated resources. There was significant shell overhead with the virtualized environment slowing things down.

This commit mounts a 1 GB tmpfs ram disk for rtorrent installations.  Four gigabytes of system memory is required. Increases installation speed and efficiency.

It was required to refactor the build paths. The ram disk needs to be mounted in a non conflicting location.

Also, it creates a new `rtorrent.log` file for the rtorrent installation. The log file is written to the ram disk, then copied to the logs folder afterwards. This resolves the megabyte log file problem with multiple installs and reduces disk writes.
@stickz
Copy link
Contributor Author

stickz commented Apr 11, 2023

Logging changes reverted. Pull request ready for review. Plan is to build on pull request to run multiple tasks at once.

@github-actions github-actions bot added the has conflicts This PR has conflicts against master label Apr 15, 2023
@stickz
Copy link
Contributor Author

stickz commented Apr 15, 2023

Conflicts for the ram disk pull request have been resolved! It should be ready to go now.

@github-actions github-actions bot removed the has conflicts This PR has conflicts against master label Apr 23, 2023
@stickz stickz marked this pull request as draft May 10, 2023 20:43
@github-actions github-actions bot added the has conflicts This PR has conflicts against master label Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has conflicts This PR has conflicts against master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant