Linux & Low-Level


  • https://manybutfinite.com/post/page-cache-the-affair-between-memory-and-files/ *

    People are sometimes surprised by this, but all regular file I/O happens through the page cache. In x86 Linux, the kernel thinks of a file as a sequence of 4KB chunks. If you read a single byte from a file, the whole 4KB chunk containing the byte you asked for is read from disk and placed into the page cache.

Edit