aboutsummaryrefslogtreecommitdiff
path: root/spec/dos-spec.md
diff options
context:
space:
mode:
Diffstat (limited to 'spec/dos-spec.md')
-rw-r--r--spec/dos-spec.md19
1 files changed, 9 insertions, 10 deletions
diff --git a/spec/dos-spec.md b/spec/dos-spec.md
index 04470b2..d3cba22 100644
--- a/spec/dos-spec.md
+++ b/spec/dos-spec.md
@@ -40,13 +40,14 @@ or derived from a fraction of the total amount of system RAM.
As of Tor 0.4.7.x, the MaxMemInQueues mechanism tracks the following
kinds of allocation:
- * Cells queued on circuits.
- * Per-connection read or write buffers.
- * On-the-fly compression or decompression state.
- * Half-open stream records.
- * Cached onion service descriptors (hsdir only).
- * Cached DNS resolves (relay only).
- * GEOIP-based usage activity statistics.
+
+* Cells queued on circuits.
+* Per-connection read or write buffers.
+* On-the-fly compression or decompression state.
+* Half-open stream records.
+* Cached onion service descriptors (hsdir only).
+* Cached DNS resolves (relay only).
+* GEOIP-based usage activity statistics.
Note that directory caches aren't counted, since those are stored on
disk and accessed via mmap.
@@ -86,12 +87,10 @@ rule, according to the age of their oldest queued data.
Upon freeing a circuit, a "DESTROY cell" must be sent in both
directions.
-### Reporting low memory.
+### Reporting low memory
We define a "low threshold" equal to 3/4 of MaxMemInQueues. Every
time our memory usage is above the low threshold, we record
ourselves as being "under memory pressure".
(This is not currently reported.)
-
-