diff options
author | dillon <dillon@FreeBSD.org> | 2001-05-04 18:43:19 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2001-05-04 18:43:19 +0000 |
commit | 389d1c1b278f2660c04eb7f18cdf6ebc96fc020d (patch) | |
tree | 9abf349af4f2e35e0d0c8fe6bcb9acfe1ee89696 | |
parent | 79ebab510f5c7c1d61b1bc87210050d19929e4f5 (diff) | |
download | FreeBSD-src-389d1c1b278f2660c04eb7f18cdf6ebc96fc020d.zip FreeBSD-src-389d1c1b278f2660c04eb7f18cdf6ebc96fc020d.tar.gz |
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.
-rw-r--r-- | sys/kern/sysv_shm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c index 81b27f3..fab53a8 100644 --- a/sys/kern/sysv_shm.c +++ b/sys/kern/sysv_shm.c @@ -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) |