From owner-freebsd-stable@FreeBSD.ORG Sun Dec 14 19:59:30 2014 Return-Path: Delivered-To: freebsd-stable@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 AC2C1394 for ; Sun, 14 Dec 2014 19:59:30 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7E5AE895 for ; Sun, 14 Dec 2014 19:59:30 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Y0FKC-000B9K-GF; Sun, 14 Dec 2014 19:59:28 +0000 Received: from revolution.hippie.lan (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id sBEJxPFk023629; Sun, 14 Dec 2014 12:59:26 -0700 (MST) (envelope-from ian@freebsd.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19D1hb63Nw3bxl2lSJIOmCX Message-ID: <1418587165.977.0.camel@freebsd.org> Subject: Re: i386 PAE kernel works fine on 10-stable From: Ian Lepore To: Alfred Perlstein Date: Sun, 14 Dec 2014 12:59:25 -0700 In-Reply-To: <847BD158-0867-4F5F-83A9-1651E77D29EF@mu.org> References: <1418579278.2026.9.camel@freebsd.org> <1418580756.2026.12.camel@freebsd.org> <847BD158-0867-4F5F-83A9-1651E77D29EF@mu.org> Content-Type: text/plain; charset="windows-1251" X-Mailer: Evolution 3.12.8 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by ilsoft.org id sBEJxPFk023629 Cc: FreeBSD Stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2014 19:59:30 -0000 On Sun, 2014-12-14 at 10:53 -0800, Alfred Perlstein wrote: > On Dec 14, 2014, at 10:12 AM, Ian Lepore wrote: >=20 > > On Sun, 2014-12-14 at 10:09 -0800, Alfred Perlstein wrote: > >> On Dec 14, 2014, at 9:47 AM, Ian Lepore wrote: > >>=20 > >>> This is an out of the blue FYI post to let people know that despite= all > >>> the misinformation you'll run across if you search for information = on > >>> FreeBSD PAE support, it (still) works just fine. I've been using i= t > >>> (for reasons related to our build system and products at $work) sin= ce > >>> 2006, and I can say unequivocally that it works fine on 6.x, 8.x, a= nd > >>> now 10.x (and presumably on the odd-numbered releases too but I've = never > >>> tried those). > >>>=20 > >>> In my most recent testing with 10-stable, I found it was compatible= with > >>> drm2 and radeonkms drivers and I was able to run Xorg and gnome jus= t > >>> fine. All my devices, and apps, and even the linuxulator worked ju= st > >>> fine. > >>>=20 > >>> One thing that changed somewhere between 8.4 and 10.1 is that I had= to > >>> add a kernel tuning option to my kernel config: > >>>=20 > >>> option KVA_PAGES=3D768 # Default is 512 > >>>=20 > >>> I suspect that the most frequent use of PAE is on laptops that have= 4gb > >>> and the default tuning is adequate for that. My desktop machine ha= s > >>> 12gb and I needed to bump up that value to avoid errors related to = being > >>> unable to create new kernel stacks. > >>>=20 > >>=20 > >> There already is a #define that is bifurcated based on PAE in pmap.h= : > >>=20 > >> #ifndef KVA_PAGES > >> #ifdef PAE > >> #define KVA_PAGES 512 > >> #else > >> #define KVA_PAGES 256 > >> #endif > >> #endif > >>=20 > >> Do you think it will harm things to apply your suggested default to = this file? > >>=20 > >=20 > > I would have to defer to someone who actually understands just what t= hat > > parm is tuning. It was purely speculation on my part that the curren= t > > default is adequate for less memory than I have, and I don't know wha= t > > that downside might be for setting it too high. > >=20 >=20 > KVA pages is the amount of pages reserved for kernel address space: >=20 > * Size of Kernel address space. This is the number of page table page= s > * (4MB each) to use for the kernel. 256 pages =3D=3D 1 Gigabyte. > * This **MUST** be a multiple of 4 (eg: 252, 256, 260, etc). > * For PAE, the page table page unit size is 2MB. This means that 512 = pages > * is 1 Gigabyte. Double everything. It must be a multiple of 8 for P= AE. >=20 > It appears that our default for PAE leaves 1GB for kernel address to pl= ay with? That's an interesting default. Wonder if it really makes sense= for PAE since the assumption is that you'll have >4GB ram in the box, wi= ring down 1.5GB for kernel would seem to make sense=85 Probably make sen= se to ask Peter or Alan on this. >=20 > Also wondering how bad it would be to make these tunables, I see they t= rickle down quite a bit into the system, hopefully not defining some stat= ic arrays, but I haven't dived down that far. >=20 > Ian, just to understand better, how much memory is in your machine? >=20 12GB. -- Ian