summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1996-12-17 04:19:41 +0000
committerdg <dg@FreeBSD.org>1996-12-17 04:19:41 +0000
commit3a2a572ca94f8a92e2e5c5b57e0e08d595862bd1 (patch)
tree6f754fb6a1a11980c9412e20bf28ef255a8a64b5 /sys
parent994565dd8daaf8a525b2b4ed58daecc5881d23c7 (diff)
downloadFreeBSD-src-3a2a572ca94f8a92e2e5c5b57e0e08d595862bd1.zip
FreeBSD-src-3a2a572ca94f8a92e2e5c5b57e0e08d595862bd1.tar.gz
Fix nbuf calculation /4 -> /8. 2.2 already has it this way.
Reviewed by: dyson
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/machdep.c4
-rw-r--r--sys/i386/i386/machdep.c4
2 files changed, 4 insertions, 4 deletions
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);
OpenPOWER on IntegriCloud