summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2013-03-22 15:35:33 +0100
committerOndřej Surý <ondrej@sury.org>2013-03-22 15:35:33 +0100
commitcff5145907908702ef2fcadb9a2f7f1be4c496be (patch)
tree1d17652944ab4e0d063480e4b6861ebd94bf9622 /samples
parent621622287b6da91b755565b9133c4e53f8a0251d (diff)
downloadknot-upstream/1.2.0_rc4.tar.gz
Imported Upstream version 1.2.0~rc4upstream/1.2.0_rc4
Diffstat (limited to 'samples')
-rw-r--r--samples/Makefile.in7
-rw-r--r--samples/knot.full.conf8
2 files changed, 8 insertions, 7 deletions
diff --git a/samples/Makefile.in b/samples/Makefile.in
index 44b12ae..b307eda 100644
--- a/samples/Makefile.in
+++ b/samples/Makefile.in
@@ -55,9 +55,10 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_compiler_flags.m4 \
$(top_srcdir)/m4/ax_ext.m4 \
$(top_srcdir)/m4/ax_gcc_x86_cpuid.m4 \
- $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
- $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
- $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
+ $(top_srcdir)/m4/ax_recvmmsg.m4 $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+ $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
diff --git a/samples/knot.full.conf b/samples/knot.full.conf
index f6a9d89..8c02d3c 100644
--- a/samples/knot.full.conf
+++ b/samples/knot.full.conf
@@ -70,10 +70,10 @@ system {
# Number of hashtable buckets, set to reasonable value as default.
# We chose a reasonably large prime number as it's used for hashtable size,
# it is recommended to do so as well due to better distribution.
- # Tweak if you experience a lot of hash collisions, estimated memory overhead
- # is approx. 16B per bucket
- # Default: 1572869
- rate-limit-size 1572869;
+ # Rule of thumb is to set it to about 1.2 * (maximum_qps)
+ # Memory cost is approx. 32B per bucket
+ # Default: 393241
+ rate-limit-size 393241;
# Rate limit SLIP
# Each Nth blocked response will be sent as truncated, this is a way to allow