Ashok G

Linux · Kernel · Systems

From the metal up.

These are my notes written down as I work through them, for my own learning and as a hobby

  1. ModelsAttention, the KV cache, why decode is memory-bound
  2. CUDAThreads, warps, PTX, SASS
  3. GPU siliconSMs, register files, HBM, bank conflicts
  4. eBPFWhere Linux finally sees into the GPU
  5. Kernel pathsconnect(), page faults, the scheduler, the verifier
  6. Userland and initA libc, one binary, a small PID 1
  7. The kernel buildConfigured up from allnoconfig
  8. Toolchain and bootA cross-compiler, then firmware to first prompt

Build

Linux, Observed

Build a Linux system from source, then watch every piece run.

All 13 chapters →

Read

Kernel, Traced

Twelve paths through the source. Read them, trace them, change them.

All 14 chapters →

Scale

System Design

From one web request to consensus, overload and full designs.

All 19 chapters →

Understand

Inside the GPU

CUDA from the silicon up, and why LLMs are shaped by it.

All 7 chapters →

Guide

Linux From the Metal Up

Boot, memory, scheduling, filesystems and building your own OS.

Guide

Big-O complexity

What O(n) means, with measured timings, and how to approach it in real code.

Guide

Threads, concurrency and parallelism

From processes to memory ordering, false sharing and async.

Guide

Semaphore vs mutex vs lock

Ownership, signalling, how they are built, and how to choose.

Guide

How Kafka works

From a simple log to replication, transactions and KRaft.

Guide

Redis internals

The protocol, the event loop, and why one thread is fast.

Guide

RDMA, RoCE and NVIDIA networking

Verbs, lossless Ethernet, DCQCN, GPUDirect and Spectrum-X.

Guide

The Kubernetes control plane

The API server, etcd, controllers, Cilium, Flannel and OPA Gatekeeper.

Guide

JWTs, tokens, OAuth and Zero Trust

How tokens are built and broken, every OAuth flow, sessions, and Zero Trust.

Guide

PostgreSQL indexes

Every index type, when to use which, and their limits.

Guide

How TLS works

The handshake, key schedule and when traffic can be decrypted.

Essay

Rust vs Go vs C++

Which language fits which kind of systems work.