Files
neon/pageserver/src
Heikki Linnakangas 431d32756b Add a buffer cache, and use it to store materialized pages.
The buffer cache is shared across all tenants, allowing memory to be
dynamically allocated where it's needed the most. The cache works on 8 kB
pages, and uses the clock algorithm for replacement policy; same as the
PostgreSQL buffer cache.

One peculiarity is that the materialized page versions can be looked up
by an inexact LSN, to find the latest page version with an LSN >= the
search key.

The code is structured to support caching other kinds of pages in the same
cache in the future, but with a different mapping key.

Co-authored-by: Patrick Insinger <patrick@zenith.tech>
2021-11-12 11:02:12 -08:00
..
2021-10-27 13:30:34 +03:00
2021-11-11 13:53:39 +03:00
2021-11-11 19:22:05 +02:00
2021-10-27 13:30:34 +03:00
2021-09-02 18:54:44 +03:00
2021-10-14 14:21:23 +03:00