Skip to content

feat: TUI config panel, q to quit, qs background manager - #14

Merged
AnikethTS merged 1 commit into
mainfrom
feat/tui-config-panel
Jun 1, 2026
Merged

AnikethTS merged 1 commit into
mainfrom
feat/tui-config-panel

Conversation

@AnikethTS

Copy link
Copy Markdown
Owner

TUI config panel (press C):

  • Centred overlay with 4 live-tunable settings:
    mem-pressure-pct, io-pressure-pct, nice-rt-max, batch-cpuperf-pct
  • UP/DN to navigate rows, LT/RT to cycle presets, C to close
  • Changes take effect immediately: mem/io thresholds update C globals;
    nice-rt-max and batch-cpuperf are written to BPF dynamic_cfg map
    (new fields: batch_cpuperf_live, nice_rt_max_live, nice_rt_max_set)
    so BPF picks them up without a restart
  • Keys polled at 100 ms; keypress triggers instant redraw from cache
  • Footer shows "c:config" hint

q / Q key quits the TUI immediately.

qs script (installed alongside binary):

  • qs start scx_quicksched in background (--no-tui)
  • qs --status show pid and uptime
  • qs stop send SIGTERM, remove PID file
  • qs [flags...] pass through to scx_quicksched in TUI mode
  • Uses --pidfile so binary writes its own PID and removes it on exit
  • Makefile install/uninstall updated to include qs

@AnikethTS AnikethTS self-assigned this Jun 1, 2026
@AnikethTS
AnikethTS merged commit 0101c05 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