Source-Changes-HG archive

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

[src/trunk]: src G/C VM_MAX_KERNEL_BUF



details:   https://anonhg.NetBSD.org/src/rev/269796eae9e2
branches:  trunk
changeset: 821690:269796eae9e2
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Feb 13 09:46:29 2017 +0000

description:
G/C VM_MAX_KERNEL_BUF

diffstat:

 share/man/man4/options.4                  |   5 +----
 sys/arch/acorn26/include/vmparam.h        |   8 +-------
 sys/arch/arm/include/arm32/vmparam.h      |  13 +------------
 sys/arch/powerpc/include/ibm4xx/vmparam.h |   7 +------
 sys/arch/powerpc/include/oea/vmparam.h    |   4 ----
 sys/arch/sparc/include/param.h            |   4 +---
 sys/arch/sparc64/include/param.h          |   3 +--
 7 files changed, 6 insertions(+), 38 deletions(-)

diffs (136 lines):

diff -r 48b7bd162777 -r 269796eae9e2 share/man/man4/options.4
--- a/share/man/man4/options.4  Mon Feb 13 07:37:19 2017 +0000
+++ b/share/man/man4/options.4  Mon Feb 13 09:46:29 2017 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: options.4,v 1.460 2017/01/08 17:57:37 christos Exp $
+.\"    $NetBSD: options.4,v 1.461 2017/02/13 09:46:29 skrll Exp $
 .\"
 .\" Copyright (c) 1996
 .\"    Perry E. Metzger.  All rights reserved.
@@ -2216,9 +2216,6 @@
 requires MAXBSIZE (machine dependent, but usually 65536) bytes.
 The default value is machine dependent, but is usually equal to the
 value of BUFPAGES.
-If an architecture dependent VM_MAX_KERNEL_BUF constant is defined
-then NBUF may be reduced at run time so that the storage allocated
-for buffer headers doesn't exceed that limit.
 .It Cd options BUFPAGES=value
 These options set the number of pages available for the buffer cache.
 Their default value is a machine dependent value, often calculated as
diff -r 48b7bd162777 -r 269796eae9e2 sys/arch/acorn26/include/vmparam.h
--- a/sys/arch/acorn26/include/vmparam.h        Mon Feb 13 07:37:19 2017 +0000
+++ b/sys/arch/acorn26/include/vmparam.h        Mon Feb 13 09:46:29 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.13 2014/09/13 18:08:38 matt Exp $        */
+/*     $NetBSD: vmparam.h,v 1.14 2017/02/13 09:46:29 skrll Exp $       */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -88,12 +88,6 @@
 #define        VM_MAX_KERNEL_ADDRESS   ((vaddr_t)0x02000000)
 #define        VM_MAXKERN_ADDRESS      VM_MAX_KERNEL_ADDRESS
 
-/* XXX max. amount of KVM to be used by buffers. */
-#ifndef VM_MAX_KERNEL_BUF
-#define VM_MAX_KERNEL_BUF \
-       ((VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS) / 4)
-#endif
-
 /* Physical memory parameters */
 
 #define VM_PHYSSEG_MAX         3
diff -r 48b7bd162777 -r 269796eae9e2 sys/arch/arm/include/arm32/vmparam.h
--- a/sys/arch/arm/include/arm32/vmparam.h      Mon Feb 13 07:37:19 2017 +0000
+++ b/sys/arch/arm/include/arm32/vmparam.h      Mon Feb 13 09:46:29 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.40 2015/10/18 00:28:32 jmcneill Exp $    */
+/*     $NetBSD: vmparam.h,v 1.41 2017/02/13 09:46:30 skrll Exp $       */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -99,17 +99,6 @@
 #define        VM_MIN_KERNEL_ADDRESS   ((vaddr_t) KERNEL_BASE)
 #define        VM_MAX_KERNEL_ADDRESS   ((vaddr_t) -(PAGE_SIZE+1))
 
-#ifndef __ASSEMBLER__
-/* XXX max. amount of KVM to be used by buffers. */
-#ifndef VM_MAX_KERNEL_BUF
-extern vaddr_t virtual_avail;
-extern vaddr_t virtual_end;
-
-#define        VM_MAX_KERNEL_BUF       \
-       ((virtual_end - virtual_avail) * 4 / 10)
-#endif
-#endif /* __ASSEMBLER__ */
-
 #endif /* _KERNEL || _KMEMUSER */
 
 #endif /* _ARM_ARM32_VMPARAM_H_ */
diff -r 48b7bd162777 -r 269796eae9e2 sys/arch/powerpc/include/ibm4xx/vmparam.h
--- a/sys/arch/powerpc/include/ibm4xx/vmparam.h Mon Feb 13 07:37:19 2017 +0000
+++ b/sys/arch/powerpc/include/ibm4xx/vmparam.h Mon Feb 13 09:46:29 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.10 2015/02/23 20:34:38 joerg Exp $       */
+/*     $NetBSD: vmparam.h,v 1.11 2017/02/13 09:46:30 skrll Exp $       */
 
 /*-
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -90,11 +90,6 @@
 #define        VM_MAX_KERNEL_ADDRESS   (VM_MIN_KERNEL_ADDRESS + SEGMENT_LENGTH - 1)
 #endif
 
-/* XXX max. amount of KVM to be used by buffers. */
-#ifndef VM_MAX_KERNEL_BUF
-#define VM_MAX_KERNEL_BUF      (0x10000000 * 7 / 10)
-#endif
-
 #define        VM_PHYS_SIZE            (USRIOSIZE * PAGE_SIZE)
 
 #define        __HAVE_PMAP_PHYSSEG
diff -r 48b7bd162777 -r 269796eae9e2 sys/arch/powerpc/include/oea/vmparam.h
--- a/sys/arch/powerpc/include/oea/vmparam.h    Mon Feb 13 07:37:19 2017 +0000
+++ b/sys/arch/powerpc/include/oea/vmparam.h    Mon Feb 13 09:46:29 2017 +0000
@@ -197,8 +197,4 @@
 #define        VM_PHYS_SIZE            (USRIOSIZE * PAGE_SIZE)
 #endif
 
-#ifndef VM_MAX_KERNEL_BUF
-#define        VM_MAX_KERNEL_BUF       (SEGMENT_LENGTH * 3 / 4)
-#endif
-
 #endif /* _POWERPC_OEA_VMPARAM_H_ */
diff -r 48b7bd162777 -r 269796eae9e2 sys/arch/sparc/include/param.h
--- a/sys/arch/sparc/include/param.h    Mon Feb 13 07:37:19 2017 +0000
+++ b/sys/arch/sparc/include/param.h    Mon Feb 13 09:46:29 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.70 2012/02/10 17:35:48 para Exp $ */
+/*     $NetBSD: param.h,v 1.71 2017/02/13 09:46:30 skrll Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -81,8 +81,6 @@
 #define        KERNBASE        0xe8000000
 #endif
 #define KERNEND                0xfe000000      /* end of kernel virtual space */
-/* Arbitrarily only use 1/4 of the kernel address space for buffers. */
-#define VM_MAX_KERNEL_BUF      ((KERNEND - KERNBASE)/4)
 #define PROM_LOADADDR  0x00004000      /* where the prom loads us */
 #define        KERNTEXTOFF     (KERNBASE+PROM_LOADADDR)/* start of kernel text */
 
diff -r 48b7bd162777 -r 269796eae9e2 sys/arch/sparc64/include/param.h
--- a/sys/arch/sparc64/include/param.h  Mon Feb 13 07:37:19 2017 +0000
+++ b/sys/arch/sparc64/include/param.h  Mon Feb 13 09:46:29 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.57 2016/04/15 20:29:13 martin Exp $ */
+/*     $NetBSD: param.h,v 1.58 2017/02/13 09:46:30 skrll Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -169,7 +169,6 @@
  */
 #define        KERNBASE        0x001000000     /* start of kernel virtual space */
 #define        KERNEND         0x0e0000000     /* end of kernel virtual space */
-#define        VM_MAX_KERNEL_BUF       ((KERNEND-KERNBASE)/4)
 
 #define        _MAXNBPG        8192    /* fixed VAs, independent of actual NBPG */
 



Home | Main Index | Thread Index | Old Index