If the attacker has enough access to change the kernel on your disk he could change the bootloader as well and so encrypted /boot doesn't help you. Even if you take your bootloader with you on a usb stick it's not safe either because the uefi might be manipulated by the attacker. And if you put your bootloader on a remote medium you could put your kernel there as well.
I can't see any way encrypting /boot increases security
You could check the cgroup tree of the bash running sudo (for example with systemd-cgls) this might get you a clue which service is responsible.
You also could freeze it (sending sigstop should be enough) and check for processes connected through pipes or sockets with the bash process (with lsof). You might also get the path to the script containing the call.
In the meantime until the call happens again you could check for files containing the string "echo test" with grep.
Btrfs uses a kernel thread "btrfs-cleaner" together with the normal "btrfs-transaction" kernel thread to clean up.
At least in htop you could enable kernel threads with Shift + K.
And no there is no easy way to get the current state of the cleanup. If you are willing to learn a lot new you maybe could build something with kprobes.
I guess you have snapshots on your btrfs partition, this explains why your disk usage didn't get down after deleting a folder and also explains your du output (du -x doesn't traverse into subvolumes).
Try enabling quota (btrfs quota enable) and check your per subvolume consumption (btrfs qgroup show) you might have to wait until the quota scanning finished.
You could resolve the subvolume IDs from qgroup show with btrfs sub list.
Before deleting subvolumes you should disable quota management again, it's a big performance hit.
Cooler rooms in the summer and a lot of electricity costs savings.
If the attacker has enough access to change the kernel on your disk he could change the bootloader as well and so encrypted /boot doesn't help you. Even if you take your bootloader with you on a usb stick it's not safe either because the uefi might be manipulated by the attacker. And if you put your bootloader on a remote medium you could put your kernel there as well. I can't see any way encrypting /boot increases security
You could check the cgroup tree of the bash running sudo (for example with systemd-cgls) this might get you a clue which service is responsible.
You also could freeze it (sending sigstop should be enough) and check for processes connected through pipes or sockets with the bash process (with lsof). You might also get the path to the script containing the call.
In the meantime until the call happens again you could check for files containing the string "echo test" with grep.
Btrfs uses a kernel thread "btrfs-cleaner" together with the normal "btrfs-transaction" kernel thread to clean up.
At least in htop you could enable kernel threads with Shift + K.
And no there is no easy way to get the current state of the cleanup. If you are willing to learn a lot new you maybe could build something with kprobes.
I guess you have snapshots on your btrfs partition, this explains why your disk usage didn't get down after deleting a folder and also explains your du output (du -x doesn't traverse into subvolumes).
Try enabling quota (btrfs quota enable) and check your per subvolume consumption (btrfs qgroup show) you might have to wait until the quota scanning finished.
You could resolve the subvolume IDs from qgroup show with btrfs sub list.
Before deleting subvolumes you should disable quota management again, it's a big performance hit.