Carefully choose the low limit for number of buffers to acheive the best

performance on small memory machines.
This commit is contained in:
David Greenman 1995-02-12 09:21:04 +00:00
parent 0217125f2b
commit 17703e4e91
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.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 @@ cpu_startup()
#endif
if (nbuf == 0) {
nbuf = 32;
nbuf = 30;
if( physmem > 1024)
nbuf += min((physmem - 1024) / 20, 1024);
}

View File

@ -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 @@ cpu_startup()
#endif
if (nbuf == 0) {
nbuf = 32;
nbuf = 30;
if( physmem > 1024)
nbuf += min((physmem - 1024) / 20, 1024);
}