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>
index | next in thread | raw e-mail
[-- Attachment #1 --]
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=bogofilter, spamicity=0.000000, version=0.96.0
kris 2005-10-14 20:31:12 UTC
FreeBSD src repository
Modified files:
sys/sparc64/include param.h
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 the
maxbcache int, causing bufinit() to loop forever at boot.
Reviewed by: mlaier, peter
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=1.19&r2=1.20
| ===================================================================
| 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/param.h,v 1.19 2004/11/20 02:29:50 das Exp $
| + * $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/sparc64/include/param.h,v 1.20 2005/10/14 20:31:12 kris Exp $
| */
|
| /*
| @@ -110,6 +110,14 @@
| #define KSTACK_GUARD_PAGES 1 /* pages of kstack guard; 0 disables */
| #define PCPU_PAGES 1
|
| +/*
| + * 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
|
| /*
| * Mach derived conversion macros
----- End forwarded message -----
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)
iD8DBQFDUBbDWry0BWjoQKURAjI7AJ0S0CzT+F288Mai8pRzYi1S8cFhaACfZm8l
/bCfnIHSXrEELFx6c86wuoY=
=GqSa
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051014203624.GA36662>
