mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Whoops, the algorithm I last used was messed up - I left off parans, and
should have used PGSHIFT instead of PAGE_SHIFT.
This commit is contained in:
parent
03cfe1fd06
commit
97a0085a24
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=683
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.12 1993/10/15 10:34:22 rgrimes Exp $
|
||||
* $Id: machdep.c,v 1.13 1993/10/29 08:58:34 davidg Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
@ -203,7 +203,7 @@ cpu_startup()
|
||||
* We allocate 1/2 as many swap buffer headers as file i/o buffers.
|
||||
*/
|
||||
if (bufpages == 0)
|
||||
bufpages = (physmem << PAGE_SHIFT - 3072*1024) / NBPG / 5;
|
||||
bufpages = ((physmem << PGSHIFT) - 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.12 1993/10/15 10:34:22 rgrimes Exp $
|
||||
* $Id: machdep.c,v 1.13 1993/10/29 08:58:34 davidg Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
@ -203,7 +203,7 @@ cpu_startup()
|
||||
* We allocate 1/2 as many swap buffer headers as file i/o buffers.
|
||||
*/
|
||||
if (bufpages == 0)
|
||||
bufpages = (physmem << PAGE_SHIFT - 3072*1024) / NBPG / 5;
|
||||
bufpages = ((physmem << PGSHIFT) - 3072*1024) / NBPG / 5;
|
||||
if (bufpages < 32)
|
||||
bufpages = 32;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user