- Published on
Investigation · Part 14 of 20 · From source to a running process
What fork Really Copies: Copy-on-Write Measured
fork of a process with 2 GiB of touched memory took 16 ms here, because it copies page tables and not memory. I measured the copies that come later when the child writes, what reading costs, what happens to huge pages, and why posix_spawn stays under a millisecond.