Date: Fri, 14 Oct 2005 16:36:24 -0400 From: Kris Kennaway <kris@obsecurity.org> To: sparc64@FreeBSD.org Subject: >12GB RAM now usable Message-ID: <20051014203624.GA36662@xor.obsecurity.org>
next in thread | raw e-mail | index | archive | help
--vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable With this and my previous commit you should be able to boot 7.0 on systems with more than 12GB of RAM. Under 5.x you can do this by setting the kern.maxbcache tunable to 400*1024*1024, but this tunable was broken under 6.0 (fixed in my previous commit). With the below commit you no longer need the tunable. I'm hoping to get this MFCed into 6.0-R. Kris ----- Forwarded message from Kris Kennaway <kris@FreeBSD.org> ----- X-Original-To: kkenn@localhost Delivered-To: kkenn@localhost.obsecurity.org X-Original-To: kris Delivered-To: kris@FreeBSD.ORG X-Original-To: src-committers@FreeBSD.org Delivered-To: src-committers@FreeBSD.org From: Kris Kennaway <kris@FreeBSD.org> Date: Fri, 14 Oct 2005 20:31:12 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sparc64/include param.h X-FreeBSD-CVS-Branch: HEAD Precedence: bulk X-Loop: FreeBSD.ORG X-UIDL: &k)#!0V&!!S;'#!d%%!! X-Bogosity: Ham, tests=3Dbogofilter, spamicity=3D0.000000, version=3D0.96.0 kris 2005-10-14 20:31:12 UTC FreeBSD src repository Modified files: sys/sparc64/include param.h=20 Log: Add a default value for VM_BCACHE_SIZE_MAX of 400MB. This is copied from amd64, and is a factor of 3 less than the value previously auto-sized on a 12GB machine, which would cause an overflow in calculations involving t= he maxbcache int, causing bufinit() to loop forever at boot. =20 Reviewed by: mlaier, peter =20 Revision Changes Path 1.20 +8 -0 src/sys/sparc64/include/param.h http://cvsweb.FreeBSD.org/src/sys/sparc64/include/param.h.diff?r1=3D1.19&r2= =3D1.20 | =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D | RCS file: /usr/local/www/cvsroot/FreeBSD/src/sys/sparc64/include/param.h,v | retrieving revision 1.19 | retrieving revision 1.20 | diff -u -p -r1.19 -r1.20 | --- src/sys/sparc64/include/param.h 2004/11/20 02:29:50 1.19 | +++ src/sys/sparc64/include/param.h 2005/10/14 20:31:12 1.20 | @@ -27,7 +27,7 @@ | * SUCH DAMAGE. | * | * from: @(#)param.h 5.8 (Berkeley) 6/28/91 | - * $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/sparc64/include/para= m.h,v 1.19 2004/11/20 02:29:50 das Exp $ | + * $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/sparc64/include/para= m.h,v 1.20 2005/10/14 20:31:12 kris Exp $ | */ | =20 | /* | @@ -110,6 +110,14 @@ | #define KSTACK_GUARD_PAGES 1 /* pages of kstack guard; 0 disables */ | #define PCPU_PAGES 1 | =20 | +/* | + * Ceiling on size of buffer cache (really only effects write queueing, | + * the VM page cache is not effected), can be changed via | + * the kern.maxbcache /boot/loader.conf variable. | + */ | +#ifndef VM_BCACHE_SIZE_MAX | +#define VM_BCACHE_SIZE_MAX (400 * 1024 * 1024) | +#endif | =20 | /* | * Mach derived conversion macros ----- End forwarded message ----- --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDUBbDWry0BWjoQKURAjI7AJ0S0CzT+F288Mai8pRzYi1S8cFhaACfZm8l /bCfnIHSXrEELFx6c86wuoY= =GqSa -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051014203624.GA36662>