diff --git a/system_files/desktop/shared/usr/lib/systemd/system/btrfs-dedup@.service b/system_files/desktop/shared/usr/lib/systemd/system/btrfs-dedup@.service index 2655cce5..ecb6700f 100644 --- a/system_files/desktop/shared/usr/lib/systemd/system/btrfs-dedup@.service +++ b/system_files/desktop/shared/usr/lib/systemd/system/btrfs-dedup@.service @@ -6,11 +6,16 @@ EnvironmentFile=-/etc/conf.d/btrfs-dedup ExecStart=/usr/bin/btrfs-dedup %f ExecReload=/usr/bin/btrfs-dedup --powerchange PIDFile=/run/btrfs-dedup/%i.pid +MemoryAccounting=yes +MemoryHigh=1G +MemoryMax=2G +MemorySwapMax=500M +CPUAccounting=true Nice=19 CPUSchedulingPolicy=batch IOSchedulingClass=best-effort IOSchedulingPriority=7 OOMScoreAdjust=1000 CPUWeight=30 -CPUQuota=100% +CPUQuota=50% IOWeight=30