This website requires JavaScript.
Explore
Help
Register
Sign In
JakeHillion
/
scx
Watch
1
Star
0
Fork
0
You've already forked scx
mirror of
https://github.com/JakeHillion/scx.git
synced
2024-12-03 22:37:11 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
45f7fd13b7
scx
/
rust
/
meson.build
3 lines
48 B
Meson
Raw
Normal View
History
Unescape
Escape
build: Trigger cargo build on rust sub-projects from meson.build
2023-12-01 21:58:56 +00:00
subdir
(
'scx_utils'
)
rust: introduce scx_rustland_core crate Introduce a separate crate (scx_rustland_core) that can be used to implement sched-ext schedulers in Rust that run in user-space. This commit only provides the basic layout for the new crate and the abstraction to the custom allocator. In general, any scheduler that has a user-space component needs to use the custom allocator to prevent potential deadlock conditions, caused by page faults (a kthread needs to run to resolve the page fault, but the scheduler is blocked waiting for the user-space page fault to be resolved => deadlock). However, we don't want to necessarily enforce this constraint to all the existing Rust schedulers, some of them may do all user-space allocations in safe paths, hence the separate scx_rustland_core crate. Merging this code in scx_utils would force all the Rust schedulers to use the custom allocator. In a future commit the scx_rustland backend will be moved to scx_rustland_core, making it a totally generic BPF scheduler framework that can be used to implement user-space schedulers in Rust. Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2024-02-24 14:56:34 +00:00
subdir
(
'scx_rustland_core'
)
Reference in New Issue
Copy Permalink