From 3a2a572ca94f8a92e2e5c5b57e0e08d595862bd1 Mon Sep 17 00:00:00 2001 From: dg Date: Tue, 17 Dec 1996 04:19:41 +0000 Subject: Fix nbuf calculation /4 -> /8. 2.2 already has it this way. Reviewed by: dyson --- sys/amd64/amd64/machdep.c | 4 ++-- sys/i386/i386/machdep.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 0a21983..b65c5bb 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.219 1996/12/12 04:20:50 davidg Exp $ + * $Id: machdep.c,v 1.220 1996/12/14 22:18:38 jkh Exp $ */ #include "npx.h" @@ -282,7 +282,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/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 0a21983..b65c5bb 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.219 1996/12/12 04:20:50 davidg Exp $ + * $Id: machdep.c,v 1.220 1996/12/14 22:18:38 jkh Exp $ */ #include "npx.h" @@ -282,7 +282,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); -- cgit v1.1