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_lavd: misc updates (verifier, README, monitor option name, and micro-optimization) #597

Merged
merged 3 commits into from
Sep 2, 2024

Conversation

multics69
Copy link
Contributor

This PR contains the following misc updates:

  • check a core type of the previous cpu at pick_idle_cpu()
  • rename "--monitor_sched_samples" to "--monitor" for consistency
  • update README
  • make the old verifier happy (bpf_cpumask_set_cpu)

If a task is performance-critical, pick_idle_cpu() checks if the
previous core is a big core or not. If not, don't try to run on previous
core since a performance-critical task is better to run on a big core.

Signed-off-by: Changwoo Min <[email protected]>
@@ -125,7 +125,7 @@ struct Opts {
/// Run in monitoring mode. Show the specified number of scheduling
/// samples every second.
#[clap(long)]
monitor_sched_samples: Option<u64>,
monitor: Option<u64>,
Copy link
Contributor

Choose a reason for hiding this comment

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

What lavd prints out is a bit different from stats printed out by other schedulers and the parameter's meaning is also different (number of samples instead of interval). Maybe it'd be useful to add more traditional statistics to lavd too which can then use the --stats and --monitor option rather than renaming sampling to take up the name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That makes sense. I will drop the relevant commit and will introduce "--monitor" option in the other PR.

Changwoo Min added 2 commits September 2, 2024 18:00
Signed-off-by: Changwoo Min <[email protected]>
An old BPF verifier does not allow calling bpf_cpumask_set_cpu() in the
BPF syscall context, so we defer actual bpf_cpumask_set_cpu() to the
timer handler, update_sys_stat(), to workaround the problem.

Signed-off-by: Changwoo Min <[email protected]>
@multics69 multics69 merged commit 172fe1e into sched-ext:main Sep 2, 2024
1 check failed
@multics69 multics69 deleted the lavd-turbo-tuning2 branch September 2, 2024 09:10
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