Source-Changes-HG archive

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

[src/trunk]: src/sys/arch raise MSIZE from 128 to 256.



details:   https://anonhg.NetBSD.org/src/rev/6c1adfa1de87
branches:  trunk
changeset: 494066:6c1adfa1de87
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Jun 30 17:55:11 2000 +0000

description:
raise MSIZE from 128 to 256.
- for sizeof(void *) == 8 arch, this is mandatory.  MHLEN is too small
  already (less than 80) and there are chances for unwanted packet loss due
  to m_pullup restriction.
- for other cases, the change should avoid allocating clusters in most cases
  (even when you have IPv4 IPsec tunnel, or IPv6 with moderate amount of
  extension header)

portmasters: if your arch chokes with the change (high memory usage or
whatever), please backout the change for your arch.

diffstat:

 sys/arch/amigappc/include/param.h |  4 ++--
 sys/arch/arc/include/param.h      |  4 ++--
 sys/arch/arm26/include/param.h    |  4 ++--
 sys/arch/arm32/include/param.h    |  4 ++--
 sys/arch/bebox/include/param.h    |  4 ++--
 sys/arch/cobalt/include/param.h   |  4 ++--
 sys/arch/evbsh3/include/param.h   |  4 ++--
 sys/arch/hpcmips/include/param.h  |  4 ++--
 sys/arch/i386/include/param.h     |  4 ++--
 sys/arch/m68k/include/param.h     |  4 ++--
 sys/arch/macppc/include/param.h   |  4 ++--
 sys/arch/mmeye/include/param.h    |  4 ++--
 sys/arch/newsmips/include/param.h |  4 ++--
 sys/arch/ofppc/include/param.h    |  4 ++--
 sys/arch/pc532/include/param.h    |  4 ++--
 sys/arch/pmax/include/param.h     |  4 ++--
 sys/arch/powerpc/include/param.h  |  4 ++--
 sys/arch/prep/include/param.h     |  4 ++--
 sys/arch/sgimips/include/param.h  |  4 ++--
 sys/arch/sh3/include/param.h      |  4 ++--
 sys/arch/sparc/include/param.h    |  4 ++--
 sys/arch/sparc64/include/param.h  |  4 ++--
 sys/arch/vax/include/param.h      |  4 ++--
 23 files changed, 46 insertions(+), 46 deletions(-)

diffs (truncated from 414 to 300 lines):

diff -r b6dba67967e4 -r 6c1adfa1de87 sys/arch/amigappc/include/param.h
--- a/sys/arch/amigappc/include/param.h Fri Jun 30 17:45:11 2000 +0000
+++ b/sys/arch/amigappc/include/param.h Fri Jun 30 17:55:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.1 2000/05/25 22:12:00 is Exp $     */
+/*     $NetBSD: param.h,v 1.2 2000/06/30 17:55:11 itojun Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -87,7 +87,7 @@
  * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
  * of the hardware page size.
  */
-#define        MSIZE           128             /* size of an mbuf */
+#define        MSIZE           256             /* size of an mbuf */
 #define        MCLSHIFT        11              /* convert bytes to m_buf clusters */
 #define        MCLBYTES        (1 << MCLSHIFT) /* size of a m_buf cluster */
 
diff -r b6dba67967e4 -r 6c1adfa1de87 sys/arch/arc/include/param.h
--- a/sys/arch/arc/include/param.h      Fri Jun 30 17:45:11 2000 +0000
+++ b/sys/arch/arc/include/param.h      Fri Jun 30 17:55:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.13 2000/02/11 19:25:14 thorpej Exp $       */
+/*     $NetBSD: param.h,v 1.14 2000/06/30 17:55:12 itojun Exp $        */
 /*      $OpenBSD: param.h,v 1.9 1997/04/30 09:54:15 niklas Exp $ */
 
 /*
@@ -92,7 +92,7 @@
  * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
  * of the hardware page size.
  */
-#define        MSIZE           128             /* size of an mbuf */
+#define        MSIZE           256             /* size of an mbuf */
 #define        MCLSHIFT        11
 #define        MCLBYTES        (1 << MCLSHIFT) /* enough for whole Ethernet packet */
 #define        MCLOFSET        (MCLBYTES - 1)
diff -r b6dba67967e4 -r 6c1adfa1de87 sys/arch/arm26/include/param.h
--- a/sys/arch/arm26/include/param.h    Fri Jun 30 17:45:11 2000 +0000
+++ b/sys/arch/arm26/include/param.h    Fri Jun 30 17:55:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.1 2000/05/09 21:56:00 bjh21 Exp $  */
+/*     $NetBSD: param.h,v 1.2 2000/06/30 17:55:12 itojun Exp $ */
 
 /*
  * Copyright (c) 1994,1995 Mark Brinicombe.
@@ -91,7 +91,7 @@
  * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
  * of the hardware page size.
  */
-#define        MSIZE           128             /* size of an mbuf */
+#define        MSIZE           256             /* size of an mbuf */
 #define        MCLSHIFT        11              /* convert bytes to m_buf clusters */
 #define        MCLBYTES        (1 << MCLSHIFT) /* size of a m_buf cluster */
 #define        MCLOFSET        (MCLBYTES - 1)  /* offset within a m_buf cluster */
diff -r b6dba67967e4 -r 6c1adfa1de87 sys/arch/arm32/include/param.h
--- a/sys/arch/arm32/include/param.h    Fri Jun 30 17:45:11 2000 +0000
+++ b/sys/arch/arm32/include/param.h    Fri Jun 30 17:55:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.17 2000/02/11 19:25:14 thorpej Exp $       */
+/*     $NetBSD: param.h,v 1.18 2000/06/30 17:55:13 itojun Exp $        */
 
 /*
  * Copyright (c) 1994,1995 Mark Brinicombe.
@@ -91,7 +91,7 @@
  * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
  * of the hardware page size.
  */
-#define        MSIZE           128             /* size of an mbuf */
+#define        MSIZE           256             /* size of an mbuf */
 #define        MCLSHIFT        11              /* convert bytes to m_buf clusters */
 #define        MCLBYTES        (1 << MCLSHIFT) /* size of a m_buf cluster */
 #define        MCLOFSET        (MCLBYTES - 1)  /* offset within a m_buf cluster */
diff -r b6dba67967e4 -r 6c1adfa1de87 sys/arch/bebox/include/param.h
--- a/sys/arch/bebox/include/param.h    Fri Jun 30 17:45:11 2000 +0000
+++ b/sys/arch/bebox/include/param.h    Fri Jun 30 17:55:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.6 2000/02/11 19:25:15 thorpej Exp $        */
+/*     $NetBSD: param.h,v 1.7 2000/06/30 17:55:13 itojun Exp $ */
 
 /*-
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -75,7 +75,7 @@
  * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
  * of the hardware page size.
  */
-#define        MSIZE           128             /* size of an mbuf */
+#define        MSIZE           256             /* size of an mbuf */
 #define        MCLSHIFT        11              /* convert bytes to m_buf clusters */
 #define        MCLBYTES        (1 << MCLSHIFT) /* size of a m_buf cluster */
 
diff -r b6dba67967e4 -r 6c1adfa1de87 sys/arch/cobalt/include/param.h
--- a/sys/arch/cobalt/include/param.h   Fri Jun 30 17:45:11 2000 +0000
+++ b/sys/arch/cobalt/include/param.h   Fri Jun 30 17:55:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.4 2000/05/05 03:27:22 soren Exp $  */
+/*     $NetBSD: param.h,v 1.5 2000/06/30 17:55:13 itojun Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -54,7 +54,7 @@
 #define        CLSIZE          1
 #define        CLSIZELOG2      0
 
-#define        MSIZE           128             /* Size of an mbuf */
+#define        MSIZE           256             /* Size of an mbuf */
 
 #ifndef MCLSHIFT
 #define        MCLSHIFT        11              /* Convert bytes to m_buf clusters. */
diff -r b6dba67967e4 -r 6c1adfa1de87 sys/arch/evbsh3/include/param.h
--- a/sys/arch/evbsh3/include/param.h   Fri Jun 30 17:45:11 2000 +0000
+++ b/sys/arch/evbsh3/include/param.h   Fri Jun 30 17:55:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.4 2000/02/24 19:42:36 msaitoh Exp $        */
+/*     $NetBSD: param.h,v 1.5 2000/06/30 17:55:13 itojun Exp $ */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -127,7 +127,7 @@
  * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
  * of the hardware page size.
  */
-#define        MSIZE           128             /* size of an mbuf */
+#define        MSIZE           256             /* size of an mbuf */
 
 #ifndef MCLSHIFT
 # define       MCLSHIFT        11      /* convert bytes to m_buf clusters */
diff -r b6dba67967e4 -r 6c1adfa1de87 sys/arch/hpcmips/include/param.h
--- a/sys/arch/hpcmips/include/param.h  Fri Jun 30 17:45:11 2000 +0000
+++ b/sys/arch/hpcmips/include/param.h  Fri Jun 30 17:55:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.2 1999/12/04 21:20:28 ragge Exp $  */
+/*     $NetBSD: param.h,v 1.3 2000/06/30 17:55:14 itojun Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -76,7 +76,7 @@
  * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
  * of the hardware page size.
  */
-#define        MSIZE           128             /* size of an mbuf */
+#define        MSIZE           256             /* size of an mbuf */
 
 #ifndef MCLSHIFT
 
diff -r b6dba67967e4 -r 6c1adfa1de87 sys/arch/i386/include/param.h
--- a/sys/arch/i386/include/param.h     Fri Jun 30 17:45:11 2000 +0000
+++ b/sys/arch/i386/include/param.h     Fri Jun 30 17:55:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.40 2000/02/11 19:25:15 thorpej Exp $       */
+/*     $NetBSD: param.h,v 1.41 2000/06/30 17:55:14 itojun Exp $        */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -103,7 +103,7 @@
  * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
  * of the hardware page size.
  */
-#define        MSIZE           128             /* size of an mbuf */
+#define        MSIZE           256             /* size of an mbuf */
 
 #ifndef MCLSHIFT
 # define       MCLSHIFT        11      /* convert bytes to m_buf clusters */
diff -r b6dba67967e4 -r 6c1adfa1de87 sys/arch/m68k/include/param.h
--- a/sys/arch/m68k/include/param.h     Fri Jun 30 17:45:11 2000 +0000
+++ b/sys/arch/m68k/include/param.h     Fri Jun 30 17:55:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.7 1999/12/12 07:45:46 scottr Exp $ */
+/*     $NetBSD: param.h,v 1.8 2000/06/30 17:55:14 itojun Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -92,7 +92,7 @@
  * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
  * of the hardware page size.
  */
-#define        MSIZE           128             /* size of an mbuf */
+#define        MSIZE           256             /* size of an mbuf */
 
 #ifndef        MCLSHIFT
 # define       MCLSHIFT        11      /* convert bytes to m_buf clusters */
diff -r b6dba67967e4 -r 6c1adfa1de87 sys/arch/macppc/include/param.h
--- a/sys/arch/macppc/include/param.h   Fri Jun 30 17:45:11 2000 +0000
+++ b/sys/arch/macppc/include/param.h   Fri Jun 30 17:55:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.9 2000/02/13 17:01:47 tsubai Exp $ */
+/*     $NetBSD: param.h,v 1.10 2000/06/30 17:55:15 itojun Exp $        */
 
 /*-
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -73,7 +73,7 @@
  * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
  * of the hardware page size.
  */
-#define        MSIZE           128             /* size of an mbuf */
+#define        MSIZE           256             /* size of an mbuf */
 #define        MCLSHIFT        11              /* convert bytes to m_buf clusters */
 #define        MCLBYTES        (1 << MCLSHIFT) /* size of a m_buf cluster */
 
diff -r b6dba67967e4 -r 6c1adfa1de87 sys/arch/mmeye/include/param.h
--- a/sys/arch/mmeye/include/param.h    Fri Jun 30 17:45:11 2000 +0000
+++ b/sys/arch/mmeye/include/param.h    Fri Jun 30 17:55:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.4 2000/02/24 19:42:36 msaitoh Exp $        */
+/*     $NetBSD: param.h,v 1.5 2000/06/30 17:55:15 itojun Exp $ */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -118,7 +118,7 @@
  * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
  * of the hardware page size.
  */
-#define        MSIZE           128             /* size of an mbuf */
+#define        MSIZE           256             /* size of an mbuf */
 
 #ifndef MCLSHIFT
 # define       MCLSHIFT        11      /* convert bytes to m_buf clusters */
diff -r b6dba67967e4 -r 6c1adfa1de87 sys/arch/newsmips/include/param.h
--- a/sys/arch/newsmips/include/param.h Fri Jun 30 17:45:11 2000 +0000
+++ b/sys/arch/newsmips/include/param.h Fri Jun 30 17:55:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     from $NetBSD: param.h,v 1.6 1999/12/04 21:20:59 ragge Exp $     */
+/*     from $NetBSD: param.h,v 1.7 2000/06/30 17:55:15 itojun Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -74,7 +74,7 @@
  * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
  * of the hardware page size.
  */
-#define        MSIZE           128             /* size of an mbuf */
+#define        MSIZE           256             /* size of an mbuf */
 
 #ifndef MCLSHIFT
 
diff -r b6dba67967e4 -r 6c1adfa1de87 sys/arch/ofppc/include/param.h
--- a/sys/arch/ofppc/include/param.h    Fri Jun 30 17:45:11 2000 +0000
+++ b/sys/arch/ofppc/include/param.h    Fri Jun 30 17:55:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.7 2000/02/11 19:30:28 thorpej Exp $        */
+/*     $NetBSD: param.h,v 1.8 2000/06/30 17:55:16 itojun Exp $ */
 
 /*-
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -73,7 +73,7 @@
  * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
  * of the hardware page size.
  */
-#define        MSIZE           128             /* size of an mbuf */
+#define        MSIZE           256             /* size of an mbuf */
 #define        MCLSHIFT        11              /* convert bytes to m_buf clusters */
 #define        MCLBYTES        (1 << MCLSHIFT) /* size of a m_buf cluster */
 
diff -r b6dba67967e4 -r 6c1adfa1de87 sys/arch/pc532/include/param.h
--- a/sys/arch/pc532/include/param.h    Fri Jun 30 17:45:11 2000 +0000
+++ b/sys/arch/pc532/include/param.h    Fri Jun 30 17:55:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.23 2000/02/11 19:30:29 thorpej Exp $       */
+/*     $NetBSD: param.h,v 1.24 2000/06/30 17:55:16 itojun Exp $        */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -103,7 +103,7 @@
  * of the hardware page size.
  */
 #ifndef        MSIZE
-#define        MSIZE           128             /* size of an mbuf */
+#define        MSIZE           256             /* size of an mbuf */
 #endif /* MSIZE */
 
 #ifndef        MCLSHIFT
diff -r b6dba67967e4 -r 6c1adfa1de87 sys/arch/pmax/include/param.h
--- a/sys/arch/pmax/include/param.h     Fri Jun 30 17:45:11 2000 +0000
+++ b/sys/arch/pmax/include/param.h     Fri Jun 30 17:55:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.32 2000/05/06 05:55:09 nisimura Exp $      */
+/*     $NetBSD: param.h,v 1.33 2000/06/30 17:55:16 itojun Exp $        */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -73,7 +73,7 @@
  * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
  * of the hardware page size.
  */
-#define        MSIZE           128             /* size of an mbuf */
+#define        MSIZE           256             /* size of an mbuf */
 
 #ifndef MCLSHIFT
 # define MCLSHIFT      11              /* convert bytes to m_buf clusters */
diff -r b6dba67967e4 -r 6c1adfa1de87 sys/arch/powerpc/include/param.h
--- a/sys/arch/powerpc/include/param.h  Fri Jun 30 17:45:11 2000 +0000
+++ b/sys/arch/powerpc/include/param.h  Fri Jun 30 17:55:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.7 2000/02/11 19:30:29 thorpej Exp $        */
+/*     $NetBSD: param.h,v 1.8 2000/06/30 17:55:17 itojun Exp $ */
 
 /*-
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -73,7 +73,7 @@
  * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
  * of the hardware page size.



Home | Main Index | Thread Index | Old Index