From owner-freebsd-current@FreeBSD.ORG Tue Mar 24 17:18:26 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3D16BE39 for ; Tue, 24 Mar 2015 17:18:26 +0000 (UTC) Received: from st11p02mm-asmtp001.mac.com (st11p02mm-asmtp001.mac.com [17.172.220.236]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0E5A78A3 for ; Tue, 24 Mar 2015 17:18:25 +0000 (UTC) Received: from fukuyama.hsd1.ca.comcast.net (unknown [73.162.13.215]) by st11p02mm-asmtp001.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Dec 4 2014)) with ESMTPSA id <0NLQ00CQG82CBT10@st11p02mm-asmtp001.mac.com> for freebsd-current@freebsd.org; Tue, 24 Mar 2015 17:18:14 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-03-24_05:2015-03-24,2015-03-24,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1503240164 Subject: Re: panic: UMA: Increase vm.boot_pages on Dell R920 r279210 MIME-version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-type: text/plain; charset=us-ascii From: Rui Paulo X-Priority: 3 (Normal) In-reply-to: <54997.66.186.85.232.1427195954.squirrel@courriel.site.uottawa.ca> Date: Tue, 24 Mar 2015 10:18:11 -0700 Content-transfer-encoding: quoted-printable Message-id: <1A6D6059-21A2-467C-979D-E413623753FD@me.com> 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> To: kwhite@site.uottawa.ca X-Mailer: Apple Mail (2.2070.6) X-Mailman-Approved-At: Tue, 24 Mar 2015 20:07:51 +0000 Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Tue, 24 Mar 2015 17:18:26 -0000 On Mar 24, 2015, at 04:19, kwhite@site.uottawa.ca wrote: >=20 > 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; =20 static int boot_pages =3D 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"); =20 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 =3D end - (boot_pages * UMA_SLAB_SIZE); new_end =3D trunc_page(new_end); mapped =3D pmap_map(&vaddr, new_end, end, @@ -443,7 +445,7 @@ vm_page_startup(vm_offset_t vaddr) -- Rui Paulo