From 24bee51161ced9570a48388eb289e3428b6c16d0 Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Thu, 10 Jan 2019 21:58:22 +0900 Subject: [PATCH] update systemd unit --- nohang.service | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nohang.service b/nohang.service index 5358add..774f035 100644 --- a/nohang.service +++ b/nohang.service @@ -7,7 +7,15 @@ Documentation=man:nohang(1) https://github.com/hakavlad/nohang ExecStart=/usr/sbin/nohang Restart=always RestartSec=1 - +IOSchedulingClass=1 +IOSchedulingPriority=0 +Nice=-20 +CPUSchedulingPolicy=rr +CPUSchedulingPriority=99 +CPUSchedulingResetOnFork=true +ProtectSystem=strict +MemoryMax=100M +TasksMax=100 [Install] WantedBy=multi-user.target