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

0/60
Start hereInstruction pipelines, branches and SIMD
1Machine, Process, Memory & I/O Foundations0 of 10 passed · project: Mechanisms laboratory: kernel, process, memory, file and container
  1. Instruction pipelines, branches and SIMD4h
  2. Caches, working sets, bandwidth and NUMA4h
  3. Processes, system calls, fork, exec and scheduling4h
  4. File descriptors, pipes, signals and process lifecycle4h
  5. Virtual memory, page tables, TLBs, page faults and mmap6h
  6. Resident size, virtual size and allocator retention3h
  7. Files, page cache, fsync, atomic rename and durability5h
  8. I/O access patterns and storage devices4h
  9. Namespaces, cgroups and container boundaries5h
  10. Binary logic and machine language with Nand2Tetris8h
2Concurrency, Scheduling & Bounded Work0 of 9 passed · project: Bounded admission and clean shutdown for the service slice, with forced schedules
  1. Threads, interleavings and memory consistency3h
  2. Mutexes, condition variables, semaphores and barriers4h
  3. Atomic operations, compare-and-swap and memory ordering3h
  4. Data races, lost updates and lost wakeups3h
  5. Deadlock, livelock, starvation and priority inversion3h
  6. Bounded queues, admission and backpressure4h
  7. Cancellation, deadlines and shutdown state machines3h
  8. Deterministic schedules, stress tests and contention4h
  9. Event loops, work stealing and structured concurrency2h
3Networks, Sockets & RPC Contracts0 of 8 passed · project: Versioned framed key-value service with deadlines and fault matrix
  1. Network layers, addressing, routing and DNS3h
  2. TCP and UDP transport behavior4h
  3. TLS and HTTP versions3h
  4. Sockets, partial reads and writes, and message framing5h
  5. RPC schemas, versions, errors and trace context3h
  6. Deadlines, retries and idempotency across RPC4h
  7. Connection shutdown, pools and latency decomposition4h
  8. Deterministic network fault injection3h
4Databases, Transactions & Durable Storage0 of 9 passed · project: Durable service state and PostgreSQL catalog with transaction evidence
  1. Relational model, relational algebra and SQL joins3h
  2. Aggregations, windows, nulls and point-in-time snapshots3h
  3. Pages, buffer pools and storage layouts4h
  4. Hash indexes, B-trees, selectivity and range scans3h
  5. Sorting, join algorithms and query plans6h
  6. Transactions and isolation anomalies4h
  7. Two-phase locking, timestamp ordering and MVCC5h
  8. Write-ahead logging, recovery, checksums and durability6h
  9. Record evolution, amplification and LSM trees4h
5Distributed State, Replication & Streams0 of 8 passed · project: Deterministic replication and stream-replay simulation over the service log
  1. Partial failure, clocks and event ordering5h
  2. Replication, quorums and consensus vocabulary4h
  3. Consistency models and conflict resolution4h
  4. Partitioning, hot keys, rebalancing and stale writers3h
  5. Durable logs, delivery guarantees and idempotent consumers4h
  6. Consumer lag, watermarks and state rebuild5h
  7. Distributed histories and deterministic failure simulation6h
  8. MapReduce execution and data-local scheduling2h
6Observability, Reliability & Quantitative Design0 of 9 passed · project: Telemetry, a load sweep through the knee, overload control and one incident
  1. Metrics, logs, traces, correlation and cardinality3h
  2. Latency distributions, throughput and saturation3h
  3. SLIs, SLOs, error budgets and recovery objectives3h
  4. Little's Law, capacity and queueing approximations4h
  5. Queue bounds, first saturation and open-loop load3h
  6. Retry budgets, circuit breaking and load shedding3h
  7. Failure domains, correctness signals and safe rollout4h
  8. Backups, runbooks, incident timelines and postmortems3h
  9. Unit cost, headroom and simpler designs2h
7Security, Privacy & Safe Evolution0 of 7 passed · project: Threat model, least-privilege tests, a privacy-bounded aggregate and a safe migration
  1. Security goals, trust boundaries and threat models3h
  2. Identity, authorization, least privilege and secrets4h
  3. Tenant isolation, input validation and injection4h
  4. Audit records, fail-open versus fail-closed and supply chain3h
  5. Membership inference, extraction, inversion and poisoning4h
  6. Differential privacy: adjacency, sensitivity, noise and composition5h
  7. 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.