Add shared_memory_type GUC.
Thomas Munro <tmunro@postgresql.org>
Add shared_memory_type GUC. Since 9.3 we have used anonymous shared mmap for our main shared memory region, except in EXEC_BACKEND builds. Provide a GUC so that users can opt for System V shared memory once again, like in 9.2 and earlier. A later patch proposes to add huge/large page support for AIX, which requires System V shared memory and provided the motivation to revive this possibility. It may also be useful on some BSDs. Author: Andres Freund (revived and documented by Thomas Munro) Discussion: https://postgr.es/m/HE1PR0202MB28126DB4E0B6621CC6A1A91286D90%40HE1PR0202MB2812.eurprd02.prod.outlook.com Discussion: https://postgr.es/m/2AE143D2-87D3-4AD1-AC78-CE2258230C05%40FreeBSD.org
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/config.sgml | modified | +25 −0 |
| doc/src/sgml/runtime.sgml | modified | +11 −6 |
| src/backend/port/sysv_shmem.c | modified | +16 −26 |
| src/backend/storage/ipc/ipci.c | modified | +2 −0 |
| src/backend/utils/misc/guc.c | modified | +23 −0 |
| src/backend/utils/misc/postgresql.conf.sample | modified | +6 −0 |
| src/include/storage/pg_shmem.h | modified | +18 −1 |
Documentation touched
Discussion
- Perfomance degradation 9.3 (vs 9.2) for FreeBSD 84 messages · 2014-04-20 → 2014-10-20
- Shared Memory: How to use SYSV rather than MMAP ? 39 messages · 2018-11-20 → 2019-10-03