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_rustland_core: small core design improvements #568

Merged
merged 4 commits into from
Aug 26, 2024

Commits on Aug 26, 2024

  1. scx_rustland_core: temporarily drop RL_PREEMPT_CPU

    Temporarily drop the RL_PREEMPT_CPU flag, we need a better way to
    implement preemption in scx_rustland_core and it's not very effective at
    the moment, so simply it drop it for now (it'll be re-added later in the
    future in a proper way).
    
    This change does not affect any scheduler, since RL_PREEMPT_CPU is
    currently unused.
    
    Signed-off-by: Andrea Righi <[email protected]>
    arighi committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    2ee07bb View commit details
    Browse the repository at this point in the history
  2. scx_rustland_core: allow to propagate vtime to BPF

    Introduce a vtime attribute to struct DispatchedTask that can be set by
    the user-space scheduler and it'll be use by the BPF component to
    dispatch the task via scx_bpf_dispatch_vtime().
    
    In this way a user-space scheduler can decide to apply its own internal
    task ordering or rely on the BPF vtime priority DSQs (or both).
    
    Signed-off-by: Andrea Righi <[email protected]>
    arighi committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    820fc5a View commit details
    Browse the repository at this point in the history
  3. scx_rlfifo: enhance code design

    Refactor the code design to make it more suitable as a template for
    implementing advanced scheduling policies.
    
    In particular, create separate loops for task consumption and task
    dispatching. This will make the scheduler easier to adapt as a
    foundation for implementing more complex scheduling policies.
    
    Signed-off-by: Andrea Righi <[email protected]>
    arighi committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    1427d7d View commit details
    Browse the repository at this point in the history
  4. scx_rustland_core: update README.md with a FIFO example

    Include the FIFO example directly in the README.md, instead of linking
    scx_rlfifo.
    
    Including the example directly in the README can be more useful and
    practical in those cases where internet access is not available or when
    we need to distribute a more "standalone" documentation.
    
    Signed-off-by: Andrea Righi <[email protected]>
    arighi committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    0bdbb25 View commit details
    Browse the repository at this point in the history