Increased number of buffers to 1/12 of (page_count - 1024). This makes the

cache minimum closer to 10% in the usual case.
This commit is contained in:
David Greenman 1995-03-07 19:58:02 +00:00
parent 5dcf309046
commit d8cb3fb153
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.111 1995/02/15 12:27:01 davidg Exp $
* $Id: machdep.c,v 1.112 1995/03/03 00:43:08 davidg Exp $
*/
#include "npx.h"
@ -257,7 +257,7 @@ again:
if (nbuf == 0) {
nbuf = 30;
if( physmem > 1024)
nbuf += min((physmem - 1024) / 20, 1024);
nbuf += min((physmem - 1024) / 12, 1024);
}
nswbuf = min(nbuf, 128);

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.111 1995/02/15 12:27:01 davidg Exp $
* $Id: machdep.c,v 1.112 1995/03/03 00:43:08 davidg Exp $
*/
#include "npx.h"
@ -257,7 +257,7 @@ again:
if (nbuf == 0) {
nbuf = 30;
if( physmem > 1024)
nbuf += min((physmem - 1024) / 20, 1024);
nbuf += min((physmem - 1024) / 12, 1024);
}
nswbuf = min(nbuf, 128);