Skip to content

Cache return values of sched_get_priority_min and sched_get_priority_max - #1120

Open
MilanTripkovic02 wants to merge 1 commit into
eclipse-score:mainfrom
MilanTripkovic02:issue-1081
Open

MilanTripkovic02 wants to merge 1 commit into
eclipse-score:mainfrom
MilanTripkovic02:issue-1081

Conversation

@MilanTripkovic02

Copy link
Copy Markdown
Contributor

The priority range of a scheduling policy was read with sched_get_priority_min and sched_get_priority_max for every configured process.
The ranges are now cached per scheduling policy while the configuration is loaded, so the OS is asked only once per policy.

Measured with strace:

  • smoke (2 components): 4 calls before, 2 calls after
  • switch_run_target (5 components): 10 calls before, 2 calls after

Closes #1081

* Cache the return of sched_get_priority_min and sched_get_priority_max

Signed-off-by: Milan Tripkovic <Milan.Tripkovic@rt-rk.com>
@github-actions

Copy link
Copy Markdown
Contributor

Documentation preview for this pull request is available at:
pr-1120: https://eclipse-score.github.io/lifecycle/pr-1120/

This branch is waiting to be deployed

1 waiting deployment
workflow-approval — d4517249 Waiting Nov 27, 2026 by MilanTripkovic02 via Build and test x86_64-qnx / approval #2912
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

Cache the return of sched_get_priority_min and sched_get_priority_max

1 participant