Skip to content

docs: take 'nice' instead of 'priority' for CFS policies - #1

Merged
atsushi421 merged 1 commit into
mainfrom
docs/cfs-nice-key
Aug 17, 2026
Merged

atsushi421 merged 1 commit into
mainfrom
docs/cfs-nice-key

Conversation

@atsushi421

@atsushi421 atsushi421 commented Aug 17, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Reflects autowarefoundation/callback_isolated_executor#62 in the documentation. That PR makes the scheduling-parameter key in the thread configuration YAML policy-dependent: CFS entries (SCHED_OTHER / SCHED_BATCH / SCHED_IDLE) now take nice (validated against [-20, 19]) instead of priority, while SCHED_FIFO / SCHED_RR keep priority (now validated against [1, 99]). A missing required key is rejected at startup with an error naming the key, and a stray key of the other policy class is ignored like any other unknown key.

Documentation changes:

  • docs/yaml-specification.md
    • Split the old priority row in the callback_groups and non_ros_threads field tables into nice (CFS policies) and priority (SCHED_FIFO / SCHED_RR), and documented which key each policy requires along with the missing-key / stray-key behavior.
    • Renamed the key in the CFS section to nice and noted that out-of-range values are rejected at startup for both the CFS and FIFO sections.
    • Updated all SCHED_OTHER YAML examples to use nice.
  • docs/tutorial.md: updated the generated template.yaml example and the edited configuration example to use nice: 0, matching the new prerun_node output.

Real-time policy examples (SCHED_FIFO with priority) are unchanged, including docs/non-ros-threads.md.

Note: the upstream PR is not merged yet, so this PR should be merged only after autowarefoundation/callback_isolated_executor#62 lands.

Related links

How was this PR tested?

  • pre-commit run markdownlint-fix on the changed files passes.

Notes for reviewers

Reflect autowarefoundation/callback_isolated_executor#62: CFS entries
(SCHED_OTHER / SCHED_BATCH / SCHED_IDLE) now use the 'nice' key
validated against [-20, 19], while SCHED_FIFO / SCHED_RR keep
'priority' validated against [1, 99]. A missing required key is
rejected at startup; a stray key of the other policy class is ignored.

Signed-off-by: atsushi421 <atsushi.yano.2@tier4.jp>
@atsushi421
atsushi421 marked this pull request as ready for review August 17, 2026 08:41
@atsushi421
atsushi421 merged commit 91c4ab8 into main Aug 17, 2026
3 checks passed
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.

1 participant