aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKapil Hali <kapil.hali@linaro.org>2016-01-19 17:37:31 +0530
committerKapil Hali <kapil.hali@linaro.org>2016-01-19 17:37:31 +0530
commit70debf68341663038e44013e87609c1733bb3b07 (patch)
tree2fcd7f83ba74460452e019ad3ba0cf176fdb22db
parentdde81fbd6aee1abbee364801238c04097bc29183 (diff)
README file updated with OFP performance patchHEADmaster
Signed-off-by: Kapil Hali <kapil.hali@linaro.org>
-rw-r--r--README39
1 files changed, 39 insertions, 0 deletions
diff --git a/README b/README
index 949311a7..ba82f055 100644
--- a/README
+++ b/README
@@ -15,6 +15,45 @@
Download ODP (Version 1.3 or 1.4) and latest OFP code. Have these compiled and installed in some out directory
+Below patch shall be applied to OFP code, to have the huge no. of conns per sec.
+-----
+
+diff --git a/include/api/ofp_config.h b/include/api/ofp_config.h
+index 163280a..4a842d9 100644
+--- a/include/api/ofp_config.h
++++ b/include/api/ofp_config.h
+@@ -59,14 +59,16 @@
+ /* Configure values */
+
+ /** Packet pool size. */
+-#define SHM_PKT_POOL_SIZE (512*2048)
++#define SHM_PKT_POOL_SIZE (512*2048*8)
+ /** Packet pool buffer size. */
+ #define SHM_PKT_POOL_BUFFER_SIZE 1856
+ /** Packet pool user area size. */
+ #define SHM_PKT_POOL_USER_AREA_SIZE 16
+
+ /**Maximum number of sockets. */
+-#define OFP_NUM_SOCKETS_MAX 1024
++#define OFP_NUM_SOCKETS_MAX 60000
+
+ /**Maximum number of fastpath interfaces used.
+ * For each fastpath interface a PKTIO in opened by OFP.*/
+diff --git a/src/ofp_tcp_timewait.c b/src/ofp_tcp_timewait.c
+index caf3d33..0ecd632 100644
+--- a/src/ofp_tcp_timewait.c
++++ b/src/ofp_tcp_timewait.c
+@@ -78,6 +78,7 @@ tcptw_auto_size(void)
+ {
+ int halfrange;
+
++ return OFP_NUM_SOCKETS_MAX;
+ /*
+ * Max out at half the ephemeral port range so that TIME_WAIT
+ * sockets don't tie up too many ephemeral ports.
+-----
+
+
1. Preparing build
==================