vmparam.h (0bfd163f522701b486e066fa2e56624c02f5081a) | vmparam.h (c70af4875e5b239a302f2d34d73d6acac2ddd5a9) |
---|---|
1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * Copyright (c) 1994 John S. Dyson 5 * All rights reserved. 6 * Copyright (c) 2003 Peter Wemm 7 * All rights reserved. 8 * --- 164 unchanged lines hidden (view full) --- 173#define USRSTACK SHAREDPAGE 174 175#define VM_MAX_ADDRESS UPT_MAX_ADDRESS 176#define VM_MIN_ADDRESS (0) 177 178#define PHYS_TO_DMAP(x) ((x) | DMAP_MIN_ADDRESS) 179#define DMAP_TO_PHYS(x) ((x) & ~DMAP_MIN_ADDRESS) 180 | 1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * Copyright (c) 1994 John S. Dyson 5 * All rights reserved. 6 * Copyright (c) 2003 Peter Wemm 7 * All rights reserved. 8 * --- 164 unchanged lines hidden (view full) --- 173#define USRSTACK SHAREDPAGE 174 175#define VM_MAX_ADDRESS UPT_MAX_ADDRESS 176#define VM_MIN_ADDRESS (0) 177 178#define PHYS_TO_DMAP(x) ((x) | DMAP_MIN_ADDRESS) 179#define DMAP_TO_PHYS(x) ((x) & ~DMAP_MIN_ADDRESS) 180 |
181/* virtual sizes (bytes) for various kernel submaps */ 182#ifndef VM_KMEM_SIZE 183#define VM_KMEM_SIZE (12 * 1024 * 1024) 184#endif 185 | |
186/* | 181/* |
187 * How many physical pages per KVA page allocated. 188 * min(max(max(VM_KMEM_SIZE, Physical memory/VM_KMEM_SIZE_SCALE), 189 * VM_KMEM_SIZE_MIN), VM_KMEM_SIZE_MAX) 190 * is the total KVA space allocated for kmem_map. | 182 * How many physical pages per kmem arena virtual page. |
191 */ 192#ifndef VM_KMEM_SIZE_SCALE 193#define VM_KMEM_SIZE_SCALE (1) 194#endif 195 196/* | 183 */ 184#ifndef VM_KMEM_SIZE_SCALE 185#define VM_KMEM_SIZE_SCALE (1) 186#endif 187 188/* |
197 * Ceiling on amount of kmem_map kva space. | 189 * Optional ceiling (in bytes) on the size of the kmem arena: 60% of the 190 * kernel map. |
198 */ 199#ifndef VM_KMEM_SIZE_MAX 200#define VM_KMEM_SIZE_MAX ((VM_MAX_KERNEL_ADDRESS - \ 201 VM_MIN_KERNEL_ADDRESS + 1) * 3 / 5) 202#endif 203 204/* initial pagein size of beginning of executable file */ 205#ifndef VM_INITIAL_PAGEIN 206#define VM_INITIAL_PAGEIN 16 207#endif 208 209#define ZERO_REGION_SIZE (2 * 1024 * 1024) /* 2MB */ 210 211#endif /* _MACHINE_VMPARAM_H_ */ | 191 */ 192#ifndef VM_KMEM_SIZE_MAX 193#define VM_KMEM_SIZE_MAX ((VM_MAX_KERNEL_ADDRESS - \ 194 VM_MIN_KERNEL_ADDRESS + 1) * 3 / 5) 195#endif 196 197/* initial pagein size of beginning of executable file */ 198#ifndef VM_INITIAL_PAGEIN 199#define VM_INITIAL_PAGEIN 16 200#endif 201 202#define ZERO_REGION_SIZE (2 * 1024 * 1024) /* 2MB */ 203 204#endif /* _MACHINE_VMPARAM_H_ */ |