aboutsummaryrefslogtreecommitdiff
path: root/spec/dos-spec.md
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2023-10-13 18:00:42 -0400
committerNick Mathewson <nickm@torproject.org>2023-10-13 18:00:42 -0400
commitf79272ef1f774b3788b74a3fe4fef75095dfae06 (patch)
tree8f47bebaa06c444f632bf8c4afbd793c4972a27d /spec/dos-spec.md
parentfa014ec90411fd754dd257d04afa1a953e15bf31 (diff)
downloadtorspec-f79272ef1f774b3788b74a3fe4fef75095dfae06.tar.gz
torspec-f79272ef1f774b3788b74a3fe4fef75095dfae06.zip
Run markdownlint --fix on spec.
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.)
-
-