From cfb00e5aa764c1f87067cd819c7ab378f3d11a77 Mon Sep 17 00:00:00 2001 From: Matthew D Fleming Date: Fri, 13 May 2011 19:35:01 +0000 Subject: Move the ZERO_REGION_SIZE to a machine-dependent file, as on many architectures (i386, for example) the virtual memory space may be constrained enough that 2MB is a large chunk. Use 64K for arches other than amd64 and ia64, with special handling for sparc64 due to differing hardware. Also commit the comment changes to kmem_init_zero_region() that I missed due to not saving the file. (Darn the unfamiliar development environment). Arch maintainers, please feel free to adjust ZERO_REGION_SIZE as you see fit. Requested by: alc MFC after: 1 week MFC with: r221853 --- sys/amd64/include/vmparam.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/amd64') diff --git a/sys/amd64/include/vmparam.h b/sys/amd64/include/vmparam.h index 38a621485ce3..0c656023fd4c 100644 --- a/sys/amd64/include/vmparam.h +++ b/sys/amd64/include/vmparam.h @@ -212,4 +212,6 @@ #define VM_INITIAL_PAGEIN 16 #endif +#define ZERO_REGION_SIZE (2 * 1024 * 1024) /* 2MB */ + #endif /* _MACHINE_VMPARAM_H_ */ -- cgit v1.2.3