Quota OS

ARM64 / RESOURCE-PARTITIONED OS

Critical tasks get
their CPU time on schedule.

Quota OS is an experimental ARM64 operating system. It reserves CPU time for critical tasks, admits applications when capacity is available, and shares spare time among ordinary workloads.

Run Quota OSBrowse source ↗

Demo configuration

Processor
ARM64 · Cortex-A35 (QEMU, 1 core)
Memory
64 MiB
Display
1280 × 800 · LVGL / ramfb
Timing
QEMU TCG · icount guest clock

Three tiers of CPU allocation

TIER 1

Vendor reserved

The speedometer and timer service use fixed CPU slots.

TIER 2

User selected

The dashcam starts with user approval and sufficient capacity for its declared minimum.

TIER 3

Shared resources

Music and desktop interaction share remaining CPU time under a common cap.

Compare

Quota OS explores resource isolation for automotive instruments and eVTOL displays. Critical display work has a fixed CPU slot, admitted applications receive a minimum, and ordinary workloads share a capped pool.

CPU policy and admission
SystemResource mechanismQuota OS comparison
QNXAdaptive partitions allocate minimum CPU shares to groups of threads and share spare capacity.Quota OS gives applications three explicit admission policies and caps the aggregate best-effort pool. Official docs
seL4 MCSScheduling contexts carry a budget and period and can transfer execution budget across IPC.System integrators define policy with those primitives. Quota OS defines the tier and admission policy in the OS. Official docs
LinuxSCHED_DEADLINE provides runtime, deadline and period parameters, admission control and optional bandwidth reclaiming.An integrator can combine Linux controls to build similar isolation. Quota OS exposes the three-tier policy directly. Official docs
VxWorks 653ARINC 653-style time and space partitioning separates workloads into configured partitions.Fixed partition timing is closest to Tier 1. Quota OS also demonstrates user-approved reservations and an aggregate shared pool. Official docs

The published QEMU icount tests cover CPU scheduling and guest framebuffer commits. Comparative real-hardware latency, aircraft flight control, and safety certification remain outside the verified scope.

Speed keeps updating under desktop load

100 / 100Speed frames submitted / periods sampled
0Missed speedometer deadlines
0Tier 3 pool overruns

This QEMU TCG icount test measured guest framebuffer commits. GPU queue timing, host presentation, and physical display latency await verification.

Read the serial log ↗

Run in QEMU

Install QEMU with ARM64 system emulation, then run these commands.

git clone https://github.com/leiquan/Quota-OS.git
cd Quota-OS
bash tools/run-files.sh

Read the README and test records ↗

Development

Build the desktop from source

On macOS with Homebrew LLVM and LLD installed, run these commands from the repository root. QEMU ARM64 runs the resulting kernel with one Cortex-A35 core and 64 MiB of RAM.

bash tools/build-lvgl-macos.sh
QUOTA_KERNEL=build/quotaos-lvgl.bin bash tools/run-files.sh

C development inside Quota OS

In an empty Notes document, choose C Example or type the code below. Choose Save As... and enter demo.c. Open Apps → Shell, type a command at the quota> prompt, and press Enter. Type cc on its own to see an example using your saved filename.

int main(void) {
    puts("Hello, Quota OS!");
    return 0;
}
cc demo.c -o hello
./hello

The initial C subset accepts a header-free int main(void), one puts string literal, and return 0. The executable runs in Tier 3. Tier 2 launch parameters are pending.