Skip to content
Skills Library
Programming · Planning

os-kernel-architecture

/os-kernel-architecture

Operating-system and kernel architecture decisions: monolithic vs microkernel vs hybrid vs unikernel/exokernel, scheduler design, virtual memory & paging, IPC mechanisms, syscall/ABI boundaries, and interrupt handling. Architect-level trade-offs, not driver implementation. USE WHEN: designing or evaluating an OS/kernel, RTOS-vs-GPOS choice, kernel structure, scheduler/memory/IPC subsystem design, syscall/ABI surface, "monolithic", "microkernel", "unikernel", "exokernel", "scheduler", "virtual memory", "IPC". DO NOT USE FOR: Windows driver implementation (use windows driver skills); app-level c

Licence
MIT
Last repository change
21.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 21.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Operating-system and kernel architecture decisions: monolithic vs microkernel vs hybrid vs unikernel/exokernel, scheduler design, virtual memory & paging, IPC mechanisms, syscall/ABI boundaries, and interrupt handling. Architect-level trade-offs, not driver implementation. USE WHEN: designing or evaluating an OS/kernel, RTOS-vs-GPOS choice, kernel structure, scheduler/memory/IPC subsystem design, syscall/ABI surface, "monolithic", "microkernel", "unikernel", "exokernel", "scheduler", "virtual memory", "IPC". DO NOT USE FOR: Windows driver implementation (use windows driver skills); app-level c

Triggers from the description

monolithicmicrokernelunikernelexokernelschedulervirtual memoryIPC
Original author description

Operating-system and kernel architecture decisions: monolithic vs microkernel vs hybrid vs unikernel/exokernel, scheduler design, virtual memory & paging, IPC mechanisms, syscall/ABI boundaries, and interrupt handling. Architect-level trade-offs, not driver implementation. USE WHEN: designing or evaluating an OS/kernel, RTOS-vs-GPOS choice, kernel structure, scheduler/memory/IPC subsystem design, syscall/ABI surface, "monolithic", "microkernel", "unikernel", "exokernel", "scheduler", "virtual memory", "IPC". DO NOT USE FOR: Windows driver implementation (use windows driver skills); app-level c

How it works

  1. Kernel structure — the core decision
  2. Subsystems the architecture must pin down
  3. When to recommend what
Original SKILL.md headings · 42 lines, 353 words
SKILL.md preview
---
name: os-kernel-architecture
description: |
  Operating-system and kernel architecture decisions: monolithic vs microkernel
  vs hybrid vs unikernel/exokernel, scheduler design, virtual memory & paging,
  IPC mechanisms, syscall/ABI boundaries, and interrupt handling. Architect-level
  trade-offs, not driver implementation.

  USE WHEN: designing or evaluating an OS/kernel, RTOS-vs-GPOS choice, kernel
  structure, scheduler/memory/IPC subsystem design, syscall/ABI surface, "monolithic",
  "microkernel", "unikernel", "exokernel", "scheduler", "virtual memory", "IPC".

  DO NOT USE FOR: Windows driver implementation (use windows driver skills);
  app-level concurrency (use language skills); container internals (use `virtualization`).
allowed-tools: Read, Grep, Glob
---
# OS / Kernel Architecture

Architect-level decisions for operating systems and kernels.

## Kernel structure — the core decision

| Structure | Idea | Pros | Cons | Fits |
|---|---|---|---|---|
| **Monolithic** | All services in kernel space (Linux) | Fast (no IPC for services), mature | Large TCB, a fault can panic the system | General-purpose, performance-first |
| **Microkernel** | Minimal kernel; drivers/FS/net as user servers (seL4, QNX) | Isolation, verifiability, restartable servers | IPC cost on hot paths | Safety/security-critical, high-assurance |
| **Hybrid** | Monolithic core + some servers (XNU, NT) | Pragmatic balance | Ambiguous boundaries | Commercial desktop/mobile OS |
| **Unikernel** | App + minimal libOS into one address space (MirageOS) | Tiny attack surface, fast boot | Single app, weak isolation within | Single-purpose cloud/edge appliances |
| **Exokernel** | Kernel only multiplexes hardware; libOS in app | Max app control | Complexity pushed to apps | Research / specialized perf |

Decision drivers: **isolation/assurance vs IPC overhead**, TCB size, fault
containment, restartability, verification goals (seL4 = formally verified).

## Subsystems the architecture must pin down

- **Scheduler**: fairness (CFS) vs real-time (RMS/EDF, priority + inheritance to
  avoid priority inversion) vs throughput (batch). Preemptible vs cooperative.
  Tickless vs periodic tick. SMP load balancing, CPU affinity, NUMA awareness.
- **Memory management**: virtual memory + paging, page table levels, TLB
  pressure, huge pages, demand paging vs pinned, copy-on-write, NUMA placement,
  OOM policy. MMU-less (embedded) changes everything.
- **IPC**: synchronous rendezvous (seL4/L4) vs async message queues vs shared
  memory + doorbells. IPC latency is the microkernel make-or-break metric.
- **Syscall/ABI**: trap vs `syscall` instruction, vDSO for hot read-only calls,
  capability-based vs ambient-authority, ABI stability contract.
- **Interrupts**: top-half/bottom-half split, threaded IRQs, interrupt latency
  and determinism (hard real-time needs bounded latency), MSI/MSI-X.

## When to recommend what
- Need **provable isolation / restartable drivers** → microkernel (seL4/QNX).
- Need **max throughput, rich ecosystem** → monolithic (Linux).
- **Single cloud/edge appliance** → unikernel.
- **Hard real-time** → RTOS or PREEMPT_RT, EDF/RMS scheduling, bounded IRQ
  latency (see `embedded-rtos`).

Load deeper material with `fetch_docs("os-kernel-architecture", <topic>)` when
the knowledge base has it.

Versions

The database has no other skills named os-kernel-architecture.

Database snapshot: 13.11.2026 · package version 4a1fbb57bc75 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 93wk-windows-architecture
    Use when reasoning about the execution environment a Windows driver runs in - EPROCESS/ETHREAD and PEB/TEB, user versus kernel address space, virtual and physical page-states, kernel stack limits, system calls and previous mode, the executive subsystem map, IRQL as an execution…
  • 100linux-kernel-architecture
    Linux kernel architecture skill for subsystem overview. Use when navigating kernel source, understanding boot flow, initcalls, or major subsystems (VFS, scheduler, MM). Activates on queries about kernel architecture, boot process, initcall levels, subsystem layout, or where code lives in linux.git.
  • 90architecture-paradigm-microkernel
    Applies microkernel architecture with minimal core and plugin extensibility. Use when building platforms where third parties extend core functionality.
  • 100kernel-development
    Use this skill when the user says 'kernel module', 'Linux driver', 'device driver', 'ring 0', 'system call', 'interrupt handler', 'spinlock', 'RCU', 'kernel panic', 'oops', 'write an OS', 'bootloader', 'page tables', 'Rust for Linux'. Covers OS internals and Linux kernel…
  • 100linux-kernel-architecture
    Use when navigating kernel source, understanding boot flow, initcall levels, or major subsystems (VFS, scheduler, MM) in linux.git. Not for driver-model depth: use device-drivers.
  • 90kernel-debug
    Attach to a live Windows kernel target over KDNET, a named pipe, or serial and drive it. Use when the user wants to debug a kernel, a driver, or a bugchecking VM. For a kernel crash dump file (MEMORY.DMP, a minidump) use analyze-dump instead.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.