[KongchangAI]
Conceptshared buffers / Postgres共享缓冲区

shared_buffers

The most fundamental memory configuration parameter in PostgreSQL, controlling the size of shared memory allocated to database processes for caching data pages, and directly affecting cache hit rates and I/O performance.

Timeline (last 90 days)

Oct 12

Postgres's shared_buffers is a memory pool used to cache data pages, and its default value is typically only 128MB.

Unverified50%
Oct 12

In cloud environments where storage I/O is expensive, reasonably increasing shared_buffers and effective_cache_size can significantly reduce physical disk access and is one of the lowest-cost optimization measures.

Unverified50%
Oct 4

The official Postgres documentation has long recommended setting shared_buffers to approximately 25% of system memory.

Unverified50%

All Facts (3)

Source Articles