Switch swap threshold default to absolute 3048 MB and disable percent threshold by default

This commit is contained in:
Andrew Emelyaneko
2026-10-31 20:14:18 +03:00
parent 8cccc2612d
commit bdf7b9686d
6 changed files with 30 additions and 6 deletions
+13
View File
@@ -110,6 +110,19 @@ sudo ufw allow from <ip-клиента-opencode> to any port 8731 proto tcp
sudo systemctl restart ollama
```
## Порог swap
По умолчанию агент сравнивает общий объём **используемого** swap с конкретным размером:
`swap_threshold_mb = 3048`. Процентный режим выключен (`swap_threshold_percent = null`).
Чтобы оставить прежнее процентное поведение, задайте, например:
```json
{
"swap_threshold_percent": 25,
"swap_threshold_mb": null
}
```
## Проверка агента на сервере
```sh