diff options
author | kris <kris@FreeBSD.org> | 2005-10-14 20:31:12 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2005-10-14 20:31:12 +0000 |
commit | 9f87be28740cdc7f320768b3f95abd483b0a23ed (patch) | |
tree | 53b5a912fffed551dacc6c21f4287cb7ab42b804 /sys/sparc64/include/param.h | |
parent | ecc6e8dc5af1f495e8adcac90daf04742cc1a5e0 (diff) | |
download | FreeBSD-src-9f87be28740cdc7f320768b3f95abd483b0a23ed.zip FreeBSD-src-9f87be28740cdc7f320768b3f95abd483b0a23ed.tar.gz |
Add a default value for VM_BCACHE_SIZE_MAX of 400MB. This is copied from
amd64, and is a factor of 3 less than the value previously auto-sized on
a 12GB machine, which would cause an overflow in calculations involving the
maxbcache int, causing bufinit() to loop forever at boot.
Reviewed by: mlaier, peter
Diffstat (limited to 'sys/sparc64/include/param.h')
-rw-r--r-- | sys/sparc64/include/param.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/sparc64/include/param.h b/sys/sparc64/include/param.h index c81d99a..779e36c 100644 --- a/sys/sparc64/include/param.h +++ b/sys/sparc64/include/param.h @@ -110,6 +110,14 @@ #define KSTACK_GUARD_PAGES 1 /* pages of kstack guard; 0 disables */ #define PCPU_PAGES 1 +/* + * Ceiling on size of buffer cache (really only effects write queueing, + * the VM page cache is not effected), can be changed via + * the kern.maxbcache /boot/loader.conf variable. + */ +#ifndef VM_BCACHE_SIZE_MAX +#define VM_BCACHE_SIZE_MAX (400 * 1024 * 1024) +#endif /* * Mach derived conversion macros |