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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 7b1110d) | patch
Preallocate some DSM space at startup.
2020年7月31日 05:27:09 +0000 (17:27 +1200)
2020年7月31日 05:49:58 +0000 (17:49 +1200)
commit 84b1c63ad41872792d47e523363fce1f0e230022
Preallocate some DSM space at startup.

Create an optional region in the main shared memory segment that can be
used to acquire and release "fast" DSM segments, and can benefit from
huge pages allocated at cluster startup time, if configured. Fall back
to the existing mechanisms when that space is full. The size is
controlled by a new GUC min_dynamic_shared_memory, defaulting to 0.

Main region DSM segments initially contain whatever garbage the memory
held last time they were used, rather than zeroes. That change revealed
that DSA areas failed to initialize themselves correctly in memory that
wasn't zeroed first, so fix that problem.

Discussion: https://postgr.es/m/CA%2BhUKGLAE2QBv-WgGp%2BD9P_J-%3Dyne3zof9nfMaqq1h3EGHFXYQ%40mail.gmail.com
doc/src/sgml/config.sgml diff | blob | blame | history
src/backend/storage/ipc/dsm.c diff | blob | blame | history
src/backend/storage/ipc/dsm_impl.c diff | blob | blame | history
src/backend/storage/ipc/ipci.c diff | blob | blame | history
src/backend/utils/misc/guc.c diff | blob | blame | history
src/backend/utils/misc/postgresql.conf.sample diff | blob | blame | history
src/backend/utils/mmgr/dsa.c diff | blob | blame | history
src/include/storage/dsm.h diff | blob | blame | history
src/include/storage/dsm_impl.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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