linuxserver / docker-transmission

GNU General Public License v3.0
577 stars 179 forks source link

[FEAT] Allow running transmission with custom IO priority (`ionice`) #269

Closed roobre closed 4 months ago

roobre commented 8 months ago

Is this a new feature request?

Wanted change

I would like to be able to set a custom (in my case, lower) IO priority for the transmission process.

Reason for change

Serving torrent files can be quite an IO demanding task, specially on mechanical drives as due to the fragmented nature of torrents, seeking is very likely to occur in large amounts. This can make transmission a quite disruptive workload to run next to others.

Setting a lower IO priority (higher IO niceness value) can potentially help with this.

Proposed code change

We could allow users to define IONICE_CLASS and IONICE_LEVEL environment variables, which could be used as arguments to ionice's -c and -n in the /etc/s6-overlay/s6-rc.d/svc-transmission/run script. Alternatively, a oneshot service could also be used to ionice the transmission PID after it has started.

github-actions[bot] commented 8 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

LinuxServer-CI commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

roobre commented 7 months ago

OP will happily provide more feedback if asked 😁

LinuxServer-CI commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 3 months ago

This issue is locked due to inactivity