]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add manpage entry for MaxHSDirCacheBytes.
authorMike Perry <mikeperry-git@torproject.org>
Thu, 5 Jun 2025 01:02:01 +0000 (01:02 +0000)
committerMike Perry <mikeperry-git@torproject.org>
Thu, 5 Jun 2025 15:13:01 +0000 (15:13 +0000)
doc/man/tor.1.txt

index ad6ec8ba8ddef612e49320ea8af09eaa8184b9ac..ebd1f2adb934fe0180c8784433f095536ccf73f9 100644 (file)
@@ -2429,6 +2429,15 @@ is non-zero):
     level __notice__ message designed to help developers instrumenting Tor's
     main event loop. (Default: 0)
 
+[[MaxHSDirCacheBytes]] **MaxHSDirCacheBytes** __N__ **bytes**|**KBytes**|**MBytes**|**GBytes**::
+    This option configures a threshold of Hidden Service Directory memory
+    consumption above which your Tor relay will begin to prune the least-frequently
+    accessed hidden service descriptors from the relay's HSDir cache. This pruning used
+    to be done as part of MaxMemInQueues, but it has been decoupled to allow more
+    fine-grained control of descriptor cache size under DDoS conditions. This
+    option defaults to 20% of the MaxMemInQueues size, which itself defaults to
+    an automatically determined value based on system memory. (Default: 20% MaxMemInQueues)
+
 [[MaxMemInQueues]] **MaxMemInQueues**  __N__ **bytes**|**KBytes**|**MBytes**|**GBytes**::
     This option configures a threshold above which Tor will assume that it
     needs to stop queueing or buffering data because it's about to run out of