summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1996-12-17 13:26:17 +0000
committerkato <kato@FreeBSD.org>1996-12-17 13:26:17 +0000
commit2c8614d6c1449dc66a1575d1b4109803b361ddb2 (patch)
treefc9789d76ce5a0ec146535304be99f255e92673d
parent73551d66e7e9d7cc3ddb01374ca84594c8b0d7f0 (diff)
downloadFreeBSD-src-2c8614d6c1449dc66a1575d1b4109803b361ddb2.zip
FreeBSD-src-2c8614d6c1449dc66a1575d1b4109803b361ddb2.tar.gz
Sync with i386/i386/machdep.c revision 1.221 (fix nbuf calculation).
-rw-r--r--sys/pc98/i386/machdep.c4
-rw-r--r--sys/pc98/pc98/machdep.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index 2dc82a3..07c9de6 100644
--- a/sys/pc98/i386/machdep.c
+++ b/sys/pc98/i386/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.19 1996/12/12 13:10:50 kato Exp $
+ * $Id: machdep.c,v 1.20 1996/12/15 09:18:48 kato Exp $
*/
#include "npx.h"
@@ -289,7 +289,7 @@ again:
if (nbuf == 0) {
nbuf = 30;
if( physmem > 1024)
- nbuf += min((physmem - 1024) / 4, 2048);
+ nbuf += min((physmem - 1024) / 8, 2048);
}
nswbuf = max(min(nbuf/4, 128), 16);
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index 2dc82a3..07c9de6 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.19 1996/12/12 13:10:50 kato Exp $
+ * $Id: machdep.c,v 1.20 1996/12/15 09:18:48 kato Exp $
*/
#include "npx.h"
@@ -289,7 +289,7 @@ again:
if (nbuf == 0) {
nbuf = 30;
if( physmem > 1024)
- nbuf += min((physmem - 1024) / 4, 2048);
+ nbuf += min((physmem - 1024) / 8, 2048);
}
nswbuf = max(min(nbuf/4, 128), 16);
OpenPOWER on IntegriCloud