summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>1999-08-12 21:16:53 +0000
committerAlan Cox <alc@FreeBSD.org>1999-08-12 21:16:53 +0000
commit1aefb1d9574bbcffde1680ec4c559d0cf39ed2fd (patch)
tree53170f35fe51fbbd22befea6047bb7d7aa265c7c
parent444449266cb0cc919e6d195e626f0f7f9657113c (diff)
Notes
-rw-r--r--sys/vm/vm_page.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index e91928caa19e..5e9ce246ff32 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_page.h,v 1.63 1999/07/22 06:04:17 alc Exp $
+ * $Id: vm_page.h,v 1.64 1999/07/31 18:31:00 alc Exp $
*/
/*
@@ -179,12 +179,18 @@ struct vm_page {
#define PQ_L2_SIZE 16 /* A reasonable number of colors (opt for 64K cache) */
#endif
-#if defined(PQ_MEDIUMCACHE) || !defined(PQ_L2_SIZE)
+#if defined(PQ_MEDIUMCACHE)
#define PQ_PRIME1 13 /* Prime number somewhat less than PQ_HASH_SIZE */
#define PQ_PRIME2 7 /* Prime number somewhat less than PQ_HASH_SIZE */
#define PQ_L2_SIZE 64 /* A number of colors opt for 256K cache */
#endif
+#if !defined(PQ_L2_SIZE)
+#define PQ_PRIME1 9 /* Produces a good PQ_L2_SIZE/3 + PQ_PRIME1 */
+#define PQ_PRIME2 5 /* Prime number somewhat less than PQ_HASH_SIZE */
+#define PQ_L2_SIZE 32 /* 512KB or smaller, 4-way set-associative cache */
+#endif
+
#define PQ_L2_MASK (PQ_L2_SIZE - 1)
#define PQ_NONE 0