Carefully choose the low limit for number of buffers to acheive the best
performance on small memory machines.
This commit is contained in:
parent
0217125f2b
commit
17703e4e91
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user