mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
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:
parent
2ae09ad871
commit
ab608804ed
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=20313
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user