What is the OS page cache (buffer cache), and how does it improve file I/O performance?

Last updated 5 July 2026

  • The page cache (buffer cache) is RAM holding recently accessed file/disk data, so cache hits avoid disk I/O. Read-ahead prefetches sequential blocks.

  • Write-back keeps dirty pages in RAM and flushes later, batching writes. Data can be lost on crash, so fsync() forces durability.

  • It uses LRU-like eviction and grows into free RAM, shrinking when applications need memory.

  • https://www.supportpro.com/blog/page-cache-vs-buffer-cache-whats-actually-happening/
  • https://lwn.net/Articles/930173/
All Operating Systems interview questions