AlgoViz

How the Linux kernel works

medium 40 min

The kernel is the one program that runs with full privilege.

What each level should show

The same question is judged differently for mid, senior and staff.

  • Mid

    Must show

    • User and kernel space, and the three entries
    • fork, execve, wait, and the states R S D Z
    • What the page cache is

    Will be probed on

    • read() step by step
    • Zombie versus orphan

    Stands out

    Names the command that observes each subsystem.

  • Senior

    Must show

    • Traces a command through every subsystem
    • Explains D state and why signals wait
    • Splits waiting into CPU, disk and lock

    Will be probed on

    • kill -9 does nothing
    • Load 40 with idle CPU
    • Minor versus major faults

    Stands out

    Reads vmstat, ps and /proc output and says what it rules out.

  • Staff

    Must show

    • High system CPU broken into %sys, %irq, %soft
    • Containers as namespaces plus cgroups, and their limits
    • Interrupt spreading and NAPI

    Will be probed on

    • Soft lockups and kernel upgrades
    • Noisy neighbours on a shared kernel
    • Cost of observing with strace

    Stands out

    Picks the cheapest check first and knows which tools disturb production.