Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Remove obsoleted macros.



details:   https://anonhg.NetBSD.org/src/rev/338530919b37
branches:  trunk
changeset: 481335:338530919b37
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Jan 26 09:44:10 2000 +0000

description:
Remove obsoleted macros.

diffstat:

 sys/arch/alpha/include/vmparam.h   |   25 +--------
 sys/arch/amiga/include/vmparam.h   |   22 +-------
 sys/arch/atari/include/vmparam.h   |   22 +-------
 sys/arch/hp300/include/vmparam.h   |   95 +----------------------------------
 sys/arch/i386/include/vmparam.h    |   24 +--------
 sys/arch/mac68k/include/vmparam.h  |  100 +------------------------------------
 sys/arch/mips/include/vmparam.h    |   22 +-------
 sys/arch/mvme68k/include/vmparam.h |   95 +----------------------------------
 sys/arch/news68k/include/vmparam.h |   95 +----------------------------------
 sys/arch/next68k/include/vmparam.h |   95 +----------------------------------
 sys/arch/pc532/include/vmparam.h   |   24 +--------
 sys/arch/sh3/include/vmparam.h     |   24 +--------
 sys/arch/sparc/include/vmparam.h   |   22 +-------
 sys/arch/sparc64/include/vmparam.h |   22 +-------
 sys/arch/sun3/include/vmparam.h    |   22 +-------
 sys/arch/vax/include/vmparam.h     |   22 +-------
 sys/arch/x68k/include/vmparam.h    |   95 +----------------------------------
 17 files changed, 17 insertions(+), 809 deletions(-)

diffs (truncated from 1103 to 300 lines):

diff -r 441f07f69f46 -r 338530919b37 sys/arch/alpha/include/vmparam.h
--- a/sys/arch/alpha/include/vmparam.h  Wed Jan 26 09:04:59 2000 +0000
+++ b/sys/arch/alpha/include/vmparam.h  Wed Jan 26 09:44:10 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.15 1999/12/04 21:20:00 ragge Exp $ */
+/* $NetBSD: vmparam.h,v 1.16 2000/01/26 09:44:10 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -99,18 +99,6 @@
 #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.
- */
-#define MMSEG          0x200000
-
-/*
- * The size of the clock loop.
- */
-#define        LOOPPAGES       (maxfree - firstfree)
-
-/*
  * 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;
@@ -122,17 +110,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.
- * Note that each process has at least UPAGES pages which are not
- * paged anyways, in addition to SAFERSS.
- */
-#define        SAFERSS         10              /* nominal ``small'' resident set size
-                                          protected against replacement */
-
-/*
  * Mach derived constants
  */
 
diff -r 441f07f69f46 -r 338530919b37 sys/arch/amiga/include/vmparam.h
--- a/sys/arch/amiga/include/vmparam.h  Wed Jan 26 09:04:59 2000 +0000
+++ b/sys/arch/amiga/include/vmparam.h  Wed Jan 26 09:44:10 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.23 1999/12/04 21:20:06 ragge Exp $       */
+/*     $NetBSD: vmparam.h,v 1.24 2000/01/26 09:44:10 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -121,26 +121,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.
- * Note that each process has at least UPAGES pages which are not
- * paged anyways (this is currently 8+2=10 pages or 5k bytes), so this
- * number just means a swapped in process is given around 25k bytes.
- * Just for fun: current memory prices are 4600$ a megabyte on VAX (4/22/81),
- * so we loan each swapped in process memory worth 100$, or just admit
- * that we don't consider it worthwhile and swap it out to disk which costs
- * $30/mb or about $0.75.
- * Update: memory prices have changed recently (9/96). At the current
- * value of $6 per megabyte, we lend each swapped in process memory worth
- * $0.15, or just admit that we don't consider it worthwhile and swap it out
- * to disk which costs $0.20/MB, or just under half a cent.
- */
-#define        SAFERSS         4               /* nominal ``small'' resident set size
-                                          protected against replacement */
-
-/*
  * user/kernel map constants
  */
 #define VM_MIN_ADDRESS         ((vaddr_t)0)            /* user min */
diff -r 441f07f69f46 -r 338530919b37 sys/arch/atari/include/vmparam.h
--- a/sys/arch/atari/include/vmparam.h  Wed Jan 26 09:04:59 2000 +0000
+++ b/sys/arch/atari/include/vmparam.h  Wed Jan 26 09:44:10 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.11 1999/12/04 21:20:16 ragge Exp $       */
+/*     $NetBSD: vmparam.h,v 1.12 2000/01/26 09:44:10 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -120,26 +120,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.
- * Note that each process has at least UPAGES pages which are not
- * paged anyways (this is currently 8+2=10 pages or 5k bytes), so this
- * number just means a swapped in process is given around 25k bytes.
- * Just for fun: current memory prices are 4600$ a megabyte on VAX (4/22/81),
- * so we loan each swapped in process memory worth 100$, or just admit
- * that we don't consider it worthwhile and swap it out to disk which costs
- * $30/mb or about $0.75.
- * Update: memory prices have changed recently (9/96). At the current    
- * value of $6 per megabyte, we lend each swapped in process memory worth
- * $0.15, or just admit that we don't consider it worthwhile and swap it out
- * to disk which costs $0.20/MB, or just under half a cent. 
- */
-#define        SAFERSS         4               /* nominal ``small'' resident set size
-                                          protected against replacement */
-
-/*
  * user/kernel map constants
  */
 #define VM_MIN_ADDRESS         ((vaddr_t)0)
diff -r 441f07f69f46 -r 338530919b37 sys/arch/hp300/include/vmparam.h
--- a/sys/arch/hp300/include/vmparam.h  Wed Jan 26 09:04:59 2000 +0000
+++ b/sys/arch/hp300/include/vmparam.h  Wed Jan 26 09:44:10 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.19 1999/12/04 21:20:26 ragge Exp $       */
+/*     $NetBSD: vmparam.h,v 1.20 2000/01/26 09:44:11 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -121,18 +121,6 @@
 #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.
- */
-#define MMSEG          0x200000
-
-/*
- * The size of the clock loop.
- */
-#define        LOOPPAGES       (maxfree - firstfree)
-
-/*
  * 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;
@@ -144,87 +132,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.
- * Note that each process has at least UPAGES pages which are not
- * paged anyways (this is currently 8+2=10 pages or 5k bytes), so this
- * number just means a swapped in process is given around 25k bytes.
- * Just for fun: current memory prices are 4600$ a megabyte on VAX (4/22/81),
- * so we loan each swapped in process memory worth 100$, or just admit
- * that we don't consider it worthwhile and swap it out to disk which costs
- * $30/mb or about $0.75.
- * Update: memory prices have changed recently (9/96). At the current    
- * value of $6 per megabyte, we lend each swapped in process memory worth
- * $0.15, or just admit that we don't consider it worthwhile and swap it out
- * to disk which costs $0.20/MB, or just under half a cent. 
- */
-#define        SAFERSS         4               /* nominal ``small'' resident set size
-                                          protected against replacement */
-
-/*
- * DISKRPM is used to estimate the number of paging i/o operations
- * which one can expect from a single disk controller.
- */
-#define        DISKRPM         60
-
-/*
- * Klustering constants.  Klustering is the gathering
- * of pages together for pagein/pageout, while clustering
- * is the treatment of hardware page size as though it were
- * larger than it really is.
- *
- * KLMAX gives maximum cluster size in CLSIZE page (cluster-page)
- * units.  Note that ctod(KLMAX*CLSIZE) must be <= DMMIN in dmap.h.
- * ctob(KLMAX) should also be less than MAXPHYS (in vm_swp.c)
- * unless you like "big push" panics.
- */
-
-#define        KLMAX   (4/CLSIZE)
-#define        KLSEQL  (2/CLSIZE)              /* in klust if vadvise(VA_SEQL) */
-#define        KLIN    (4/CLSIZE)              /* default data/stack in klust */
-#define        KLTXT   (4/CLSIZE)              /* default text in klust */
-#define        KLOUT   (4/CLSIZE)
-
-/*
- * KLSDIST is the advance or retard of the fifo reclaim for sequential
- * processes data space.
- */
-#define        KLSDIST 3               /* klusters advance/retard for seq. fifo */
-
-/*
- * Paging thresholds (see vm_sched.c).
- * Strategy of 1/19/85:
- *     lotsfree is 512k bytes, but at most 1/4 of memory
- *     desfree is 200k bytes, but at most 1/8 of memory
- */
-#define        LOTSFREE        (512 * 1024)
-#define        LOTSFREEFRACT   4
-#define        DESFREE         (200 * 1024)
-#define        DESFREEFRACT    8
-
-/*
- * There are two clock hands, initially separated by HANDSPREAD bytes
- * (but at most all of user memory).  The amount of time to reclaim
- * a page once the pageout process examines it increases with this
- * distance and decreases as the scan rate rises.
- */
-#define        HANDSPREAD      (2 * 1024 * 1024)
-
-/*
- * The number of times per second to recompute the desired paging rate
- * and poke the pagedaemon.
- */
-#define        RATETOSCHEDPAGING       4
-
-/*
- * Believed threshold (in megabytes) for which interleaved
- * swapping area is desirable.
- */
-#define        LOTSOFMEM       2
-
-/*
  * Mach derived constants
  */
 
diff -r 441f07f69f46 -r 338530919b37 sys/arch/i386/include/vmparam.h
--- a/sys/arch/i386/include/vmparam.h   Wed Jan 26 09:04:59 2000 +0000
+++ b/sys/arch/i386/include/vmparam.h   Wed Jan 26 09:44:10 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.33 1999/12/04 21:20:34 ragge Exp $       */
+/*     $NetBSD: vmparam.h,v 1.34 2000/01/26 09:44:11 tsutsui Exp $     */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -100,28 +100,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.
- * Note that each process has at least UPAGES+CLSIZE pages which are not
- * paged anyways (this is currently 8+2=10 pages or 5k bytes), so this
- * number just means a swapped in process is given around 25k bytes.
- * Just for fun: current memory prices are 4600$ a megabyte on VAX (4/22/81),
- * so we loan each swapped in process memory worth 100$, or just admit
- * that we don't consider it worthwhile and swap it out to disk which costs
- * $30/mb or about $0.75.
- * { wfj 6/16/89: Retail AT memory expansion $800/megabyte, loan of $17
- *   on disk costing $7/mb or $0.18 (in memory still 100:1 in cost!) }
- * Update: memory prices have changed recently (9/96). At the current    
- * value of $6 per megabyte, we lend each swapped in process memory worth
- * $0.15, or just admit that we don't consider it worthwhile and swap it out
- * to disk which costs $0.20/MB, or just under half a cent. 
- */
-#define        SAFERSS         8               /* nominal ``small'' resident set size
-                                          protected against replacement */
-
-/*
  * Mach derived constants
  */
 
diff -r 441f07f69f46 -r 338530919b37 sys/arch/mac68k/include/vmparam.h
--- a/sys/arch/mac68k/include/vmparam.h Wed Jan 26 09:04:59 2000 +0000
+++ b/sys/arch/mac68k/include/vmparam.h Wed Jan 26 09:44:10 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.23 1999/12/04 21:20:40 ragge Exp $       */
+/*     $NetBSD: vmparam.h,v 1.24 2000/01/26 09:44:11 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -143,104 +143,6 @@
 #endif
 
 /*
- * The size of the clock loop.
- */
-#define        LOOPPAGES       (maxfree - firstfree)
-
-/*
- * 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;
- * it is used in subtle ways (fractions and multiples of it are, that is, like
- * half of a ``long time'', almost a long time, etc.)
- * It is related to human patience and other factors which don't really
- * change over time.
- */
-#define        MAXSLP          20
-



Home | Main Index | Thread Index | Old Index