Skip to content

Commit cc384fa

Browse files
committed
Round up shmem size estimate to 1Kb boundary.
1 parent 86482e1 commit cc384fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/storage/ipc/ipci.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.25 1999/05/28 17:03:29 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.26 1999/05/31 18:28:52 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -83,6 +83,8 @@ CreateSharedMemoryAndSemaphores(IPCKey key, int maxBackends)
8383
size += MMShmemSize();
8484
#endif
8585
size += 100000;
86+
/* might as well round it off to a multiple of a K or so... */
87+
size += 1024 - (size % 1024);
8688

8789
if (DebugLvl > 1)
8890
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy