Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/arch/vax/vax pullup-1-6 ticket #192:



details:   https://anonhg.NetBSD.org/src/rev/fdb489f56de5
branches:  netbsd-1-6
changeset: 527794:fdb489f56de5
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Jun 07 19:30:09 2002 +0000

description:
pullup-1-6 ticket #192:

syssrc/sys/arch/vax/vax/pmap.c 1.114

Original log message:

Pipes and swap disks takes a not insignificant amount of KVA, so therefore
it must be used in KVA calculation.

diffstat:

 sys/arch/vax/vax/pmap.c |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 6f30f6fa91af -r fdb489f56de5 sys/arch/vax/vax/pmap.c
--- a/sys/arch/vax/vax/pmap.c   Fri Jun 07 19:27:04 2002 +0000
+++ b/sys/arch/vax/vax/pmap.c   Fri Jun 07 19:30:09 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.113 2002/04/04 16:40:15 ragge Exp $    */
+/*     $NetBSD: pmap.c,v 1.113.4.1 2002/06/07 19:30:09 thorpej 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 <sys/types.h>
 #include <sys/param.h>
@@ -198,6 +199,17 @@
 #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;
 }
 



Home | Main Index | Thread Index | Old Index