diff --git a/README.md b/README.md index eac1ea6..ba8ccd5 100644 --- a/README.md +++ b/README.md @@ -220,7 +220,7 @@ Blink has no guest access and no password login. Run the creator or the joiner w | `--write-file ` | yes | yes | yes | yes | yes | yes | append the active join link to this file (one link per line) | | `--resources ` | yes | yes | yes | yes | yes | yes | `default` / `moderate` / `unlimited` / `custom` (see below); DION has no `custom` | | `--read-buf ` | yes | yes | yes | - | yes | yes | DC/RTP read buffer; only consulted with `--resources custom` | -| `--max-dc-buf ` | yes | - | - | - | - | - | DataChannel `BufferedAmountLowThreshold`; only with `--resources custom` | +| `--max-dc-buf ` | yes | - | yes | - | yes | yes | pause sending when the DataChannel buffered amount exceeds this; only with `--resources custom` | | `--mem-limit ` | yes | yes | yes | - | - | yes | Go soft memory limit (`debug.SetMemoryLimit`); only with `--resources custom` | The full per-platform flag list, including the upstream SOCKS5 and local network options, is in [docs/SETUP.md](docs/SETUP.md). @@ -242,10 +242,10 @@ Mutually exclusive with the call-creation flags (`--peer-id` for VK; the others #### Resource modes -| Mode | `read-buf` | `max-dc-buf` (VK) | `mem-limit` | +| Mode | `read-buf` | `max-dc-buf` | `mem-limit` | |---|---|---|---| | `moderate` | 16 KB | 1 MB | 64 MB | -| `default` | 32 KB | 4 MB | 128 MB | +| `default` | 32 KB | 1 MB | 128 MB | | `unlimited`| 64 KB | 8 MB | 256 MB | | `custom` | from `--read-buf` | from `--max-dc-buf` | from `--mem-limit` | @@ -258,7 +258,7 @@ Mutually exclusive with the call-creation flags (`--peer-id` for VK; the others ``` - `read-buf` - TCP/DC read buffer size. Smaller = more frequent backpressure checks, less bursty memory -- `max-dc-buf` - pauses TCP reads when the DataChannel buffered amount exceeds this; only wired in VK (Pion `BufferedAmountLowThreshold`) +- `max-dc-buf` - pauses sending when the DataChannel buffered amount exceeds this, resumes at half of it; VK, WB Stream, Bitrix and Blink creators, joiners use 1 MB - `mem-limit` - Go runtime soft memory limit; makes GC more aggressive near the cap ## License diff --git a/docs/SETUP.md b/docs/SETUP.md index 0972724..f36b467 100644 --- a/docs/SETUP.md +++ b/docs/SETUP.md @@ -184,7 +184,7 @@ Creator и joiner должны входить **отдельно** - один в | `--name ` | - | - | да | да | - | - | Отображаемое имя в комнате | | `--resources ` | да | да | да | да | да | да | `default` / `moderate` / `unlimited` / `custom`; у DION без `custom` | | `--read-buf ` | да | да | да | - | да | да | Размер read-буфера, только с `--resources custom` | -| `--max-dc-buf ` | да | - | - | - | - | - | Порог `BufferedAmountLowThreshold` DC, только с `--resources custom` | +| `--max-dc-buf ` | да | - | да | - | да | да | Порог буфера DC: отправка ждёт, пока буфер выше порога; только с `--resources custom` | | `--mem-limit ` | да | да | да | - | - | да | Soft memory limit Go рантайма, только с `--resources custom` | | `--write-file ` | да | да | да | да | да | да | Файл, куда записывается активная ссылка на звонок | | `--upstream-socks ` | да | да | да | да | да | да | Гнать трафик joiner-а через локальный SOCKS5 прокси, например VPN-клиент | @@ -214,10 +214,10 @@ SOCKS5-инбаунд VPN-клиента должен поддерживать U ### Режимы ресурсов -| Режим | `read-buf` | `max-dc-buf` (VK) | `mem-limit` | Когда использовать | +| Режим | `read-buf` | `max-dc-buf` | `mem-limit` | Когда использовать | |---|---|---|---|---| | `moderate` | 16 KB | 1 MB | 64 MB | VPS с малой RAM | -| `default` | 32 KB | 4 MB | 128 MB | Обычное использование | +| `default` | 32 KB | 1 MB | 128 MB | Обычное использование | | `unlimited`| 64 KB | 8 MB | 256 MB | Максимум пропускной способности (может троттлить из-за congestion control) | | `custom` | из `--read-buf` | из `--max-dc-buf` | из `--mem-limit` | Тонкая настройка |