Historical: Linux-based prototype
CPU scheduling
This page documents the earlier Linux-based prototype as of 24 November 2026. It does not describe the independent Khelforge OS, and its steps are not instructions for it. See the independent Khelforge OS.
The scheduler decides which program runs on which processor core and for how long. This page explains the idea and states what Khelforge does, which is to use Arch’s standard kernel without changes.
General background
Section titled “General background”- A game usually has one or two threads that must finish before each frame, and several helper threads. If a critical thread waits for a core, the frame is late.
- The standard Linux scheduler aims to be fair. Fairness over a second can still mean a late frame in a particular 10 milliseconds.
- Nice values and control groups change how time is divided. They do not create more time.
- Processors with different core types, or with several groups of cores that do not share a cache, make placement matter. A thread on a slower core or far from its data runs slower.
- The frequency governor decides how quickly a core speeds up. Reaching full speed takes time and depends on power and heat.
- Alternative schedulers exist. Their effect depends on the game, the processor and the background load, and must be measured.
What Khelforge does today
Section titled “What Khelforge does today”| Topic | State |
|---|---|
| Kernel | Arch’s linux package. No Khelforge kernel and no patches |
| Custom scheduler or tuning | None |
| Frequency governor | Not changed. The average frequency is shown |
| Core placement for games | None |
| GameMode | Optional package, untested |
Task Manager shows processor use per process as a share of the whole machine, so the list adds up to the total.
The installer does not offer a long-term-support kernel as a fallback.
What is planned
Section titled “What is planned”Nothing specific to scheduling is planned. More frames are never promised from a kernel choice alone, so any change would need a measured comparison first.