diff options
| author | Ivan Voras <ivoras@FreeBSD.org> | 2010-06-11 09:27:33 +0000 |
|---|---|---|
| committer | Ivan Voras <ivoras@FreeBSD.org> | 2010-06-11 09:27:33 +0000 |
| commit | c1e34abff860b999b38419f187f486f4bd6b8561 (patch) | |
| tree | 32d9302af2dcbba09c3fe9dd300c9fc71a42af35 | |
| parent | 72f27fcbb150846d6324f29c527d8d9a35a44e47 (diff) | |
| download | src-c1e34abff860.tar.gz src-c1e34abff860.zip | |
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@
Notes
Notes:
svn path=/head/; revision=209037
| -rw-r--r-- | sys/kern/sysv_sem.c | 8 | ||||
| -rw-r--r-- | sys/kern/sysv_shm.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/sysv_sem.c b/sys/kern/sysv_sem.c index f6d781c71e11..cdf8d7b23a3a 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 */ diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c index ddf4ce1abede..39e0923c43ba 100644 --- a/sys/kern/sysv_shm.c +++ b/sys/kern/sysv_shm.c @@ -133,7 +133,7 @@ static int sysctl_shmsegs(SYSCTL_HANDLER_ARGS); * Tuneable values. */ #ifndef SHMMAXPGS -#define SHMMAXPGS 8192 /* Note: sysv shared memory is swap backed. */ +#define SHMMAXPGS 131072 /* Note: sysv shared memory is swap backed. */ #endif #ifndef SHMMAX #define SHMMAX (SHMMAXPGS*PAGE_SIZE) |
