diff options
-rw-r--r-- | sys/arch/amiga/include/vmparam.h | 21 | ||||
-rw-r--r-- | sys/arch/hp300/include/vmparam.h | 24 | ||||
-rw-r--r-- | sys/arch/hppa/include/vmparam.h | 21 | ||||
-rw-r--r-- | sys/arch/i386/include/vmparam.h | 24 | ||||
-rw-r--r-- | sys/arch/mac68k/include/vmparam.h | 24 | ||||
-rw-r--r-- | sys/arch/macppc/include/vmparam.h | 8 | ||||
-rw-r--r-- | sys/arch/mvme68k/include/vmparam.h | 24 | ||||
-rw-r--r-- | sys/arch/mvme88k/include/vmparam.h | 25 | ||||
-rw-r--r-- | sys/arch/mvmeppc/include/vmparam.h | 8 | ||||
-rw-r--r-- | sys/arch/sparc/include/vmparam.h | 26 | ||||
-rw-r--r-- | sys/arch/sun3/include/vmparam.h | 23 | ||||
-rw-r--r-- | sys/arch/vax/include/vmparam.h | 15 |
12 files changed, 13 insertions, 230 deletions
diff --git a/sys/arch/amiga/include/vmparam.h b/sys/arch/amiga/include/vmparam.h index 7328743e92b..83bb8479726 100644 --- a/sys/arch/amiga/include/vmparam.h +++ b/sys/arch/amiga/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.15 2001/08/15 21:22:29 miod Exp $ */ +/* $OpenBSD: vmparam.h,v 1.16 2001/09/22 18:00:06 miod Exp $ */ /* $NetBSD: vmparam.h,v 1.16 1997/07/12 16:18:36 perry Exp $ */ /* @@ -86,16 +86,6 @@ #endif /* - * Default sizes of swap allocation chunks (see dmap.h). - * The actual values may be changed in vminit() based on MAXDSIZ. - * With MAXDSIZ of 16Mb and NDMAP of 38, dmmax will be 1024. - * DMMIN should be at least ctod(1) so that vtod() works. - * vminit() insures this. - */ -#define DMMIN 32 /* smallest swap allocation */ -#define DMMAX NBPG /* largest potential swap allocation */ - -/* * Sizes of the system and user portions of the system page table. */ #define USRPTSIZE (1 * NPTEPG) /* 16mb */ @@ -128,15 +118,6 @@ #define MAXSLP 20 /* - * A swapped in process is given a small amount of core without being bothered - * by the page replacement algorithm. Basically this says that if you are - * swapped in you deserve some resources. We protect the last SAFERSS - * pages against paging and will just swap you out rather than paging you. - */ -#define SAFERSS 4 /* nominal ``small'' resident set size - protected against replacement */ - -/* * user/kernel map constants */ #define VM_MIN_ADDRESS ((vm_offset_t)0) diff --git a/sys/arch/hp300/include/vmparam.h b/sys/arch/hp300/include/vmparam.h index 6259e5a22c1..6bc09458218 100644 --- a/sys/arch/hp300/include/vmparam.h +++ b/sys/arch/hp300/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.8 2001/08/13 00:13:05 miod Exp $ */ +/* $OpenBSD: vmparam.h,v 1.9 2001/09/22 18:00:09 miod Exp $ */ /* $NetBSD: vmparam.h,v 1.16 1998/08/20 08:33:48 kleink Exp $ */ /* @@ -87,16 +87,6 @@ #endif /* - * Default sizes of swap allocation chunks (see dmap.h). - * The actual values may be changed in vminit() based on MAXDSIZ. - * With MAXDSIZ of 16Mb and NDMAP of 38, dmmax will be 1024. - * DMMIN should be at least ctod(1) so that vtod() works. - * vminit() insures this. - */ -#define DMMIN 32 /* smallest swap allocation */ -#define DMMAX 4096 /* largest potential swap allocation */ - -/* * Sizes of the system and user portions of the system page table. */ #define USRPTSIZE (1 * NPTEPG) /* 4mb */ @@ -138,18 +128,6 @@ */ #define MAXSLP 20 -/* - * A swapped in process is given a small amount of core without being bothered - * by the page replacement algorithm. Basically this says that if you are - * swapped in you deserve some resources. We protect the last SAFERSS - * pages against paging and will just swap you out rather than paging you. - */ -#define SAFERSS 4 /* nominal ``small'' resident set size - protected against replacement */ -/* - * Mach derived constants - */ - /* user/kernel map constants */ #define VM_MIN_ADDRESS ((vaddr_t)0) #define VM_MAXUSER_ADDRESS ((vaddr_t)0xFFF00000) diff --git a/sys/arch/hppa/include/vmparam.h b/sys/arch/hppa/include/vmparam.h index 7030bf782d1..24dd71394ca 100644 --- a/sys/arch/hppa/include/vmparam.h +++ b/sys/arch/hppa/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.16 2001/08/12 20:06:11 miod Exp $ */ +/* $OpenBSD: vmparam.h,v 1.17 2001/09/22 18:00:09 miod Exp $ */ /* * Copyright (c) 1988-1994, The University of Utah and @@ -61,16 +61,6 @@ #define MAXSSIZ (UADDR-USRSTACK) /* max stack size */ #endif -/* - * Default sizes of swap allocation chunks (see dmap.h). - * The actual values may be changed in vminit() based on MAXDSIZ. - * With MAXDSIZ of 64Mb and NDMAP of 62, dmmax will be 4096. - * DMMIN should be at least ctod(1) so that vtod() works. - * vminit() ensures this. - */ -#define DMMIN 32 /* smallest swap allocation */ -#define DMMAX 4096 /* largest potential swap allocation */ - #ifndef USRIOSIZE #define USRIOSIZE ((2*HPPA_PGALIAS)/PAGE_SIZE) /* 2mb */ #endif @@ -94,15 +84,6 @@ */ #define MAXSLP 20 -/* - * A swapped in process is given a small amount of core without being bothered - * by the page replacement algorithm. Basically this says that if you are - * swapped in you deserve some resources. We protect the last SAFERSS - * pages against paging and will just swap you out rather than paging you. - */ -#define SAFERSS (0x4000/NBPG) /* nominal ``small'' resident set size - protected against replacement */ - /* user/kernel map constants */ #define VM_MIN_ADDRESS ((vaddr_t)0) #define VM_MAXUSER_ADDRESS ((vaddr_t)0xc0000000) diff --git a/sys/arch/i386/include/vmparam.h b/sys/arch/i386/include/vmparam.h index 908bfde26ca..81eec059e7d 100644 --- a/sys/arch/i386/include/vmparam.h +++ b/sys/arch/i386/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.20 2001/06/27 06:19:45 art Exp $ */ +/* $OpenBSD: vmparam.h,v 1.21 2001/09/22 18:00:09 miod Exp $ */ /* $NetBSD: vmparam.h,v 1.15 1994/10/27 04:16:34 cgd Exp $ */ /*- @@ -77,15 +77,6 @@ #endif /* - * Default sizes of swap allocation chunks (see dmap.h). - * The actual values may be changed in vminit() based on MAXDSIZ. - * With MAXDSIZ of 16Mb and NDMAP of 38, dmmax will be 1024. - */ -#define DMMIN 32 /* smallest swap allocation */ -#define DMMAX 4096 /* largest potential swap allocation */ -#define DMTEXT 1024 /* swap allocation for text */ - -/* * Size of shared memory map */ #ifndef SHMMAXPGS @@ -108,19 +99,6 @@ */ #define MAXSLP 20 -/* - * A swapped in process is given a small amount of core without being bothered - * by the page replacement algorithm. Basically this says that if you are - * swapped in you deserve some resources. We protect the last SAFERSS - * pages against paging and will just swap you out rather than paging you. - */ -#define SAFERSS 8 /* nominal ``small'' resident set size - protected against replacement */ - -/* - * Mach derived constants - */ - /* XXX Compatibility */ #define APTDPTDI PDSLOT_APTE #define PTDPTDI PDSLOT_PTE diff --git a/sys/arch/mac68k/include/vmparam.h b/sys/arch/mac68k/include/vmparam.h index eabf55ca453..c7743ae2746 100644 --- a/sys/arch/mac68k/include/vmparam.h +++ b/sys/arch/mac68k/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.9 2001/08/13 00:13:05 miod Exp $ */ +/* $OpenBSD: vmparam.h,v 1.10 2001/09/22 18:00:09 miod Exp $ */ /* $NetBSD: vmparam.h,v 1.8 1996/11/15 14:21:00 briggs Exp $ */ /* @@ -118,16 +118,6 @@ #endif /* - * Default sizes of swap allocation chunks (see dmap.h). - * The actual values may be changed in vminit() based on MAXDSIZ. - * With MAXDSIZ of 16Mb and NDMAP of 38, dmmax will be 1024. - * DMMIN should be at least ctod(1) so that vtod() works. - * vminit() insures this. - */ -#define DMMIN 32 /* smallest swap allocation */ -#define DMMAX 4096 /* largest potential swap allocation */ - -/* * Sizes of the system and user portions of the system page table. */ #define USRPTSIZE (1 * NPTEPG) /* 4mb */ @@ -159,18 +149,6 @@ */ #define MAXSLP 20 -/* - * A swapped in process is given a small amount of core without being bothered - * by the page replacement algorithm. Basically this says that if you are - * swapped in you deserve some resources. We protect the last SAFERSS - * pages against paging and will just swap you out rather than paging you. - */ -#define SAFERSS 4 /* nominal ``small'' resident set size - protected against replacement */ -/* - * Mach derived constants - */ - /* user/kernel map constants */ #define VM_MIN_ADDRESS ((vaddr_t)0) #define VM_MAXUSER_ADDRESS ((vaddr_t)(USRSTACK)) diff --git a/sys/arch/macppc/include/vmparam.h b/sys/arch/macppc/include/vmparam.h index 7d8294ac143..e402f26b52c 100644 --- a/sys/arch/macppc/include/vmparam.h +++ b/sys/arch/macppc/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.2 2001/09/05 15:07:06 drahn Exp $ */ +/* $OpenBSD: vmparam.h,v 1.3 2001/09/22 18:00:09 miod Exp $ */ /* $NetBSD: vmparam.h,v 1.1 1996/09/30 16:34:38 ws Exp $ */ /*- @@ -59,12 +59,6 @@ #endif /* - * Min & Max swap space allocation chunks - */ -#define DMMIN 32 -#define DMMAX 4096 - -/* * Size of shared memory map */ #ifndef SHMMAXPGS diff --git a/sys/arch/mvme68k/include/vmparam.h b/sys/arch/mvme68k/include/vmparam.h index 06b672dd8cc..84479837a4d 100644 --- a/sys/arch/mvme68k/include/vmparam.h +++ b/sys/arch/mvme68k/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.9 2001/08/13 00:13:05 miod Exp $ */ +/* $OpenBSD: vmparam.h,v 1.10 2001/09/22 18:00:10 miod Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -85,16 +85,6 @@ #endif /* - * Default sizes of swap allocation chunks (see dmap.h). - * The actual values may be changed in vminit() based on MAXDSIZ. - * With MAXDSIZ of 16Mb and NDMAP of 38, dmmax will be 1024. - * DMMIN should be at least ctod(1) so that vtod() works. - * vminit() insures this. - */ -#define DMMIN 32 /* smallest swap allocation */ -#define DMMAX 4096 /* largest potential swap allocation */ - -/* * Sizes of the system and user portions of the system page table. */ #define USRPTSIZE (1 * NPTEPG) /* 4mb */ @@ -133,18 +123,6 @@ */ #define MAXSLP 20 -/* - * A swapped in process is given a small amount of core without being bothered - * by the page replacement algorithm. Basically this says that if you are - * swapped in you deserve some resources. We protect the last SAFERSS - * pages against paging and will just swap you out rather than paging you. - */ -#define SAFERSS 4 /* nominal ``small'' resident set size - protected against replacement */ -/* - * Mach derived constants - */ - /* user/kernel map constants */ #define VM_MIN_ADDRESS ((vm_offset_t)0) #define VM_MAXUSER_ADDRESS ((vm_offset_t)0xFFF00000) diff --git a/sys/arch/mvme88k/include/vmparam.h b/sys/arch/mvme88k/include/vmparam.h index aab0048b620..646b74dd3e4 100644 --- a/sys/arch/mvme88k/include/vmparam.h +++ b/sys/arch/mvme88k/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.15 2001/08/12 19:30:19 miod Exp $ */ +/* $OpenBSD: vmparam.h,v 1.16 2001/09/22 18:00:10 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1992 Carnegie Mellon University @@ -60,17 +60,6 @@ #endif /* - * Default sizes of swap allocation chunks (see dmap.h). - * The actual values may be changed in vminit() based on MAXDSIZ. - * With MAXDSIZ of 16Mb and NDMAP of 38, dmmax will be 1024. - * DMMIN should be at least ctod(1) so that vtod() works. - * vminit() insures this. - */ -#define DMMIN 32 /* smallest swap allocation */ -#define DMMAX 4096 /* largest potential swap allocation */ -#define DMTEXT 1024 /* swap allocation for text */ - -/* * Size of shared memory map */ #ifndef SHMMAXPGS @@ -88,18 +77,6 @@ */ #define MAXSLP 20 -/* - * A swapped in process is given a small amount of core without being bothered - * by the page replacement algorithm. Basically this says that if you are - * swapped in you deserve some resources. We protect the last SAFERSS - * pages against paging and will just swap you out rather than paging you. - */ -#define SAFERSS 4 /* nominal ``small'' resident set size - protected against replacement */ - -/* - * Mach derived constants - */ #define VM_MIN_ADDRESS ((vm_offset_t) 0) #define VM_MAX_ADDRESS ((vm_offset_t) 0xffc00000U) #define VM_MAXUSER_ADDRESS VM_MAX_ADDRESS diff --git a/sys/arch/mvmeppc/include/vmparam.h b/sys/arch/mvmeppc/include/vmparam.h index 5b55db829be..418d3cda2da 100644 --- a/sys/arch/mvmeppc/include/vmparam.h +++ b/sys/arch/mvmeppc/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.4 2001/09/02 19:40:25 miod Exp $ */ +/* $OpenBSD: vmparam.h,v 1.5 2001/09/22 18:00:10 miod Exp $ */ /* $NetBSD: vmparam.h,v 1.1 1996/09/30 16:34:38 ws Exp $ */ /*- @@ -59,12 +59,6 @@ #endif /* - * Min & Max swap space allocation chunks - */ -#define DMMIN 32 -#define DMMAX 4096 - -/* * Size of shared memory map */ #ifndef SHMMAXPGS diff --git a/sys/arch/sparc/include/vmparam.h b/sys/arch/sparc/include/vmparam.h index c0217e6c254..b0133f9268d 100644 --- a/sys/arch/sparc/include/vmparam.h +++ b/sys/arch/sparc/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.18 2001/06/27 06:19:55 art Exp $ */ +/* $OpenBSD: vmparam.h,v 1.19 2001/09/22 18:00:10 miod Exp $ */ /* $NetBSD: vmparam.h,v 1.13 1997/07/12 16:20:03 perry Exp $ */ /* @@ -79,17 +79,6 @@ #endif /* - * Default sizes of swap allocation chunks (see dmap.h). - * The actual values may be changed in vminit() based on MAXDSIZ. - * With MAXDSIZ of 16Mb and NDMAP of 38, dmmax will be 1024. - * DMMIN should be at least ctod(1) so that vtod() works. - * vminit() insures this. - */ -#define DMMIN 32 /* smallest swap allocation */ -#define DMMAX NBPG /* largest potential swap allocation */ -#define DMTEXT 1024 /* swap allocation for text */ - -/* * Size of shared memory map */ #ifndef SHMMAXPGS @@ -108,19 +97,6 @@ #define MAXSLP 20 /* - * A swapped in process is given a small amount of core without being bothered - * by the page replacement algorithm. Basically this says that if you are - * swapped in you deserve some resources. We protect the last SAFERSS - * pages against paging and will just swap you out rather than paging you. - */ -#define SAFERSS 4 /* nominal ``small'' resident set size - protected against replacement */ - -/* - * Mach derived constants - */ - -/* * User/kernel map constants. Note that sparc/vaddrs.h defines the * IO space virtual base, which must be the same as VM_MAX_KERNEL_ADDRESS: * tread with care. diff --git a/sys/arch/sun3/include/vmparam.h b/sys/arch/sun3/include/vmparam.h index 1c7c7054800..3dabf8b47b6 100644 --- a/sys/arch/sun3/include/vmparam.h +++ b/sys/arch/sun3/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.7 2001/06/27 06:19:56 art Exp $ */ +/* $OpenBSD: vmparam.h,v 1.8 2001/09/22 18:00:10 miod Exp $ */ /* $NetBSD: vmparam.h,v 1.14 1995/09/26 04:02:10 gwr Exp $ */ /* @@ -87,16 +87,6 @@ #endif /* - * Default sizes of swap allocation chunks (see dmap.h). - * The actual values may be changed in vminit() based on MAXDSIZ. - * With MAXDSIZ of 16Mb and NDMAP of 38, dmmax will be 1024. - * DMMIN should be at least ctod(1) so that vtod() works. - * vminit() insures this. - */ -#define DMMIN 32 /* smallest swap allocation */ -#define DMMAX 4096 /* largest potential swap allocation */ - -/* * PTEs for mapping user space into the kernel for phyio operations. * The actual limitation for physio requests will be the DVMA space, * and that is fixed by hardware design at 1MB. We could make the @@ -126,16 +116,7 @@ #define MAXSLP 20 /* - * A swapped in process is given a small amount of core without being bothered - * by the page replacement algorithm. Basically this says that if you are - * swapped in you deserve some resources. We protect the last SAFERSS - * pages against paging and will just swap you out rather than paging you. - */ -#define SAFERSS 4 /* nominal ``small'' resident set size - protected against replacement */ - -/* - * Mach-derived constants, virtual memory map: + * Virtual memory map: * * 0000.0000 user space * 0E00.0000 kernel space diff --git a/sys/arch/vax/include/vmparam.h b/sys/arch/vax/include/vmparam.h index 4b2f0f810b3..eb8e10cd931 100644 --- a/sys/arch/vax/include/vmparam.h +++ b/sys/arch/vax/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.14 2001/07/18 10:47:05 art Exp $ */ +/* $OpenBSD: vmparam.h,v 1.15 2001/09/22 18:00:10 miod Exp $ */ /* $NetBSD: vmparam.h,v 1.32 2000/03/07 00:05:59 matt Exp $ */ /*- @@ -105,15 +105,6 @@ #define MAXSLP 20 -/* - * A swapped in process is given a small amount of core without being bothered - * by the page replacement algorithm. Basically this says that if you are - * swapped in you deserve some resources. We protect the last SAFERSS - * pages against paging and will just swap you out rather than paging you. - */ - -#define SAFERSS 8 /* nominal ``small'' resident set size - protected against replacement */ #define VM_PHYSSEG_MAX 1 #define VM_PHYSSEG_NOADD #define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH /* XXX */ @@ -129,10 +120,6 @@ struct pmap_physseg { #define vax_round_page(x) (((vaddr_t)(x) + VAX_PGOFSET) & ~VAX_PGOFSET) #define vax_trunc_page(x) ((vaddr_t)(x) & ~VAX_PGOFSET) -/* - * Mach derived constants - */ - /* user/kernel map constants */ #define VM_MIN_ADDRESS ((vm_offset_t)0) #define VM_MAXUSER_ADDRESS ((vm_offset_t)KERNBASE) |