summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2016-05-24 13:11:03 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2016-05-24 13:11:03 +0000
commitae8f343e691d69320e503be8543a9f8ec61fb422 (patch)
treedd0c2cee7e8182e5ae6bbef9328e5abdf2700a90 /sys/arch
parenteb9f0cb069115f1559d6408ddf7a0ac678533de7 (diff)
Reduce the size of gather buffers and allocate more of them to make
better use of memory. This should prevent gather buffer starvation on currently supported systems. Discussed with mpi@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/octeon/include/octeonvar.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/octeon/include/octeonvar.h b/sys/arch/octeon/include/octeonvar.h
index 9c6ae16fac0..357e33f7f28 100644
--- a/sys/arch/octeon/include/octeonvar.h
+++ b/sys/arch/octeon/include/octeonvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: octeonvar.h,v 1.25 2016/03/21 14:20:57 visa Exp $ */
+/* $OpenBSD: octeonvar.h,v 1.26 2016/05/24 13:11:02 visa Exp $ */
/* $NetBSD: maltavar.h,v 1.3 2002/03/18 10:10:16 simonb Exp $ */
/*-
@@ -99,7 +99,7 @@ struct octeon_config {
#define OCTEON_POOL_SIZE_PKT 2048 /* 128 x 16 */
#define OCTEON_POOL_SIZE_WQE 128 /* 128 x 1 */
#define OCTEON_POOL_SIZE_CMD 1024 /* 128 x 8 */
-#define OCTEON_POOL_SIZE_SG 512 /* 128 x 4 */
+#define OCTEON_POOL_SIZE_SG 128 /* 128 x 1 */
#define OCTEON_POOL_SIZE_XXX_4 0
#define OCTEON_POOL_SIZE_XXX_5 0
#define OCTEON_POOL_SIZE_XXX_6 0
@@ -108,7 +108,7 @@ struct octeon_config {
#define OCTEON_POOL_NELEMS_PKT 4096
#define OCTEON_POOL_NELEMS_WQE 4096
#define OCTEON_POOL_NELEMS_CMD 32
-#define OCTEON_POOL_NELEMS_SG 1024
+#define OCTEON_POOL_NELEMS_SG 4096
#define OCTEON_POOL_NELEMS_XXX_4 0
#define OCTEON_POOL_NELEMS_XXX_5 0
#define OCTEON_POOL_NELEMS_XXX_6 0