Systems Foundations
Trace state across processes and machines, bound concurrent work, recover durable data, and reason quantitatively about failure, reliability and trust.
7 sections · 60 units · about 230 hours
- Instruction pipelines, branches and SIMD4h
- Caches, working sets, bandwidth and NUMA4h
- Processes, system calls, fork, exec and scheduling4h
- File descriptors, pipes, signals and process lifecycle4h
- Virtual memory, page tables, TLBs, page faults and mmap6h
- Resident size, virtual size and allocator retention3h
- Files, page cache, fsync, atomic rename and durability5h
- I/O access patterns and storage devices4h
- Namespaces, cgroups and container boundaries5h
- Binary logic and machine language with Nand2Tetris8h
- Threads, interleavings and memory consistency3h
- Mutexes, condition variables, semaphores and barriers4h
- Atomic operations, compare-and-swap and memory ordering3h
- Data races, lost updates and lost wakeups3h
- Deadlock, livelock, starvation and priority inversion3h
- Bounded queues, admission and backpressure4h
- Cancellation, deadlines and shutdown state machines3h
- Deterministic schedules, stress tests and contention4h
- Event loops, work stealing and structured concurrency2h
- Network layers, addressing, routing and DNS3h
- TCP and UDP transport behavior4h
- TLS and HTTP versions3h
- Sockets, partial reads and writes, and message framing5h
- RPC schemas, versions, errors and trace context3h
- Deadlines, retries and idempotency across RPC4h
- Connection shutdown, pools and latency decomposition4h
- Deterministic network fault injection3h
- Relational model, relational algebra and SQL joins3h
- Aggregations, windows, nulls and point-in-time snapshots3h
- Pages, buffer pools and storage layouts4h
- Hash indexes, B-trees, selectivity and range scans3h
- Sorting, join algorithms and query plans6h
- Transactions and isolation anomalies4h
- Two-phase locking, timestamp ordering and MVCC5h
- Write-ahead logging, recovery, checksums and durability6h
- Record evolution, amplification and LSM trees4h
- Partial failure, clocks and event ordering5h
- Replication, quorums and consensus vocabulary4h
- Consistency models and conflict resolution4h
- Partitioning, hot keys, rebalancing and stale writers3h
- Durable logs, delivery guarantees and idempotent consumers4h
- Consumer lag, watermarks and state rebuild5h
- Distributed histories and deterministic failure simulation6h
- MapReduce execution and data-local scheduling2h
- Metrics, logs, traces, correlation and cardinality3h
- Latency distributions, throughput and saturation3h
- SLIs, SLOs, error budgets and recovery objectives3h
- Little's Law, capacity and queueing approximations4h
- Queue bounds, first saturation and open-loop load3h
- Retry budgets, circuit breaking and load shedding3h
- Failure domains, correctness signals and safe rollout4h
- Backups, runbooks, incident timelines and postmortems3h
- Unit cost, headroom and simpler designs2h
- Security goals, trust boundaries and threat models3h
- Identity, authorization, least privilege and secrets4h
- Tenant isolation, input validation and injection4h
- Audit records, fail-open versus fail-closed and supply chain3h
- Membership inference, extraction, inversion and poisoning4h
- Differential privacy: adjacency, sensitivity, noise and composition5h
- Compatibility, rollback and revocation during changes3h
Final project: Systems Mechanisms & Failure Evidence Pack
Use one small Linux repository and one evolving local service. The three artifacts prove mechanism fluency, bounded behavior and quantitative judgment without requiring a cloud platform, a production database or a consensus implementation.
- Local mechanisms laboratory - process and signal trace, page and locality observations, file durability experiment, bounded queue, controlled concurrency failure, container resource-limit case, raw commands and reproducible measurements
- Fault-tested service slice - versioned framed RPC, request identity, deadlines, retries, cancellation, bounded admission, checksummed append-only state, crash recovery, one transaction or offset invariant and deterministic network, process and storage faults
- Systems evidence dossier - SQL and query-plan example, distributed history, SLO and capacity estimate versus load, telemetry-based incident, threat model, least-privilege tests, safe migration or rollback and one bounded private aggregate with guarantee limits
How it's graded · about 10 to 14 hours
Mechanisms laboratory
Pass: One command rebuilds every lab experiment and asserts its check, with raw output and environment kept for the process, page, durability, queue, concurrency and container cases.
Great: Each timing claim names its oracle, pinning and repeats, and states what it did not test.
Fault-tested service slice
Pass: One command runs the service tests for framing, the fault matrix, deadlines, retries with idempotency, bounded admission with drain and crash recovery against the acknowledged-prefix oracle.
Great: The restart case passes on durable state, and one randomly found schedule is kept as a regression.
Invariants under failure
Pass: The active-admin rule and the atomic effect-plus-offset rule each hold under injected failures, with a failing version kept beside each passing one.
Great: The dossier states the failure model tested for each invariant and what lies outside it.
Distributed contract
Pass: The dossier history holds one permitted and one rejected case checked by the checker, with configuration IDs and fencing tokens recorded.
Great: Every contract sentence points to the scenario that supports it.
Operations
Pass: The SLO, predicted and measured knees and capacity plan agree or explain their difference, and the incident keeps a timeline, recovery measures, postmortem and regression guard.
Great: The capacity plan states what would shed or degrade under growth and why, with its arithmetic.
Trust and privacy
Pass: The dossier holds the threat model, privilege and tenant tests, migration drill and bounded private release with its limits, with passing tests.
Great: Each residual-risk statement is specific enough for a reviewer to write the missing test.