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/amd64 | |
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/amd64')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 7 | ||||
-rw-r--r-- | sys/amd64/include/vmparam.h | 7 |
2 files changed, 0 insertions, 14 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index b1fd32a..f46d9ec 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -73,10 +73,6 @@ #include <sys/vmmeter.h> #include <sys/bus.h> -#ifdef SYSVSHM -#include <sys/shm.h> -#endif - #ifdef SYSVMSG #include <sys/msg.h> #endif @@ -329,9 +325,6 @@ again: valloc(callout, struct callout, ncallout); valloc(callwheel, struct callout_tailq, callwheelsize); -#ifdef SYSVSHM - valloc(shmsegs, struct shmid_ds, shminfo.shmmni); -#endif #ifdef SYSVSEM valloc(sema, struct semid_ds, seminfo.semmni); valloc(sem, struct sem, seminfo.semmns); diff --git a/sys/amd64/include/vmparam.h b/sys/amd64/include/vmparam.h index 0a5847d..b108124 100644 --- a/sys/amd64/include/vmparam.h +++ b/sys/amd64/include/vmparam.h @@ -72,13 +72,6 @@ #define USRTEXT (1*PAGE_SIZE) /* base of user text XXX bogus */ /* - * Size of the Shared Memory Pages page table. - */ -#ifndef SHMMAXPGS -#define SHMMAXPGS 1024 /* XXX until we have more kmap space */ -#endif - -/* * The time for a process to be blocked before being very swappable. * This is a number of seconds which the system takes as being a non-trivial * amount of real time. You probably shouldn't change this; |