mirror of
https://github.com/JakeHillion/scx.git
synced 2024-11-30 04:50:24 +00:00
3b6e2dee20
scx_mitosis is a dynamic affinity scheduler which assigns cgroups to Cells and Cells to discrete sets of CPUs. The number of cells is dynamic as is the CPU assignment. BPF mostly just does vtime scheduling for each cell, tracks load, and responds to reconfiguration from userspace. Userspace makes decisions about how to assign cgroups to cells and cells to cpus. This is not yet a complete scheduler, much of the userspace logic is a placeholder as I experiment with better logic. I also want to add richer scheduling semantics to userspace, e.g. so that cells can do more "soft-affinity" rather than the strict partitioning implemented currently. Signed-off-by: Dan Schatzberg <schatzberg.dan@gmail.com>
14 lines
382 B
Rust
14 lines
382 B
Rust
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
//
|
|
// This software may be used and distributed according to the terms of the
|
|
// GNU General Public License version 2.
|
|
|
|
fn main() {
|
|
scx_utils::BpfBuilder::new()
|
|
.unwrap()
|
|
.enable_intf("src/bpf/intf.h", "bpf_intf.rs")
|
|
.enable_skel("src/bpf/mitosis.bpf.c", "bpf")
|
|
.build()
|
|
.unwrap();
|
|
}
|