One minor mod to set the limit of nbufs to 2048 from 1536. More important

fix to exech_map, it used 32*ARG_MAX, and it should use 32*PAGE_SIZE.
This commit is contained in:
John Dyson 1996-12-11 05:52:15 +00:00
parent 2ae09ad871
commit ab608804ed
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=20313
2 changed files with 6 additions and 6 deletions

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.216 1996/12/01 16:34:05 bde Exp $
* $Id: machdep.c,v 1.217 1996/12/05 04:28:42 dyson Exp $
*/
#include "npx.h"
@ -282,7 +282,7 @@ cpu_startup(dummy)
if (nbuf == 0) {
nbuf = 30;
if( physmem > 1024)
nbuf += min((physmem - 1024) / 4, 1536);
nbuf += min((physmem - 1024) / 4, 2048);
}
nswbuf = max(min(nbuf/4, 128), 16);
@ -336,7 +336,7 @@ cpu_startup(dummy)
exec_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr,
(16*ARG_MAX), TRUE);
exech_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr,
(32*ARG_MAX), TRUE);
(32*PAGE_SIZE), TRUE);
u_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr,
(maxproc*UPAGES*PAGE_SIZE), FALSE);

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.216 1996/12/01 16:34:05 bde Exp $
* $Id: machdep.c,v 1.217 1996/12/05 04:28:42 dyson Exp $
*/
#include "npx.h"
@ -282,7 +282,7 @@ cpu_startup(dummy)
if (nbuf == 0) {
nbuf = 30;
if( physmem > 1024)
nbuf += min((physmem - 1024) / 4, 1536);
nbuf += min((physmem - 1024) / 4, 2048);
}
nswbuf = max(min(nbuf/4, 128), 16);
@ -336,7 +336,7 @@ cpu_startup(dummy)
exec_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr,
(16*ARG_MAX), TRUE);
exech_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr,
(32*ARG_MAX), TRUE);
(32*PAGE_SIZE), TRUE);
u_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr,
(maxproc*UPAGES*PAGE_SIZE), FALSE);