Repository navigation
Conversation
|
Saturation benchmark, S0 and S5 ( ThinkPad (perf-device.sh rules: seat0 idle, Intel render node only, the whole run at nice 19 / CPUWeight 1; 16 CPUs; elevator
S0 (unloaded) is the same in A and B: drag p95 5.25 / 5.35, typing 7.75 / 7.7, pointer 5.95 / 6.05, scroll 7.95 / 8.1. † A host bug, not this change (bench found it): in most scroll runs and some pointer runs of both A and B (and at S0) the host logs seldon (8 CPUs 8-11,24-27; A with The sandbox test as root (CI's |
…efficiency cores ADR 0066, decision 6. The backup service's threads were in the scheduler's idle class, which orders them only among the threads of their own control group; that group sat in system.slice, which weighs as much as the person's user.slice, so on a saturated machine a backup took as much as everything the person ran. And its reads' idle class did nothing on an NVMe drive, whose scheduler the kernel leaves at `none`, which ignores I/O priority. - oxyos-backupd.service: CPUWeight=idle (cpu.idle: the group itself yields to its siblings) and IOWeight=10, beside its idle scheduling and I/O classes. - oxyos-installd and oxyos-app-fetch: the utility class, CPUWeight=20, IOWeight=20, nice 10; and the compiler's transient unit the same (a sibling of the service's, it inherits nothing). The sandbox test run as root now checks the compiler's nice and its group's weight. - 60-oxyos-io-scheduler.rules: solid-state NVMe and SATA drives use mq-deadline, which honours the real-time, best-effort and idle classes (since Linux 5.14) at a small cost per request. - oxyos-efficiency-cores, a systemd generator for the system's manager and each user's: on a hybrid processor (Intel's cpu_atom beside cpu_core; elsewhere the CPUs of least cpu_capacity) it holds the backup service and a user's background.slice to the efficiency cores (AllowedCPUs), as a Mac runs its background class on its efficiency cluster; on a processor of one kind it writes nothing. - user@.service.d/50-oxyos-delegate.conf: users' managers are delegated cpuset and io too, so background.slice can be held to those cores and applications' scopes given disk weights. - The deploy installs all of it (tools/deploy/system-files, checked against the image's udev rules, generators and drop-ins by system-files.py), gives the drives their scheduler at once (a change event) and checks it, and checks the backup service's group is idle. A signed-in person's manager takes its new controllers and cores at their next login. io.cost, the only controller that weighs groups on a drive with mq-deadline (and buffered writeback), is not turned on: it needs a cost model and latency targets measured for each drive, or it can hold a fast drive below what it does. IOWeight is declared for when it is. ADR 0059 (decision 2) and ADR 0030 (decision 5) amended; docs/developing.mdx says what the deploy installs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
82bbb3e to
3f55ac6
Compare
ADR 0066, decision 6 (step 5): background work really in the background.
CPUWeight=idle(the group'scpu.idle) andIOWeight=10, beside its idle scheduling and I/O classes. A thread's idle class orders it only inside its own control group; the backup's group sat insystem.slice, which weighs as much as the person'suser.slice, so on a saturated machine a backup took as much as everything the person ran.CPUWeight=20,IOWeight=20, nice 10; the compiler's transient unit the same (a sibling of the service's, it inherits nothing). The root sandbox test now checks the compiler's nice and its group's weight.mq-deadline, which honours the real-time / best-effort / idle classes;none(the kernel's choice for NVMe) ignores them.background.slicerun on the efficiency cores (AllowedCPUs; Intelcpu_atom, or the CPUs of leastcpu_capacityon big.LITTLE); nothing on a processor of one kind. ThinkPad: 8–15.cpusetandiotoo (forbackground.slice's cores and the applications' disk weights).io.cost (the only controller weighing groups on mq-deadline, and buffered writeback) is not turned on: it needs a per-drive cost model and latency targets, or it can hold a fast drive below its throughput;
IOWeightis declared for when it is.ADR 0059 decision 2 and ADR 0030 decision 5 amended; docs/developing.mdx says what the deploy installs. Benchmark numbers (S0/S5, A/B interleaved on seldon and the ThinkPad) follow in a comment and in ADR 0066's step 5 once #509 lands.
🤖 Generated with Claude Code