diff --git a/sys/arch/vax/vax/pmap.c b/sys/arch/vax/vax/pmap.c index 3f6826aa939d..2ba9bd0697ec 100644 --- a/sys/arch/vax/vax/pmap.c +++ b/sys/arch/vax/vax/pmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.113 2002/04/04 16:40:15 ragge Exp $ */ +/* $NetBSD: pmap.c,v 1.114 2002/06/06 12:28:44 ragge Exp $ */ /* * Copyright (c) 1994, 1998, 1999 Ludd, University of Lule}, Sweden. * All rights reserved. @@ -33,6 +33,7 @@ #include "opt_cputype.h" #include "opt_multiprocessor.h" #include "opt_lockdebug.h" +#include "opt_pipe.h" #include #include @@ -198,6 +199,17 @@ calc_kvmsize(vsize_t usrptsize) #define MAXLKMSIZ 0x100000 /* XXX */ kvmsize += MAXLKMSIZ; #endif + + /* The swapper uses many anon's, set an arbitrary size */ +#ifndef SWAPSIZE +#define SWAPSIZE (200*1024*1024) /* Assume 200MB swap */ +#endif + kvmsize += ((SWAPSIZE/PAGE_SIZE)*sizeof(struct vm_anon)); + + /* New pipes may steal some amount of memory. Calculate 10 pipes */ +#ifndef PIPE_SOCKETPAIR + kvmsize += PIPE_DIRECT_CHUNK*10; +#endif return kvmsize; }