summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-03-30 07:17:05 +0000
committerpeter <peter@FreeBSD.org>2000-03-30 07:17:05 +0000
commit7f3e149212abaea502b1815e03809f8697c2bfc7 (patch)
tree05bff4ab78325496ace5f3182e7fdecf4e9ca4c3 /sys/alpha
parent64a882c3a4eff3ae2cef0d122a0bbb325033ae9e (diff)
downloadFreeBSD-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/alpha')
-rw-r--r--sys/alpha/alpha/machdep.c7
-rw-r--r--sys/alpha/include/vmparam.h8
2 files changed, 0 insertions, 15 deletions
diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c
index 04a5e46..906889e 100644
--- a/sys/alpha/alpha/machdep.c
+++ b/sys/alpha/alpha/machdep.c
@@ -140,10 +140,6 @@
#include <miscfs/procfs/procfs.h>
#include <machine/sigframe.h>
-#ifdef SYSVSHM
-#include <sys/shm.h>
-#endif
-
#ifdef SYSVMSG
#include <sys/msg.h>
#endif
@@ -331,9 +327,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/alpha/include/vmparam.h b/sys/alpha/include/vmparam.h
index b055549..bd08553 100644
--- a/sys/alpha/include/vmparam.h
+++ b/sys/alpha/include/vmparam.h
@@ -95,14 +95,6 @@
#endif
/*
- * PTEs for system V style shared memory.
- * This is basically slop for kmempt which we actually allocate (malloc) from.
- */
-#ifndef SHMMAXPGS
-#define SHMMAXPGS 1024 /* 8mb */
-#endif
-
-/*
* Boundary at which to place first MAPMEM segment if not explicitly
* specified. Should be a power of two. This allows some slop for
* the data segment to grow underneath the first mapped segment.
OpenPOWER on IntegriCloud