From owner-freebsd-current@FreeBSD.ORG Sun May 3 02:25:15 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0127C227 for ; Sun, 3 May 2015 02:25:14 +0000 (UTC) Received: from mail-ie0-x235.google.com (mail-ie0-x235.google.com [IPv6:2607:f8b0:4001:c03::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C64DB12AA for ; Sun, 3 May 2015 02:25:14 +0000 (UTC) Received: by iedfl3 with SMTP id fl3so125201731ied.1 for ; Sat, 02 May 2015 19:25:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=xdj86CKEGZS6d6wx1IiLMj5MNbz3VuhsKEtsRd8BWYQ=; b=G7dT2mDeD8geYMt1Cesa84VrgnQofxSnYrBCWFkXJSKdjeFde+gHAeTI+Titmf0AmH 9yDVAU/nxunM16d5rMzyWpNvAlrs7ilsfIpLiegt8cj7DaRgfI1ilRzzY2wBcBBY0SCO qkv0ByYYFWgplBOJvSJLex/Pdn+eQHCAiI1Zm0ukCQoHbLZvfwden4Uo17Iusaa5/Bj+ ngC6hKDdVNBi78GmT2u1GC+y+UEg7erYOF4PWvr97QHb37zlIugSoQ+ZWYaYrZF1X0RZ kRsjE/NGPyOtj/QfbdmsFavwMA0oiS8AX1k/HK/Hcxfq5j+jvMRNehluLRDgFrD9hWpr tBBw== MIME-Version: 1.0 X-Received: by 10.107.168.143 with SMTP id e15mr20180272ioj.88.1430619914022; Sat, 02 May 2015 19:25:14 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Sat, 2 May 2015 19:25:13 -0700 (PDT) In-Reply-To: <20150324155426.M7719@admin16.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> <1A6D6059-21A2-467C-979D-E413623753FD@me.com> <20150324155426.M7719@admin16.site.uottawa.ca> Date: Sat, 2 May 2015 19:25:13 -0700 X-Google-Sender-Auth: 33pWNy-c0CThNYZ9zlktafxBXH8 Message-ID: Subject: Re: panic: UMA: Increase vm.boot_pages on Dell R920 r279210 From: Adrian Chadd To: Keith White Cc: Rui Paulo , freebsd-current Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 May 2015 02:25:15 -0000 hi, Hm, should we be upping this limit automatically? Can we get cpu counts or memory amount early enough in boot to have a hope of auto-tuning? 64 seems low, 1024 seems high as a default. :) -adrian On 24 March 2015 at 13:00, Keith White wrote: > On Tue, 24 Mar 2015, Rui Paulo wrote: > >> 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 > > > Patch tried. Success! > > I now get this after setting vm.boot_pages=1024 in /boot/loader.conf: > > Booting... > GDB: no debug ports present > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2015 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 11.0-CURRENT #1: Tue Mar 24 13:44:48 UTC 2015 > root@:/usr/obj/usr/src/sys/GENERIC amd64 > FreeBSD clang version 3.5.1 (tags/RELEASE_351/final 225668) 20150115 > WARNING: WITNESS option enabled, expect reduced performance. > UMA startup boot_pages: 1024 > ... > > And can start all 120 processors. > > Thanks! > > ...keith > -- > Keith White, genie.uottawa.ca engineering.uottawa.ca > kwhite@uottawa.ca [+1 613 562 5800 x6681] > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"