git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 7a72efd) | patch
Make the number of CLOG buffers adaptive, based on shared_buffers.
Fri, 6 Jan 2012 19:30:23 +0000 (14:30 -0500)
Fri, 6 Jan 2012 19:32:18 +0000 (14:32 -0500)
commit 33aaa139e6302e81b4fbf2570be20188bb974c4f
Make the number of CLOG buffers adaptive, based on shared_buffers.

Previously, this was hardcoded: we always had 8. Performance testing
shows that isn't enough, especially on big SMP systems, so we allow it
to scale up as high as 32 when there's adequate memory. On the flip
side, when shared_buffers is very small, drop the number of CLOG buffers
down to as little as 4, so that we can start the postmaster even
when very little shared memory is available.

Per extensive discussion with Simon Riggs, Tom Lane, and others on
pgsql-hackers.
src/backend/access/transam/clog.c diff | blob | blame | history
src/backend/storage/lmgr/lwlock.c diff | blob | blame | history
src/include/access/clog.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /