If this is related to BTRFS snapshots then I wonder whether a "gentle" balance (e.g. -dusage=50 -musage=50
) might be a candidate for a systemd timer.
Basic initial script:
#!/usr/bin/bash
for _mount in $(mount | grep btrfs | cut -d' ' -f3); do
btrfs filesystem balance start -dusage=50 -musage=50 "$_mount"
done