xmrig-auto-pause: tweak resume_threshold
This commit is contained in:
@@ -26,11 +26,12 @@ lib.mkIf config.services.xmrig.enable {
|
|||||||
environment = {
|
environment = {
|
||||||
POLL_INTERVAL = "3";
|
POLL_INTERVAL = "3";
|
||||||
GRACE_PERIOD = "15";
|
GRACE_PERIOD = "15";
|
||||||
# This server's background services (qbittorrent, monero, bazarr, etc.)
|
# Background services (qbittorrent, bitmagnet, postgresql, etc.) produce
|
||||||
# produce 5-14% non-nice CPU during normal operation. Thresholds must
|
# 15-25% non-nice CPU during normal operation. The stop threshold must
|
||||||
# sit above that noise floor.
|
# sit above transient spikes; the resume threshold must be below the
|
||||||
|
# steady-state floor to avoid restarting xmrig while services are active.
|
||||||
CPU_STOP_THRESHOLD = "40";
|
CPU_STOP_THRESHOLD = "40";
|
||||||
CPU_RESUME_THRESHOLD = "30";
|
CPU_RESUME_THRESHOLD = "10";
|
||||||
STARTUP_COOLDOWN = "10";
|
STARTUP_COOLDOWN = "10";
|
||||||
STATE_DIR = "/var/lib/xmrig-auto-pause";
|
STATE_DIR = "/var/lib/xmrig-auto-pause";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user