diff options
author | dyson <dyson@FreeBSD.org> | 1996-10-06 22:26:13 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-10-06 22:26:13 +0000 |
commit | db43a78580bd3838ae40c7d43e4d174c4ba8b047 (patch) | |
tree | 309b0852f5b7e45dc42a0c0a402a91f19b9f115e /sys/vm/vm_page.h | |
parent | 5125a597c8aa9985ee93dda31afa279643432df8 (diff) | |
download | FreeBSD-src-db43a78580bd3838ae40c7d43e4d174c4ba8b047.zip FreeBSD-src-db43a78580bd3838ae40c7d43e4d174c4ba8b047.tar.gz |
Make the default cache size optim to be 256K, the old default was
64K. The change has essentially neutral effect on those machines with
little or no cache, and has a positive effect on "normal" machines
with 256K or more cache.
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r-- | sys/vm/vm_page.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index 3578801..cfb2b68 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.31 1996/07/30 03:08:17 dyson Exp $ + * $Id: vm_page.h,v 1.32 1996/09/08 20:44:46 dyson Exp $ */ /* @@ -134,13 +134,6 @@ struct vm_page { #define PQ_L1_SIZE 2 /* Two page L1 cache */ #endif -#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_PRIME3 5 /* Prime number somewhat less than PQ_HASH_SIZE */ -#define PQ_L2_SIZE 64 /* A number of colors opt for 256K cache */ -#define PQ_L1_SIZE 2 /* Two page L1 cache */ -#endif /* * Use 'options PQ_NOOPT' to disable page coloring @@ -153,7 +146,7 @@ struct vm_page { #define PQ_L1_SIZE 1 #endif -#if defined(PQ_NORMALCACHE) || !defined(PQ_L2_SIZE) +#if defined(PQ_NORMALCACHE) #define PQ_PRIME1 5 /* Prime number somewhat less than PQ_HASH_SIZE */ #define PQ_PRIME2 3 /* Prime number somewhat less than PQ_HASH_SIZE */ #define PQ_PRIME3 11 /* Prime number somewhat less than PQ_HASH_SIZE */ @@ -161,6 +154,14 @@ struct vm_page { #define PQ_L1_SIZE 2 /* Two page L1 cache */ #endif +#if defined(PQ_MEDIUMCACHE) || !defined(PQ_L2_SIZE) +#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_PRIME3 5 /* Prime number somewhat less than PQ_HASH_SIZE */ +#define PQ_L2_SIZE 64 /* A number of colors opt for 256K cache */ +#define PQ_L1_SIZE 2 /* Two page L1 cache */ +#endif + #define PQ_L2_MASK (PQ_L2_SIZE - 1) #define PQ_NONE 0 |