Mehdi Akiki

Writing archive

Everything published under Writing, newest first. Each entry is labelled as part of an investigation, an article or reference. Short engineering notes have their own archive.

  • Published on

    Investigation · Part 20 of 20 · From source to a running process

    What Happens When a Process Exits

    A line printed twice, output lost with _exit, a Drop that never runs, a zombie without memory. I followed the end of C and Rust processes with strace and /proc: stdio buffers, exit handlers, exit codes, exit_group, and what the kernel cleans up.
  • Published on

    Investigation · Part 20 of 20 · When the benchmark lies

    A Benchmark Result Someone Else Can Check

    For the last part, I ran two earlier parts again with the same script. The assembly was identical, part 1 ran 10 to 14 percent faster, and the conclusions of both parts held. This is what a result must carry so that someone else can make the same check.
  • Published on

    Investigation · Part 19 of 20 · When the benchmark lies

    The Microbenchmark Won and the Program Got Slower

    Alone, a lookup table was four times faster than a division. In a loop that also used 1 to 8 MiB of its own counters, the same table made the whole loop 4 to 34 percent slower. The microbenchmark had the cache for itself, and the program had to share it.