diff --git a/etc/systemd/system/aminda-duperemove.service b/etc/systemd/system/aminda-duperemove.service index d1b5d0bd..bc00d10e 100644 --- a/etc/systemd/system/aminda-duperemove.service +++ b/etc/systemd/system/aminda-duperemove.service @@ -8,10 +8,10 @@ TimeoutStartSec=infinity # I have observed duperemove requesting blkid to be ran as root for # generating some cache, so sure. ExecStart=-blkid -ExecStart=-duperemove -rdhq --hashfile=/root/home.hash /home -ExecStart=-duperemove -rdhq --hashfile=/root/usr-local-bin.hash /usr/local/bin -ExecStart=-duperemove -rdhq --hashfile=/root/flatpak.hash /var/lib/flatpak -ExecStart=-duperemove -rdhq --hashfile=/root/snap.hash /var/lib/snapd +ExecStart=-duperemove -rdhq --io-threads=1 --cpu-threads=1 --hashfile=/root/home.hash /home +ExecStart=-duperemove -rdhq --io-threads=1 --cpu-threads=1 --hashfile=/root/usr-local-bin.hash /usr/local/bin +ExecStart=-duperemove -rdhq --io-threads=1 --cpu-threads=1 --hashfile=/root/flatpak.hash /var/lib/flatpak +ExecStart=-duperemove -rdhq --io-threads=1 --cpu-threads=1 --hashfile=/root/snap.hash /var/lib/snapd User=root StandardOutput=journal StandardError=journal diff --git a/etc/systemd/system/aminda-duperemove.service.d/00-rootfs.conf b/etc/systemd/system/aminda-duperemove.service.d/00-rootfs.conf index da8209f4..d740e5bb 100644 --- a/etc/systemd/system/aminda-duperemove.service.d/00-rootfs.conf +++ b/etc/systemd/system/aminda-duperemove.service.d/00-rootfs.conf @@ -1,4 +1,4 @@ [Service] # This drop-in will make the service deduplicate everything. ExecStart= -ExecStart=-duperemove -rdhq --hashfile=/root/rootfs.hash / +ExecStart=-duperemove -rdhq --io-threads=1 --cpu-threads=1 --hashfile=/root/rootfs.hash / diff --git a/etc/systemd/system/aminda-duperemove.service.d/91-fedora-atomic.conf b/etc/systemd/system/aminda-duperemove.service.d/91-fedora-atomic.conf index 9ce54564..9ca3e88d 100644 --- a/etc/systemd/system/aminda-duperemove.service.d/91-fedora-atomic.conf +++ b/etc/systemd/system/aminda-duperemove.service.d/91-fedora-atomic.conf @@ -2,7 +2,7 @@ ExecStart= # /home is actually in /var/home so the latter command should catch it #ExecStart=-duperemove -rdhq --hashfile=/root/home.hash /home -ExecStart=-duperemove -rdhq --hashfile=/root/var.hash /var +ExecStart=-duperemove -rdhq --io-threads=1 --cpu-threads=1 --hashfile=/root/var.hash /var ExecStartPre= # Same filesystem although different subvolume, so this should work? ExecStartPre=-btrfs balance start -dusage=25 -dlimit=10 -musage=25 -mlimit=10 /var