mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
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
2 changed files with 4 additions and 4 deletions
|
|
@ -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 @@ again:
|
|||
#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 @@ again:
|
|||
#endif
|
||||
|
||||
if (nbuf == 0) {
|
||||
nbuf = 32;
|
||||
nbuf = 30;
|
||||
if( physmem > 1024)
|
||||
nbuf += min((physmem - 1024) / 20, 1024);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue