summaryrefslogtreecommitdiffstats
path: root/sys/vm/uma_int.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-12-22 01:01:32 +0000
committeralc <alc@FreeBSD.org>2003-12-22 01:01:32 +0000
commiteae1da31eade2f857fee00c87d25f65464147206 (patch)
tree00ab7e424757b6c2744500cffe12cbbe1aba8f22 /sys/vm/uma_int.h
parent4982513fbdb0caefc7afd7fe4dcc81d4b4ae0fd7 (diff)
downloadFreeBSD-src-eae1da31eade2f857fee00c87d25f65464147206.zip
FreeBSD-src-eae1da31eade2f857fee00c87d25f65464147206.tar.gz
- Significantly reduce the number of preallocated pv entries in
pmap_init(). Such a large preallocation is unnecessary and wastes nearly eight megabytes of kernel virtual address space per gigabyte of managed physical memory. - Increase UMA_BOOT_PAGES by two. This enables the removal of pmap_pv_allocf(). (Note: this function was only used during initialization, specifically, after pmap_init() but before pmap_init2(). During pmap_init2(), a new allocator is installed.)
Diffstat (limited to 'sys/vm/uma_int.h')
-rw-r--r--sys/vm/uma_int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/uma_int.h b/sys/vm/uma_int.h
index b25468b..140451b 100644
--- a/sys/vm/uma_int.h
+++ b/sys/vm/uma_int.h
@@ -103,7 +103,7 @@
#define UMA_SLAB_MASK (PAGE_SIZE - 1) /* Mask to get back to the page */
#define UMA_SLAB_SHIFT PAGE_SHIFT /* Number of bits PAGE_MASK */
-#define UMA_BOOT_PAGES 30 /* Pages allocated for startup */
+#define UMA_BOOT_PAGES 32 /* Pages allocated for startup */
/* Max waste before going to off page slab management */
#define UMA_MAX_WASTE (UMA_SLAB_SIZE / 10)
OpenPOWER on IntegriCloud