From efb8fa22fec9bdb2fdf0cae733e32aa9510d8158 Mon Sep 17 00:00:00 2001 From: zrj Date: Fri, 2 Feb 2018 08:42:39 +0200 Subject: [PATCH] kernel: Avoid long inactivity pauses on very early boot. Increase verbosity a bit on certain setups. --- sys/vm/vm_page.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index c1f3634bd1..b2f9e7905c 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -383,6 +383,8 @@ vm_page_startup(void) * Initialize the mem entry structures now, and put them in the free * queue. */ + if (bootverbose && ctob(physmem) >= 400LL*1024*1024*1024) + kprintf("initializing vm_page_array "); new_end = trunc_page(end - page_range * sizeof(struct vm_page)); mapped = pmap_map(&vaddr, new_end, end, VM_PROT_READ | VM_PROT_WRITE); vm_page_array = (vm_page_t)mapped; @@ -407,6 +409,8 @@ vm_page_startup(void) */ bzero((caddr_t) vm_page_array, page_range * sizeof(struct vm_page)); vm_page_array_size = page_range; + if (bootverbose && ctob(physmem) >= 400LL*1024*1024*1024) + kprintf("size = 0x%zx\n", vm_page_array_size); m = &vm_page_array[0]; pa = ptoa(first_page); -- 2.11.4.GIT