From 17703e4e91a3b72abf137d0ea647814e2bb1b30d Mon Sep 17 00:00:00 2001 From: David Greenman Date: Sun, 12 Feb 1995 09:21:04 +0000 Subject: [PATCH] Carefully choose the low limit for number of buffers to acheive the best performance on small memory machines. --- sys/amd64/amd64/machdep.c | 4 ++-- sys/i386/i386/machdep.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index ff2c1885f08..b82ecc0ee0c 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.107 1995/02/10 07:44:03 davidg Exp $ + * $Id: machdep.c,v 1.108 1995/02/11 04:21:24 phk Exp $ */ #include "npx.h" @@ -255,7 +255,7 @@ again: #endif if (nbuf == 0) { - nbuf = 32; + nbuf = 30; if( physmem > 1024) nbuf += min((physmem - 1024) / 20, 1024); } diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index ff2c1885f08..b82ecc0ee0c 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.107 1995/02/10 07:44:03 davidg Exp $ + * $Id: machdep.c,v 1.108 1995/02/11 04:21:24 phk Exp $ */ #include "npx.h" @@ -255,7 +255,7 @@ again: #endif if (nbuf == 0) { - nbuf = 32; + nbuf = 30; if( physmem > 1024) nbuf += min((physmem - 1024) / 20, 1024); }