diff options
author | peter <peter@FreeBSD.org> | 1999-07-19 23:36:30 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-07-19 23:36:30 +0000 |
commit | c5c37d67da0c5afcd5bc559d39f50846002f89a3 (patch) | |
tree | c318c5a3f8b47dc40b0e0108ed667e196a46ce5d /sys/amd64 | |
parent | cd078e5427b2c0e3a4734252407a1420ccad4a91 (diff) | |
download | FreeBSD-src-c5c37d67da0c5afcd5bc559d39f50846002f89a3.zip FreeBSD-src-c5c37d67da0c5afcd5bc559d39f50846002f89a3.tar.gz |
Fix a page size vs. KB mixup. The extra buffers allocated at a reduced
rate is meant to kick in at 64MB, not 256MB.
Reviewed by: Matthew Dillon <dillon@backplane.com>
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 423de12..a321bb2 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.354 1999/07/08 06:05:48 mckusick Exp $ + * $Id: machdep.c,v 1.355 1999/07/09 04:15:40 jlemon Exp $ */ #include "apm.h" @@ -346,10 +346,10 @@ again: if (nbuf == 0) { nbuf = 30; - if( physmem > 1024) + if (physmem > 1024) nbuf += min((physmem - 1024) / 8, 2048); - if( physmem > 65536) - nbuf += (physmem - 65536) / 20; + if (physmem > 16384) + nbuf += (physmem - 16384) / 20; } nswbuf = max(min(nbuf/4, 256), 16); |