IT lexicon › Infra & Ops › Page Replacement

Page Replacement

Infra & Ops På svenska → Updated: 2026-11-11

A strategy for deciding which memory pages to evict from the buffer pool when it fills up.

A database engine keeps a buffer pool — a RAM region caching disk pages (typically 4–8 KB each). As long as your working set fits in memory, all access is fast. But when a new page is needed and the pool is full, which old page should be evicted? LRU (least-recently-used) is classic: evict the page accessed longest ago — odds are you won't need it soon. Other strategies: FIFO (first-in-first-out), second chance (give a page a second chance before eviction), or adaptive replacement cache blending LRU and frequency information. A bad replacement policy can cause thrashing: writing pages to disk and re-reading them repeatedly, killing performance.

← Back to the lexicon