mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2026-02-07 11:07:55 +01:00
aminda-duperemove.service: restrict to 1 thread as an experiment
This commit is contained in:
parent
bc1f6e8488
commit
87d360c4f0
@ -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
|
||||
|
||||
@ -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 /
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user