From 255108f3858cfd52a63f212ede22059709e926af Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 30 Mar 2000 07:17:05 +0000 Subject: 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. --- sys/kern/subr_param.c | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'sys/kern/subr_param.c') diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c index 7ae2ade9bdca..f26c3ba25870 100644 --- a/sys/kern/subr_param.c +++ b/sys/kern/subr_param.c @@ -46,10 +46,6 @@ #include -#ifdef SYSVSHM -#include -#include -#endif #ifdef SYSVSEM #include #endif @@ -90,35 +86,6 @@ int mbuf_wait = 32; /* mbuf sleep time in ticks */ #endif 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. */ -- cgit v1.2.3