summaryrefslogtreecommitdiffstats
path: root/sys/kern/sysv_sem.c
diff options
context:
space:
mode:
authorivoras <ivoras@FreeBSD.org>2010-06-11 09:27:33 +0000
committerivoras <ivoras@FreeBSD.org>2010-06-11 09:27:33 +0000
commit5a89fd1114cc055295c363ef4aafd8522a0ce607 (patch)
tree32d9302af2dcbba09c3fe9dd300c9fc71a42af35 /sys/kern/sysv_sem.c
parent829c1db4fbffcfe33ef1ea1d33c4b49bb8b80773 (diff)
downloadFreeBSD-src-5a89fd1114cc055295c363ef4aafd8522a0ce607.zip
FreeBSD-src-5a89fd1114cc055295c363ef4aafd8522a0ce607.tar.gz
In another move to join with the age of the Fruitbat, increase SYSV
shared resources defaults beyond absolute minimums. The new values are chosen mostly by magic. They are still fairly small and will need increasing for large installations (especially SHMMAX). However, they are now enough to e.g. start PostgreSQL installations with ~~300 users and nearly 512 MB of shared buffers. Reviewed by: A short discussion on hackers@
Diffstat (limited to 'sys/kern/sysv_sem.c')
-rw-r--r--sys/kern/sysv_sem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/sysv_sem.c b/sys/kern/sysv_sem.c
index f6d781c7..cdf8d7b 100644
--- a/sys/kern/sysv_sem.c
+++ b/sys/kern/sysv_sem.c
@@ -133,16 +133,16 @@ struct sem_undo {
* Configuration parameters
*/
#ifndef SEMMNI
-#define SEMMNI 10 /* # of semaphore identifiers */
+#define SEMMNI 50 /* # of semaphore identifiers */
#endif
#ifndef SEMMNS
-#define SEMMNS 60 /* # of semaphores in system */
+#define SEMMNS 340 /* # of semaphores in system */
#endif
#ifndef SEMUME
-#define SEMUME 10 /* max # of undo entries per process */
+#define SEMUME 50 /* max # of undo entries per process */
#endif
#ifndef SEMMNU
-#define SEMMNU 30 /* # of undo structures in system */
+#define SEMMNU 150 /* # of undo structures in system */
#endif
/* shouldn't need tuning */
OpenPOWER on IntegriCloud