diff options
author | alc <alc@FreeBSD.org> | 2004-06-05 21:06:42 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-06-05 21:06:42 +0000 |
commit | ffc00b620f55cbda4aa06d40046cc397f78d0931 (patch) | |
tree | 3a54bdf74c06a6d483bdf84d72ffd8f4dce71b7b /sys/vm | |
parent | fbb5447570307f07baad97c3f5674b1365ba8bdd (diff) | |
download | FreeBSD-src-ffc00b620f55cbda4aa06d40046cc397f78d0931.zip FreeBSD-src-ffc00b620f55cbda4aa06d40046cc397f78d0931.tar.gz |
Update stale comments regarding page coloring.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_page.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index 4c2d211..e44bb3d 100644 --- a/sys/vm/vm_page.h +++ b/sys/vm/vm_page.h @@ -150,7 +150,6 @@ CTASSERT(sizeof(u_long) >= 8); /* * Page coloring parameters */ -/* Each of PQ_FREE, and PQ_CACHE have PQ_HASH_SIZE entries */ /* Backward compatibility for existing PQ_*CACHE config options. */ #if !defined(PQ_CACHESIZE) @@ -170,28 +169,28 @@ CTASSERT(sizeof(u_long) >= 8); #endif /* !defined(PQ_CACHESIZE) */ #if PQ_CACHESIZE >= 1024 -#define PQ_PRIME1 31 /* Prime number somewhat less than PQ_HASH_SIZE */ -#define PQ_PRIME2 23 /* Prime number somewhat less than PQ_HASH_SIZE */ +#define PQ_PRIME1 31 /* Prime number somewhat less than PQ_L2_SIZE */ +#define PQ_PRIME2 23 /* Prime number somewhat less than PQ_L2_SIZE */ #define PQ_L2_SIZE 256 /* A number of colors opt for 1M cache */ #elif PQ_CACHESIZE >= 512 -#define PQ_PRIME1 31 /* Prime number somewhat less than PQ_HASH_SIZE */ -#define PQ_PRIME2 23 /* Prime number somewhat less than PQ_HASH_SIZE */ +#define PQ_PRIME1 31 /* Prime number somewhat less than PQ_L2_SIZE */ +#define PQ_PRIME2 23 /* Prime number somewhat less than PQ_L2_SIZE */ #define PQ_L2_SIZE 128 /* A number of colors opt for 512K cache */ #elif PQ_CACHESIZE >= 256 -#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_PRIME1 13 /* Prime number somewhat less than PQ_L2_SIZE */ +#define PQ_PRIME2 7 /* Prime number somewhat less than PQ_L2_SIZE */ #define PQ_L2_SIZE 64 /* A number of colors opt for 256K cache */ #elif PQ_CACHESIZE >= 128 #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_PRIME2 5 /* Prime number somewhat less than PQ_L2_SIZE */ #define PQ_L2_SIZE 32 /* A number of colors opt for 128k cache */ #elif PQ_CACHESIZE >= 64 -#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_PRIME1 5 /* Prime number somewhat less than PQ_L2_SIZE */ +#define PQ_PRIME2 3 /* Prime number somewhat less than PQ_L2_SIZE */ #define PQ_L2_SIZE 16 /* A reasonable number of colors (opt for 64K cache) */ #else @@ -203,6 +202,7 @@ CTASSERT(sizeof(u_long) >= 8); #define PQ_L2_MASK (PQ_L2_SIZE - 1) +/* PQ_CACHE and PQ_FREE represent PQ_L2_SIZE consecutive queues. */ #define PQ_NONE 0 #define PQ_FREE 1 #define PQ_INACTIVE (1 + 1*PQ_L2_SIZE) |