aminda-duperemove.service: restrict to 1 thread as an experiment

This commit is contained in:
Aminda Suomalainen 2026-01-29 09:55:42 +02:00
parent bc1f6e8488
commit 87d360c4f0
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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 /

View File

@ -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