>12GB RAM now usable
Kris Kennaway
kris at obsecurity.org
Fri Oct 14 13:36:25 PDT 2005
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 at FreeBSD.org> -----
X-Original-To: kkenn at localhost
Delivered-To: kkenn at localhost.obsecurity.org
X-Original-To: kris
Delivered-To: kris at FreeBSD.ORG
X-Original-To: src-committers at FreeBSD.org
Delivered-To: src-committers at FreeBSD.org
From: Kris Kennaway <kris at FreeBSD.org>
Date: Fri, 14 Oct 2005 20:31:12 +0000 (UTC)
To: src-committers at FreeBSD.org, cvs-src at FreeBSD.org, cvs-all at 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 -----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-sparc64/attachments/20051014/378dc8d2/attachment.bin
More information about the freebsd-sparc64
mailing list