dnscrypt-server/etc/systemd/system/dnscrypt-server.slice

12 lines
258 B
SYSTEMD

# dnscrypt-server.slice
[Unit]
Description=Slice that limits the resources available to dnscrypt-server
[Slice]
CPUAccounting=true
# 100% is an equivalent of full utilization on a single core
CPUQuota=60%
MemoryAccounting=true
MemoryHigh=90M
MemoryMax=100M