Change filesystem buffer cache size calculation to be less for 4MB
machines (now 20% of all memory after the first 3MB). This is necessary in order for 4MB machine to be able to rebuild the entire source tree and not run out of physical memory because of fixed memory requirements of processes and kernel VM.
This commit is contained in:
parent
4506032117
commit
03cfe1fd06
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.11 1993/10/14 18:15:35 rgrimes Exp $
|
||||
* $Id: machdep.c,v 1.12 1993/10/15 10:34:22 rgrimes Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
@ -203,7 +203,7 @@ again:
|
||||
* We allocate 1/2 as many swap buffer headers as file i/o buffers.
|
||||
*/
|
||||
if (bufpages == 0)
|
||||
bufpages = (ctob(physmem) - 2048*1024) / NBPG / 5;
|
||||
bufpages = (physmem << PAGE_SHIFT - 3072*1024) / NBPG / 5;
|
||||
if (bufpages < 32)
|
||||
bufpages = 32;
|
||||
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.11 1993/10/14 18:15:35 rgrimes Exp $
|
||||
* $Id: machdep.c,v 1.12 1993/10/15 10:34:22 rgrimes Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
@ -203,7 +203,7 @@ again:
|
||||
* We allocate 1/2 as many swap buffer headers as file i/o buffers.
|
||||
*/
|
||||
if (bufpages == 0)
|
||||
bufpages = (ctob(physmem) - 2048*1024) / NBPG / 5;
|
||||
bufpages = (physmem << PAGE_SHIFT - 3072*1024) / NBPG / 5;
|
||||
if (bufpages < 32)
|
||||
bufpages = 32;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user