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@
This commit is contained in:
parent
72f27fcbb1
commit
c1e34abff8
@ -133,16 +133,16 @@ struct sem_undo {
|
|||||||
* Configuration parameters
|
* Configuration parameters
|
||||||
*/
|
*/
|
||||||
#ifndef SEMMNI
|
#ifndef SEMMNI
|
||||||
#define SEMMNI 10 /* # of semaphore identifiers */
|
#define SEMMNI 50 /* # of semaphore identifiers */
|
||||||
#endif
|
#endif
|
||||||
#ifndef SEMMNS
|
#ifndef SEMMNS
|
||||||
#define SEMMNS 60 /* # of semaphores in system */
|
#define SEMMNS 340 /* # of semaphores in system */
|
||||||
#endif
|
#endif
|
||||||
#ifndef SEMUME
|
#ifndef SEMUME
|
||||||
#define SEMUME 10 /* max # of undo entries per process */
|
#define SEMUME 50 /* max # of undo entries per process */
|
||||||
#endif
|
#endif
|
||||||
#ifndef SEMMNU
|
#ifndef SEMMNU
|
||||||
#define SEMMNU 30 /* # of undo structures in system */
|
#define SEMMNU 150 /* # of undo structures in system */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* shouldn't need tuning */
|
/* shouldn't need tuning */
|
||||||
|
@ -133,7 +133,7 @@ static int sysctl_shmsegs(SYSCTL_HANDLER_ARGS);
|
|||||||
* Tuneable values.
|
* Tuneable values.
|
||||||
*/
|
*/
|
||||||
#ifndef SHMMAXPGS
|
#ifndef SHMMAXPGS
|
||||||
#define SHMMAXPGS 8192 /* Note: sysv shared memory is swap backed. */
|
#define SHMMAXPGS 131072 /* Note: sysv shared memory is swap backed. */
|
||||||
#endif
|
#endif
|
||||||
#ifndef SHMMAX
|
#ifndef SHMMAX
|
||||||
#define SHMMAX (SHMMAXPGS*PAGE_SIZE)
|
#define SHMMAX (SHMMAXPGS*PAGE_SIZE)
|
||||||
|
Loading…
Reference in New Issue
Block a user