From 016bfd317d0984331e53fa71d042af39d3049162 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 16 Feb 2011 17:28:41 +0100 Subject: conntrackd: rise number of committed entries per step This patch rises the number of committed entries per step from 64 to 8192. Experimental results in active-active setups here show that we reduce the commit time with this value significantly. This deserves some more study, it can be a good idea to remove this commit per step completely. I leave this for the future. Signed-off-by: Pablo Neira Ayuso --- src/read_config_yy.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/read_config_yy.y b/src/read_config_yy.y index bc76e92..68a83f7 100644 --- a/src/read_config_yy.y +++ b/src/read_config_yy.y @@ -1636,7 +1636,7 @@ init_config(char *filename) /* default number of bucket of the hashtable that are committed in one run loop. XXX: no option available to tune this value yet. */ if (CONFIG(general).commit_steps == 0) - CONFIG(general).commit_steps = 64; + CONFIG(general).commit_steps = 8192; /* if overrun, automatically resync with kernel after 30 seconds */ if (CONFIG(nl_overrun_resync) == 0) -- cgit v1.2.3