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

sys-fs/multipath-tools: Disable realtime scheduling for multipathd #1771

Merged
merged 2 commits into from Mar 19, 2024

Conversation

jepio
Copy link
Member

@jepio jepio commented Mar 18, 2024

sys-fs/multipath-tools: Disable realtime scheduling for multipathd

Add a dropin that prevents the service from controlling its own scheduling. On newer Flatcar releases, service ordering seems to have changed and multipathd is able to configure realtime scheduling before systemd tries (and fails) to enable the cpu controller. The dropin is meant to enforce sane behavior, and matches older Flatcar releases where cpu controller was enabled before multipathd tries (and fails) to configure realtime scheduling.

How to use

[ describe what reviewers need to do in order to validate this PR ]
TODO: mantle test case
TODO: changelog

Testing done

[Describe the testing you have done before submitting this PR. Please include both the commands you issued as well as the output you got.]

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)
  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

Add a dropin that prevents the service from controlling its own
scheduling. On newer Flatcar releases, service ordering seems to have
changed and multipathd is able to configure realtime scheduling before
systemd tries (and fails) to enable the cpu controller.  The dropin is
meant to enforce sane behavior, and matches older Flatcar releases where
cpu controller was enabled before multipathd tries (and fails) to
configure realtime scheduling.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
# if any such process exists then cpu controller can't be enabled.
# This poses a bit of a dilemma.
# Block realtime control for the process, but give it highest non-rt priority.
RestrictRealtime=yes
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM, worked on my local setup as well.

Copy link

github-actions bot commented Mar 19, 2024

Build action triggered: https://github.com/flatcar/scripts/actions/runs/8346002605

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
@jepio
Copy link
Member Author

jepio commented Mar 19, 2024

Added a changelog.

@jepio jepio merged commit b790241 into main Mar 19, 2024
1 check failed
@jepio jepio deleted the multipathd-disable-rt branch March 19, 2024 14:41
@jepio
Copy link
Member Author

jepio commented Mar 19, 2024

Not doing a mantle test case for now as this is unlikely to regress.

jepio added a commit that referenced this pull request Mar 19, 2024
sys-fs/multipath-tools: Disable realtime scheduling for multipathd

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
jepio added a commit that referenced this pull request Mar 19, 2024
sys-fs/multipath-tools: Disable realtime scheduling for multipathd

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
jepio added a commit that referenced this pull request Mar 19, 2024
sys-fs/multipath-tools: Disable realtime scheduling for multipathd

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
2 participants