Skip to content

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

Merged
jepio merged 2 commits intomainfrom
multipathd-disable-rt
Mar 19, 2024
Merged

sys-fs/multipath-tools: Disable realtime scheduling for multipathd#1771
jepio merged 2 commits intomainfrom
multipathd-disable-rt

Conversation

@jepio
Copy link
Copy Markdown
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
Copy Markdown
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.

@github-actions
Copy link
Copy Markdown

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
Copy Markdown
Member Author

jepio commented Mar 19, 2024

Added a changelog.

@jepio jepio merged commit b790241 into main Mar 19, 2024
@jepio jepio deleted the multipathd-disable-rt branch March 19, 2024 14:41
@jepio
Copy link
Copy Markdown
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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants