mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
Raise the SysV shared memory defaults to more reasonable values.
Mainly increases the shared memory limit from 4M to 32M (approx). Many more programs these days use SysV shared memory, especially X-related programs.
This commit is contained in:
parent
6c49a8e295
commit
1766b2e5fa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76275
@ -106,7 +106,7 @@ static void shmfork_myhook __P((struct proc *p1, struct proc *p2));
|
||||
* Tuneable values
|
||||
*/
|
||||
#ifndef SHMMAXPGS
|
||||
#define SHMMAXPGS 1024 /* XXX increase this, it's not in kva! */
|
||||
#define SHMMAXPGS 8192 /* note: sysv shared memory is swap backed */
|
||||
#endif
|
||||
#ifndef SHMMAX
|
||||
#define SHMMAX (SHMMAXPGS*PAGE_SIZE)
|
||||
@ -115,10 +115,10 @@ static void shmfork_myhook __P((struct proc *p1, struct proc *p2));
|
||||
#define SHMMIN 1
|
||||
#endif
|
||||
#ifndef SHMMNI
|
||||
#define SHMMNI 96
|
||||
#define SHMMNI 192
|
||||
#endif
|
||||
#ifndef SHMSEG
|
||||
#define SHMSEG 64
|
||||
#define SHMSEG 128
|
||||
#endif
|
||||
#ifndef SHMALL
|
||||
#define SHMALL (SHMMAXPGS)
|
||||
|
Loading…
Reference in New Issue
Block a user