]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Add a few words about memory consumption in the documentation 10381/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 10 May 2021 14:03:52 +0000 (16:03 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 10 May 2021 14:03:52 +0000 (16:03 +0200)
pdns/dnsdistdist/docs/advanced/tuning.rst

index f6f03f4ee222c43f7eb7ce79c52c1aa130ffde28..3c84d9aa6ea1480f489be0911a9d5f91dc9e5d77 100644 (file)
@@ -130,23 +130,34 @@ For other components, like the packet cache and the in-memory ring buffers, it i
 
 Sharding was disabled by default before 1.6.0 and could be enabled via the `numberOfShards` option to :func:`newPacketCache` and :func:`setRingBuffersSize`. It might still make sense to increment the number of shards when dealing with a lot of threads.
 
-Memory usage for TCP, DoH and DoT
----------------------------------
-
-+--------------------------------+-----------------------------+
-| Protocol                       | Memory usage per connection |
-+================================+=============================+
-| TCP                            | 6 kB                        |
-+--------------------------------+-----------------------------+
-| DoT (GnuTLS)                   | 16 kB                       |
-+--------------------------------+-----------------------------+
-| DoT (OpenSSL)                  | 52 kB                       |
-+--------------------------------+-----------------------------+
-| DoT (OpenSSL w/ releaseBuffers | 19 kB                       |
-+--------------------------------+-----------------------------+
-| DoH (http)                     | 2 kB                        |
-+--------------------------------+-----------------------------+
-| DoH                            | 48 kB                       |
-+--------------------------------+-----------------------------+
-| DoH (w/ releaseBuffers)        | 15 kB                       |
-+--------------------------------+-----------------------------+
+Memory usage
+------------
+
+The main sources of memory usage in DNSDist are:
+
+ * packet caches, when enabled
+ * the number of outstanding UDP queries per backend, configured with :func:`setMaxUDPOutstanding` (see above)
+ * the number of entries in the ring-buffers, configured with :func:`setRingBuffersSize`
+ * the number of short-lived dynamic block entries
+ * the number of user-defined rules and actions
+ * the number of TCP, DoT and DoH connections
+
+Memory usage per connection for connected protocols:
+
++---------------------------------+-----------------------------+
+| Protocol                        | Memory usage per connection |
++=================================+=============================+
+| TCP                             | 6 kB                        |
++---------------------------------+-----------------------------+
+| DoT (GnuTLS)                    | 16 kB                       |
++---------------------------------+-----------------------------+
+| DoT (OpenSSL)                   | 52 kB                       |
++---------------------------------+-----------------------------+
+| DoT (OpenSSL w/ releaseBuffers) | 19 kB                       |
++---------------------------------+-----------------------------+
+| DoH (http)                      | 2 kB                        |
++---------------------------------+-----------------------------+
+| DoH                             | 48 kB                       |
++---------------------------------+-----------------------------+
+| DoH (w/ releaseBuffers)         | 15 kB                       |
++---------------------------------+-----------------------------+