Skip to main content

Memory

Scheduling

  • Preemptive and priority-based, with a run queue per CPU core.
  • A 1000 Hz timer tick and a 10-tick (10 ms) time slice.
  • Five scheduling classes: Real-time, Interactive, Compute, Background and Idle.
  • Work stealing — an idle core takes work from a busy one.
  • Inter-processor interrupts for rescheduling and for keeping page-table caches consistent across cores.

Multicore and core types

All three architectures start their secondary cores. On processors with performance and efficiency cores, OMOS detects which is which — Intel hybrid processors and ARM big.LITTLE designs. RISC-V cores are treated as identical.

Timers and clocks

Programs can create timer objects and sleep; the kernel keeps them on a timer wheel.

Power

Hardware discovery

  • ACPI on x86_64 — XSDT/RSDT, MADT for cores and interrupt controllers, MCFG for PCI, SRAT for memory nodes.
  • Device tree on ARM64 and RISC-V.
  • PCI Express configuration through ECAM — bus 0 only for now.

Randomness

The kernel gathers entropy from the CPU (RDRAND, RNDR) or the cycle counter. It’s used for address randomization and is not yet suitable for cryptography.

Resource limits

Processes are grouped into jobs that form a tree with memory and other quota fields. The quotas are recorded but not enforced yet.