Increase VM_KMEM_SIZE to 16 megs from 12. Define VM_KMEM_SIZE_SCALE so that
the number of physical pages per KVA page allocated scales properly with memory size. This fixes problems with kmem_map being too small. Noticed by: mike, wollman Submitted by: tmm
This commit is contained in:
parent
bbbb04ce62
commit
a46877abfc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91974
@ -103,7 +103,16 @@
|
||||
* Virtual size (bytes) for various kernel submaps.
|
||||
*/
|
||||
#ifndef VM_KMEM_SIZE
|
||||
#define VM_KMEM_SIZE (12*1024*1024)
|
||||
#define VM_KMEM_SIZE (16*1024*1024)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* How many physical pages per KVA page allocated.
|
||||
* min(max(VM_KMEM_SIZE, Physical memory/VM_KMEM_SIZE_SCALE), VM_KMEM_SIZE_MAX)
|
||||
* is the total KVA space allocated for kmem_map.
|
||||
*/
|
||||
#ifndef VM_KMEM_SIZE_SCALE
|
||||
#define VM_KMEM_SIZE_SCALE (3)
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user