diff options
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/include/vmparam.h | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/machdep.c | 13 |
2 files changed, 9 insertions, 8 deletions
diff --git a/sys/arch/sparc64/include/vmparam.h b/sys/arch/sparc64/include/vmparam.h index c790d9b071c..8889e84b2ce 100644 --- a/sys/arch/sparc64/include/vmparam.h +++ b/sys/arch/sparc64/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.6 2002/02/11 01:23:36 deraadt Exp $ */ +/* $OpenBSD: vmparam.h,v 1.7 2002/02/17 22:59:53 maja Exp $ */ /* $NetBSD: vmparam.h,v 1.18 2001/05/01 02:19:19 thorpej Exp $ */ /* @@ -152,8 +152,6 @@ #define VM_MIN_KERNEL_ADDRESS ((vaddr_t)KERNBASE) #define VM_MAX_KERNEL_ADDRESS ((vaddr_t)KERNEND) -#define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES) - #define VM_PHYSSEG_MAX 32 /* up to 32 segments */ #define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH #define VM_PHYSSEG_NOADD /* can't add RAM after vm_mem_init */ diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index 2d17378419b..a00794e8b53 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.34 2002/02/05 18:34:39 jason Exp $ */ +/* $OpenBSD: machdep.c,v 1.35 2002/02/17 22:59:53 maja Exp $ */ /* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */ /*- @@ -150,6 +150,12 @@ int bus_space_debug = 0; /* This may be used by macros elsewhere. */ struct vm_map *exec_map = NULL; extern vaddr_t avail_end; +#ifndef BUFCACHEPERCENT +#define BUFCACHEPERCENT 5 +#endif + +int bufcachepercent = BUFCACHEPERCENT; + int physmem; u_long _randseed; extern caddr_t msgbufaddr; @@ -358,16 +364,13 @@ allocsys(caddr_t v) valloc(msqids, struct msqid_ds, msginfo.msgmni); #endif -#ifndef BUFCACHEPERCENT -#define BUFCACHEPERCENT 5 -#endif /* * Determine how many buffers to allocate (enough to * hold 5% of total physical memory, but at least 16). * Allocate 1/2 as many swap buffer headers as file i/o buffers. */ if (bufpages == 0) - bufpages = physmem * BUFCACHEPERCENT / 100; + bufpages = physmem * bufcachepercent / 100; if (nbuf == 0) { nbuf = bufpages; if (nbuf < 16) |