From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 5 17:18:20 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C1CF3F5A; Tue, 5 Feb 2013 17:18:20 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 39000A35; Tue, 5 Feb 2013 17:18:20 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.6/8.14.6) with ESMTP id r15HIDKv022216; Tue, 5 Feb 2013 19:18:13 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.7.4 kib.kiev.ua r15HIDKv022216 Received: (from kostik@localhost) by tom.home (8.14.6/8.14.6/Submit) id r15HIDLP022215; Tue, 5 Feb 2013 19:18:13 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 5 Feb 2013 19:18:13 +0200 From: Konstantin Belousov To: Neel Natu Subject: Re: dynamically calculating NKPT [was: Re: huge ktr buffer] Message-ID: <20130205171813.GP2522@kib.kiev.ua> References: <20130205151413.GL2522@kib.kiev.ua> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iXvAUMgb137SbSJR" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: alc@freebsd.org, davide@freebsd.org, hackers@freebsd.org, avg@freebsd.org, rank1seeker@gmail.com X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2013 17:18:20 -0000 --iXvAUMgb137SbSJR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 05, 2013 at 09:12:41AM -0800, Neel Natu wrote: > Hi Konstantin, >=20 > Sounds fine. I can bump it up to 8 pages. >=20 > Also, wrt your comment about scaling this number based on available > memory, I wonder if it makes sense to optimize for 16KB of additional > space. If it boots on 128MB as is, I am completely fine with the existing patch (after slack increase) as well. >=20 > I would much rather work with you and Alan to fix pmap_growkernel() so > we don't need to care about this slack in the first place :-) Sure, if you consider this important enough. I do agree with mdf that having this happen without any user intervention is good. But having just a tunable for the slack might be much less labor-intensive and good enough. --iXvAUMgb137SbSJR Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJRET7UAAoJEJDCuSvBvK1B3gsP/2uBt9C/AQ4ssADWSqdw/5+s 3fkLNbqhuse/kDHgbhVOBRqRtLr98epNsdu+TGiTyISufUpUhYIl/ou6OSkY/V0N 0AdTNZnCmYVagtDwG11hIibI9lI76FBQi6v1BwQJQ0B+D929OTzstObqDJMUqPx0 fjkrIr1SodJuZt2VBwN/X4DY+wXUFm82QVk3JJkEl60GEy5sxp5T/7SnGm8WJbQk j23Q+syaxL58RHHMKO/6UIZoHjO3u711YPe2E9KYC4MsIFpNfH/a0yXOT9DSepiQ Tz852Cj1U6PHy66BXPyaJaKimGgc1cLxUapuWfa08OI3r3/fT2hMk9FFVcG8/cJh yODPh6vxFtlnjlioz2i2SkQclo28TYoH80ncxQQQoaCpi2tectJIqDCLvz5Fe2Eu uyr/h1ONzFwEh0nOIjhxX1fTlOPfqepUFEuLS0gX9LtH+LtoAYyonphnZUmKkcgE rwLSKJ9tOC4pXZ4l6diEZHp7MxueGypjsK50nTy1aaVgbUBTJgzFdCR8Scn4anit 8yrmrFFN8FiCpGnMJA+KWs8yUzHaGLqAi2L3PryloGUDJ88Juyf52lLt0Vnie2Hy kESANulvu6GGPOUeuWp9rdrNMqcUxRmx3Xvl0lj1ANLT9upSQQVspnbbuWv/oBKz fYXU7ddH+u51U0FhluFN =2QJB -----END PGP SIGNATURE----- --iXvAUMgb137SbSJR--