BPF List
 help / color / mirror / Atom feed
From: Muhammad Usama Anjum <musamaanjum@gmail.com>
To: David Vernet <void@manifault.com>, lsf-pc@lists.linux-foundation.org
Cc: bpf@vger.kernel.org, joel@joelfernandes.org, htejun@kernel.org,
	 schatzberg.dan@gmail.com, andrea.righi@canonical.com,
	davemarchevsky@meta.com,  changwoo@igalia.com,
	julia.lawall@inria.fr, himadrispandya@gmail.com
Subject: Re: [LSF/MM/BPF TOPIC] Discuss more features + use cases for sched_ext
Date: Mon, 19 Feb 2024 13:48:39 +0500	[thread overview]
Message-ID: <41193af3bd250b9e1e4a52e6699fdbe59027270d.camel@gmail.com> (raw)
In-Reply-To: <20240126215908.GA28575@maniforge>

On Fri, 2024-01-26 at 15:59 -0600, David Vernet wrote:
> Hello,
> 
> A few more use cases have emerged for sched_ext that are not yet
> supported that I wanted to discuss in the BPF track. Specifically:
> 
> - EAS: Energy Aware Scheduling
> 
> While firmware ultimately controls the frequency of a core, the kernel
> does provide frequency scaling knobs such as EPP. It could be useful for
> BPF schedulers to have control over these knobs to e.g. hint that
> certain cores should keep a lower frequency and operate as E cores.
> This could have applications in battery-aware devices, or in other
> contexts where applications have e.g. latency-sensitive
> compute-intensive workloads.
The current scheduler must already be using the frequency scaling
knobs. Can sched_ext use those knobs directly with hint from userspace
easily?

> 
> - Componentized schedulers
> 
> Scheduler implementations today largely have to reinvent the wheel. For
> example, if you want to implement a load balancer in rust, you need to
> add the necessary fields to the BPF program for tracking load / duty
> cycle, and then parse and consume them from the rust side. That's pretty
> suboptimal though, as the actual load balancing algorithm itself is
> essentially the exact same. The challenge here is that the feature
> requires both BPF and user space components to work together. It's not
> enough to ship a rust crate -- you need to also ship a BPF object file
> that your program can link against. And what should the API look like on
> both ends? Should rust / BPF have to call into functions to get load
> balancing? Or should it be automatically packaged and implemented?
This seems like a really nice idea. If we build a kind of library
where different components of a schedule are already available, the
researchers can just focus on one component and improve it. This could
bring long term benefits to schedulers based on sched_ext. This
flexibility wasn't possible before for the scheduler.

> 
> There are a lot of ways that we can approach this, and it probably
> warrants discussing in some more detail.
> 
> If anybody else has ideas on things they'd like to discuss; either
> sched_ext features that are missing, or scheduling ideas that we could
> try to implement but just haven't yet, please feel free to share.
> 
> Thanks,
> David


  parent reply	other threads:[~2024-02-19  8:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-26 21:59 [LSF/MM/BPF TOPIC] Discuss more features + use cases for sched_ext David Vernet
2024-01-29 22:41 ` Joel Fernandes
2024-01-29 22:42   ` Joel Fernandes
2024-01-30  0:15     ` David Vernet
2024-01-30  1:50     ` Tejun Heo
2024-02-19  9:25       ` Joel Fernandes
2024-02-19  8:48 ` Muhammad Usama Anjum [this message]
2024-02-19  9:11   ` Joel Fernandes
2024-02-19  9:14     ` Joel Fernandes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41193af3bd250b9e1e4a52e6699fdbe59027270d.camel@gmail.com \
    --to=musamaanjum@gmail.com \
    --cc=andrea.righi@canonical.com \
    --cc=bpf@vger.kernel.org \
    --cc=changwoo@igalia.com \
    --cc=davemarchevsky@meta.com \
    --cc=himadrispandya@gmail.com \
    --cc=htejun@kernel.org \
    --cc=joel@joelfernandes.org \
    --cc=julia.lawall@inria.fr \
    --cc=lsf-pc@lists.linux-foundation.org \
    --cc=schatzberg.dan@gmail.com \
    --cc=void@manifault.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox