diff options
author | peter <peter@FreeBSD.org> | 2000-03-30 07:17:05 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-03-30 07:17:05 +0000 |
commit | 7f3e149212abaea502b1815e03809f8697c2bfc7 (patch) | |
tree | 05bff4ab78325496ace5f3182e7fdecf4e9ca4c3 /sys/kern/subr_param.c | |
parent | 64a882c3a4eff3ae2cef0d122a0bbb325033ae9e (diff) | |
download | FreeBSD-src-7f3e149212abaea502b1815e03809f8697c2bfc7.zip FreeBSD-src-7f3e149212abaea502b1815e03809f8697c2bfc7.tar.gz |
Make sysv-style shared memory tuneable params fully runtime adjustable
via sysctl. It's done pretty simply but it should be quite adequate.
Also move SHMMAXPGS from $machine/include/vmparam.h as the comments that
went with it were wrong... we don't allocate KVM space for the pages so
that comment is bogus.. The only practical limit is how much physical
ram you want to lock up as this stuff isn't paged out or swap backed.
Diffstat (limited to 'sys/kern/subr_param.c')
-rw-r--r-- | sys/kern/subr_param.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c index 7ae2ade..f26c3ba 100644 --- a/sys/kern/subr_param.c +++ b/sys/kern/subr_param.c @@ -46,10 +46,6 @@ #include <sys/param.h> -#ifdef SYSVSHM -#include <machine/vmparam.h> -#include <sys/shm.h> -#endif #ifdef SYSVSEM #include <sys/sem.h> #endif @@ -91,35 +87,6 @@ int mbuf_wait = 32; /* mbuf sleep time in ticks */ int nsfbufs = NSFBUFS; /* - * Values in support of System V compatible shared memory. XXX - */ -#ifdef SYSVSHM -#ifndef SHMMAX -#define SHMMAX (SHMMAXPGS*PAGE_SIZE) -#endif -#ifndef SHMMIN -#define SHMMIN 1 -#endif -#ifndef SHMMNI -#define SHMMNI 32 /* <= SHMMMNI in shm.h */ -#endif -#ifndef SHMSEG -#define SHMSEG 8 -#endif -#ifndef SHMALL -#define SHMALL (SHMMAXPGS) -#endif - -struct shminfo shminfo = { - SHMMAX, - SHMMIN, - SHMMNI, - SHMSEG, - SHMALL -}; -#endif - -/* * Values in support of System V compatible semaphores. */ |