Date: Tue, 24 Mar 2015 10:18:11 -0700 From: Rui Paulo <rpaulo@me.com> To: kwhite@site.uottawa.ca Cc: freebsd-current@freebsd.org Subject: Re: panic: UMA: Increase vm.boot_pages on Dell R920 r279210 Message-ID: <1A6D6059-21A2-467C-979D-E413623753FD@me.com> In-Reply-To: <54997.66.186.85.232.1427195954.squirrel@courriel.site.uottawa.ca> References: <20150319095306.C7719@admin16.site.uottawa.ca> <528B3B45-378E-44CD-A286-0269E84C4F70@me.com> <54997.66.186.85.232.1427195954.squirrel@courriel.site.uottawa.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 24, 2015, at 04:19, kwhite@site.uottawa.ca wrote:
>
> I'm using /boot/loader.conf. Is there another place I should be doing this?
No, that's correct, but apparently there's a problem: the RDTUN sysctl is not picked up early enough. Can you try this patch? I haven't really tested it. :-)
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 79665ba..a764788 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -134,8 +134,9 @@ long first_page;
int vm_page_zero_count;
static int boot_pages = UMA_BOOT_PAGES;
-SYSCTL_INT(_vm, OID_AUTO, boot_pages, CTLFLAG_RDTUN, &boot_pages, 0,
- "number of pages allocated for bootstrapping the VM system");
+SYSCTL_INT(_vm, OID_AUTO, boot_pages, CTLFLAG_RDTUN | CTLFLAG_NOFETCH,
+ &boot_pages, 0,
+ "number of pages allocated for bootstrapping the VM system");
static int pa_tryrelock_restart;
SYSCTL_INT(_vm, OID_AUTO, tryrelock_restart, CTLFLAG_RD,
@@ -349,6 +350,7 @@ vm_page_startup(vm_offset_t vaddr)
* Allocate memory for use when boot strapping the kernel memory
* allocator.
*/
+ TUNABLE_INT_FETCH("vm.boot_pages", &boot_pages);
new_end = end - (boot_pages * UMA_SLAB_SIZE);
new_end = trunc_page(new_end);
mapped = pmap_map(&vaddr, new_end, end,
@@ -443,7 +445,7 @@ vm_page_startup(vm_offset_t vaddr)
--
Rui Paulo
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1A6D6059-21A2-467C-979D-E413623753FD>
