Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sys/arch/macppc/macppc Apply patch (requested by tsubai):
details: https://anonhg.NetBSD.org/src/rev/3c4d409eac30
branches: netbsd-1-4
changeset: 470036:3c4d409eac30
user: he <he%NetBSD.org@localhost>
date: Sat Jan 15 17:04:53 2000 +0000
description:
Apply patch (requested by tsubai):
Apply last part of fix for "panic: startup: cannot allocate VM
for buffers" when RAM is > approx. 128MB.
diffstat:
sys/arch/macppc/macppc/machdep.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 8269b98bf8fa -r 3c4d409eac30 sys/arch/macppc/macppc/machdep.c
--- a/sys/arch/macppc/macppc/machdep.c Sat Jan 15 16:59:46 2000 +0000
+++ b/sys/arch/macppc/macppc/machdep.c Sat Jan 15 17:04:53 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.38.2.4 1999/06/24 16:35:14 perry Exp $ */
+/* $NetBSD: machdep.c,v 1.38.2.5 2000/01/15 17:04:53 he Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -635,6 +635,14 @@
if (nbuf < 16)
nbuf = 16;
}
+
+ /*
+ * XXX stopgap measure to prevent wasting too much KVM on
+ * the sparsely filled buffer cache.
+ */
+ if (nbuf * MAXBSIZE > VM_MAX_KERNEL_BUF)
+ nbuf = VM_MAX_KERNEL_BUF / MAXBSIZE;
+
if (nswbuf == 0) {
nswbuf = (nbuf / 2) & ~1;
if (nswbuf > 256)
Home |
Main Index |
Thread Index |
Old Index