summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-06 00:45:57 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-06 00:45:57 +0000
commit44cb8b104e1d8ecebdc6da008bda849aa211e760 (patch)
tree8aa66160a5e5f39c4c04825857dab2a47c951429 /sys/arch/i386
parentd0ba28a350b4bad5a4259dc0b1d0785d03c72913 (diff)
Update some comments wrt. the CLSIZE changes.
And remove that memory price comment from 1981. It is amusing, but also confusing because the math in there is only correct on vax.
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/vm_machdep.c5
-rw-r--r--sys/arch/i386/include/vmparam.h11
2 files changed, 3 insertions, 13 deletions
diff --git a/sys/arch/i386/i386/vm_machdep.c b/sys/arch/i386/i386/vm_machdep.c
index 93e99ba3d9f..03a6bb80cf9 100644
--- a/sys/arch/i386/i386/vm_machdep.c
+++ b/sys/arch/i386/i386/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.25 2001/05/05 23:25:43 art Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.26 2001/05/06 00:45:50 art Exp $ */
/* $NetBSD: vm_machdep.c,v 1.61 1996/05/03 19:42:35 christos Exp $ */
/*-
@@ -283,8 +283,7 @@ setredzone(pte, vaddr)
/*
* Move pages from one kernel virtual address to another.
- * Both addresses are assumed to reside in the Sysmap,
- * and size must be a multiple of CLSIZE.
+ * Both addresses are assumed to reside in the Sysmap.
*/
void
pagemove(from, to, size)
diff --git a/sys/arch/i386/include/vmparam.h b/sys/arch/i386/include/vmparam.h
index 8752163f618..adfc5d7447a 100644
--- a/sys/arch/i386/include/vmparam.h
+++ b/sys/arch/i386/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.18 2001/05/05 23:25:49 art Exp $ */
+/* $OpenBSD: vmparam.h,v 1.19 2001/05/06 00:45:51 art Exp $ */
/* $NetBSD: vmparam.h,v 1.15 1994/10/27 04:16:34 cgd Exp $ */
/*-
@@ -113,15 +113,6 @@
* 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!) }
*/
#define SAFERSS 8 /* nominal ``small'' resident set size
protected against replacement */