From 493a41a46c0aa00f7d7b25034f1873ef4b85af11 Mon Sep 17 00:00:00 2001 From: "Samuel J. Greear" Date: Sat, 5 Nov 2011 15:01:26 -0600 Subject: [PATCH] kernel - sysv - Bump semaphore limits * Bump kern.ipc.semmns, the total number of system semaphores, to 341. This count represents an array of 12-byte tracking structures, 341 of these consumes a single hardware page. * Bump kern.ipc.semmni to accomodate the new semmns limit per the PostgreSQL calculations from http://developer.postgresql.org/pgdocs/postgres/kernel-resources.html --- sys/kern/sysv_sem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/sysv_sem.c b/sys/kern/sysv_sem.c index 6799334bff..c6e8b9d54b 100644 --- a/sys/kern/sysv_sem.c +++ b/sys/kern/sysv_sem.c @@ -69,10 +69,10 @@ struct sem_undo { * Configuration parameters */ #ifndef SEMMNI -#define SEMMNI 10 /* # of semaphore identifiers */ +#define SEMMNI 22 /* # of semaphore identifiers */ #endif #ifndef SEMMNS -#define SEMMNS 60 /* # of semaphores in system */ +#define SEMMNS 341 /* # of semaphores in system */ #endif #ifndef SEMUME #define SEMUME 10 /* max # of undo entries per process */ -- 2.41.0