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

scx_rlfifo: warn user about performance #173

Merged
merged 2 commits into from
Mar 5, 2024
Merged

scx_rlfifo: warn user about performance #173

merged 2 commits into from
Mar 5, 2024

Conversation

arighi
Copy link
Collaborator

@arighi arighi commented Mar 5, 2024

Small improvement to make the scheduler a little more responsive without introducing extra complexity.

Moreover, print a warning banner when the scheduler starts to clarify its role as a basic example.

Small improvement to make the scheduler a bit more responsive, without
introducing too much complexity or too much CPU overhead.

This can be achieved by replacing a sleep of 1ms with a sched_yield()
every time that the scheduler has finished to dispatch all the queued
tasks.

This also makes the code a bit smaller and easier to read.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
scx_rlfifo is provided as a simple example to show how to use
scx_rustland_core and it's not supposed to be used in a real production
environment.

To prevent performance bug reports print an explicit warning when it's
started to clarify the goal of this scheduler.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
@arighi arighi merged commit a42dd32 into main Mar 5, 2024
1 check passed
@Byte-Lab Byte-Lab deleted the scx-rlfifo-warning branch March 14, 2024 18:20
@Byte-Lab Byte-Lab restored the scx-rlfifo-warning branch March 14, 2024 18:20
@Byte-Lab Byte-Lab deleted the scx-rlfifo-warning branch March 14, 2024 18:20
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.

None yet

2 participants