Skip to content

feat: BMQ scheduler and AutoFDO builds - #79

Merged
tmiland merged 5 commits into
tmiland:mainfrom
tmiland-labs:feat/bmq-autofdo
Nov 20, 2026
Merged

tmiland merged 5 commits into
tmiland:mainfrom
tmiland-labs:feat/bmq-autofdo

Conversation

@tmiland-labs

Copy link
Copy Markdown

Adds the BMQ scheduler and AutoFDO build support.

  • --sched bmq: pinned 7.3 PRJC/BMQ patch (0001-prjc-cachy.patch, SHA256 0d3c61ec...), SCHED_ALT=y + SCHED_BMQ=y; requires --source cachyos and is mutually exclusive with BORE; tag -bmq.
  • --autofdo <profile>: enables AUTOFDO_CLANG, builds with LLVM=1, passes CLANG_AUTOFDO_PROFILE, tags -autofdo.
  • --autofdo-collect: profiling build without a profile; saves vmlinux-<release> next to the --dir parent for create_llvm_prof; tag -autofdo-collect.
  • The AutoFDO docs cover the perf sampling (AMD LBR/BRS), profile conversion, and the Rust caveat.

Local: 35/35 tests, shellcheck clean. Real config checks on the CachyOS 7.3.4 tree: the BMQ patch applies and yields SCHED_ALT=y/SCHED_BMQ=y; AutoFDO yields AUTOFDO_CLANG=y with CC_IS_CLANG=y.
CI: Debian 13 builds and boots the BMQ kernel. AutoFDO has unit/CLI coverage only; a full AutoFDO build needs a user profile.

Not a release yet; version stays 1.8.0 until the PR is green.

- --sched bmq: pinned 7.3 PRJC/BMQ patch (SHA256), SCHED_ALT + SCHED_BMQ, mutually exclusive with BORE; tag -bmq.
- --autofdo <profile>: enables AUTOFDO_CLANG, builds with LLVM=1, passes CLANG_AUTOFDO_PROFILE, tags -autofdo.
- --autofdo-collect: profiling build; saves vmlinux next to the --dir parent for profile conversion; tag -autofdo-collect.
Debian 13 builds the CachyOS 7.3.4 source with --sched bmq --profile workstation, verifies SCHED_ALT/SCHED_BMQ, and runs the QEMU boot smoke test.
BMQ replaces CFS: PSI depends on !SCHED_ALT, so the workstation profile cannot assert it, and SCHED_ALT disables SCHED_CLASS_EXT, so --sched-ext must be rejected with --sched bmq. FAIR_GROUP_SCHED and CFS_BANDWIDTH still survive.
- --config-only runs the full config phase (source, patches, profile, flags, olddefconfig, assertions) and exits before compiling.
- CI runs a config-only matrix on PRs (BORE, BORE+LTO, BMQ, RT, hardened, AutoFDO); the full BORE/BMQ/hardened build+boot jobs now run on main and on workflow_dispatch with full_build=true.
@tmiland-labs
tmiland-labs marked this pull request as ready for review November 20, 2026 17:15
@tmiland
tmiland merged commit f71f513 into tmiland:main Nov 20, 2026
23 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.

2 participants