Skip to content

feat: vruntime fairness, wakeup boost, NUMA steal, cpuperf hysteresis… - #15

Merged
AnikethTS merged 1 commit into
mainfrom
feat/scheduler-optimizations-and-gui
Jun 1, 2026
Merged

AnikethTS merged 1 commit into
mainfrom
feat/scheduler-optimizations-and-gui

Conversation

@AnikethTS

Copy link
Copy Markdown
Owner

Scheduler optimizations (BPF):

  • Vruntime batch fairness: batch DSQ now uses scx_bpf_dsq_insert_vtime;
    tasks accumulate CPU time in vruntime and are dispatched in fair order;
    a 100ms lag window prevents starvation of sleeping tasks;
    PF_MEMALLOC gets the lowest vtime (dispatched first within batch)
  • Wakeup boost: tasks waking from >50ms sleep get one interactive-class
    dispatch (nr_wakeup_boosted tracked and shown in TUI as woke-boost row)
    value differs by >5% from the last, reducing unnecessary PM transitions
  • NUMA-aware work stealing: two-pass steal checks same-NUMA-node CPUs
    first, falls back to cross-node; cpu_node map populated from
    /sys/devices/system/node at startup; transparent no-op on single-socket

Userspace:

  • --json mode: outputs one JSON line per stats tick for GUI consumption
  • init_numa_map() reads NUMA topology from sysfs on startup
  • woke-boost row added to TUI SCHEDULING section

GUI (gui/quicksched-gui):

  • GTK4 Python app, no Cairo/matplotlib dependency
  • Live dispatch mix bar (CSS linear-gradient, updated each tick)
  • Wakeup latency (p50/p99) and PSI pressure cards with Unicode sparklines
  • Start/Stop controls (runs sudo scx_quicksched --json)
  • 4 settings dropdowns (mem/io pressure, nice-rt-max, batch-cpuperf)
  • Gaming / Desktop / Server / Battery preset buttons
  • "developed by Aniketh T S" in header bar
  • Installed via make install as quicksched-gui

@AnikethTS AnikethTS self-assigned this Jun 1, 2026
@AnikethTS
AnikethTS merged commit 178813a into main Jun 1, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant