summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2011-02-16 17:28:41 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2011-02-16 17:33:54 +0100
commit016bfd317d0984331e53fa71d042af39d3049162 (patch)
treef090d7aa877a028cdfa3145f9ffd8b4e380a991c /src
parentdd24e2da2feaacc63e10a375e1909f035ea02543 (diff)
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 <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r--src/read_config_yy.y2
1 files changed, 1 insertions, 1 deletions
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)