2

Righi: Writing a scheduler for Linux in Rust that runs in user-space

 7 months ago
source link: https://lwn.net/Articles/962897/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Writing a scheduler for Linux in Rust that runs in user-space [LWN.net]

The Fast Rust-Based Terminal. Now For Linux. Warp
User: Password: | |

Righi: Writing a scheduler for Linux in Rust that runs in user-space

[Posted February 20, 2024 by corbet]
Andrea Righi has started a blog series on writing a user-space CPU scheduler with the BPF-based extensible scheduler class:
.select_cpu() implements the logic to assign a target CPU to a task that wants to run, typically you have to decide if you want to keep the task on the same CPU or if it needs to be migrated to a different one (for example if the current CPU is busy); if we can find an idle CPU at this stage there's no reason to call the scheduler, the task can be immediately dispatched here.

(Log in to post comments)
The Fast, Rust-Based Terminal. Now For Linux. Warp

Copyright © 2024, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK