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 15 of 20 · What survives a crash

    Durability Settings That Trade Your Data for Speed

    SQLite synchronous, PostgreSQL synchronous_commit, MySQL innodb_flush_log_at_trx_commit, Redis appendfsync: each one decides how much a crash may lose. I put them in one table, with a column for each kind of crash. Only SQLite is measured here; the others are their documentation.
  • Published on
    Running generated code safely requires isolation, denied egress, external secret handling, resource limits, authenticated output, and lifecycle cleanup—not only a container.
  • Published on

    Investigation · Part 15 of 20 · When the benchmark lies

    Does Code Alignment Change the Speed of the Same Code?

    I placed the same 11-instruction loop at all 64 positions of a cache line, two copies each, and measured them in shuffled order. At one position the loop was 16 to 21 percent slower, in three runs out of three. The same bytes, a different address, a different speed.