Skip to content

Conversation

@bdaase
Copy link

@bdaase bdaase commented Jan 30, 2021

This does four things:

  • Set the "IOSchedulingClass" and "CPUSchedulingPolicy" to "idle" (we are a background task and should never block the system in any way)
  • Add "--quiet" to the exec line (at best, backups are fire and forget)
  • Mention our own man page in the "Documentation=" directive (good style)
  • Move the [Install] section to the bottom (convention)

This does four things:
- Set the "IOSchedulingClass" and "CPUSchedulingPolicy" to "idle" (we are a background task and should never block the system in any way)
- Add "--quiet" to the exec line (at best, backups are fire and forget)
- Mention our own man page in the "Documentation=" directive (good style)
- Move the [Install] section to the bottom (convention)
@wesbarnett
Copy link
Collaborator

Hi @BjoernDaase, thanks for the contribution. Keep in mind these are just examples that the user is intended to tweak on their own. So setting IOSchedulingClass and CPUSchedulingPolicy to idle might not be the correct solution for everyone since the process may become starved if higher priority processes are constantly running. Setting Nice might be a better option for many. See this discussion.

@bdaase
Copy link
Author

bdaase commented Jan 31, 2021

Hi Wes, thanks for your quick reply!

I have just added them to the service based on my personal experience, where they work fine, and because they they look like sane defaults to me. However, I can also drop those two lines completely from the patch if you don't feel comfortable recommending this as a default. Just let me know what you prefer :)

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