IT lexicon › Infra & Ops › Page cache

Page cache

Infra & Ops På svenska → Updated: 2026-07-31

The kernel's cache of file contents in RAM — the reason free memory on a Linux server always looks alarmingly low.

Every read from disk is kept in memory, and the next read of the same data comes from there without touching the disk. Writes also land in the cache first and are flushed later, which is why write() returns long before the data is actually on disk — and why fsync() exists for anyone needing the guarantee.

The cache takes any memory that would otherwise sit idle, and hands it straight back when a program needs it. So a low figure under "free" in free -h is normal and desirable; the column that matters is available. The misunderstanding is common enough that the site linuxatemyram.com exists purely to explain it.

← Back to the lexicon