Mission 02 Linux Foundation

Own your machine

Your system runs on a Linux box. Know what it's doing.

Read the kernel's view of a process, why memory looks full when it isn't, what the OOM killer does, how systemd keeps services alive, and how containers are built from cgroups and namespaces. Then find what's slow with a method, not a guess.

Start lesson 1 10 lessons 110 drills About 49 min of reading
  1. /proc, /sys, sysctl, and limits: the kernel's view of a process and how to tune it /proc is the kernel telling you the truth about a process: status for state, limits for the contract, fd for the count, smaps_rollup for honest memory, stack for what it is waiting on. Read it before you turn a sysctl. 12 drills · 4 min read
  2. Filesystems and storage: inodes, mounts, durability, the I/O path, and flash wear Disk full has two flavours — bytes and inodes — and deleting a file an open process still holds frees nothing. Check df, df -i, then lsof +L1 before you start deleting things. 10 drills · 9 min read
  3. Memory: RSS vs cache, the OOM killer, swap, and pressure Free memory is supposed to be small — the kernel spends idle RAM on page cache. Read MemAvailable, swap activity and memory pressure instead, and remember that summing RSS double-counts every shared page. 12 drills · 4 min read
  4. Processes and signals: states, zombies, PID 1, and PID exhaustion A process is a PID with a state and a parent. Signals are delivered when the process can run — which is why a D-state task ignores even SIGKILL, and why PID 1 in a container has to handle SIGTERM itself. 12 drills · 4 min read
  5. Users, permissions, and host security: modes, special bits, capabilities, sudo, SSH, and audit Least privilege at every layer, verified by audit: modes decide reads, capabilities hand out slices of root, sudo rules are root shells in disguise, and auditd shipped off-host is what makes any of it provable. 12 drills · 4 min read
  6. Host networking: sockets, port exhaustion, conntrack, filtering, MTU, ARP, and packet capture Every table on a host is indexed by the 5-tuple: sockets, conntrack, filters. Name the table that is full and the fix follows — and 'refused' versus 'timed out' is the first bisection. 12 drills · 4 min read
  7. The troubleshooting method: mitigate first, bisect by evidence Mitigate first, then bisect by evidence: state a hypothesis with the observation that would kill it, name the blast radius of every action, change one thing at a time, and narrate all of it. 12 drills · 4 min read
  8. systemd: units, dependencies, restart policy, targets, journald, boot triage, and timers Wants pulls a unit in, After only orders it. Restart handles failures until the start limit trips. And journalctl -b -1 is where 'why did it reboot' lives — if the journal is persistent. 12 drills · 3 min read
  9. cgroups v2 and namespaces: how a container is assembled and limited A container is a normal process with namespaces for what it can see and cgroups for what it can use. There is no container object in the kernel — which is why every container problem is a Linux problem. 9 drills · 9 min read
  10. Performance method: USE, load average, steal time, the toolkit, profiling, and strace pitfalls USE: for every resource ask utilisation, saturation and errors. Saturation is what hurts latency, and utilisation lies — especially on a throttled container. 7 drills · 4 min read

Loading…