From 87d360c4f083e18ca09427ade5a7069a28e00696 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 29 Jan 2026 09:55:42 +0200 Subject: [PATCH] aminda-duperemove.service: restrict to 1 thread as an experiment --- etc/systemd/system/aminda-duperemove.service | 8 ++++---- .../system/aminda-duperemove.service.d/00-rootfs.conf | 2 +- .../aminda-duperemove.service.d/91-fedora-atomic.conf | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) 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