diff options
| author | Tom Lane | 1999-03-06 21:17:56 +0000 |
|---|---|---|
| committer | Tom Lane | 1999-03-06 21:17:56 +0000 |
| commit | 731603a92b115db97c1202df243954195070c500 (patch) | |
| tree | 1f1226cc72e3635f2800042ebfda6316d9f8a2ea /src/backend/storage/ipc/ipci.c | |
| parent | 03842eb03bbded18a55177e40594018f05a73623 (diff) | |
A few further tweaks to shared memory space estimation.
This change brings the default size of the main shmem block back under 1MB,
which is a fairly popular value for the kernel's SHMMAX parameter.
Diffstat (limited to 'src/backend/storage/ipc/ipci.c')
| -rw-r--r-- | src/backend/storage/ipc/ipci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/storage/ipc/ipci.c b/src/backend/storage/ipc/ipci.c index 2f5d1d3a193..e7d6e702bf2 100644 --- a/src/backend/storage/ipc/ipci.c +++ b/src/backend/storage/ipc/ipci.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.22 1999/02/22 06:16:49 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.23 1999/03/06 21:17:41 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -77,14 +77,12 @@ CreateSharedMemoryAndSemaphores(IPCKey key, int maxBackends) * Size of the primary shared-memory block is estimated via * moderately-accurate estimates for the big hogs, plus 100K for * the stuff that's too small to bother with estimating. - * Then we add 10% for a safety margin. */ size = BufferShmemSize() + LockShmemSize(maxBackends); #ifdef STABLE_MEMORY_STORAGE size += MMShmemSize(); #endif size += 100000; - size += size / 10; if (DebugLvl > 1) { |
