It's a systemd timer included within Arch that runs fstrim every week.
and what does that achieve?
Specifically, it's in the util-linux package. On Gentoo at least.
Can’t you set this up as a cronjob?
The way I understand it, it’s an automated job that sends the “trim” command to hard drives & SSDs to discard all the blocks that have been marked as unused by the filesystem.
It’s a maintenance task that helps optimise your usage of said storage device. SSDs in particular benefit from it. The recommended frequency for most SSDs is once a week.
Doesn't btrfs do this already?
Yeah, it's unnecessary with btrfs on somewhat recent kernels since it now enables discard=async by default.
It is not necessary but still better to run both online discard and batched fstrim. from man:
Also, a device may ignore the TRIM command if the range is too small, so running a batch discard has a greater probability of actually discarding the blocks.
Thank you! Will do!
What if im not on systemd
@Newchair@Devorlon
You will regret it because of compatibility lack and larger boot time
For me runit boots just as fast. Compatibility wise everything I use works just fine. Out of curiosity, what requires it to run besides gnome anyway? (I'm not a systemd hater I just use a distro I like that happens to not use systemd)
The what?
It's a systemd timer included within Arch that runs fstrim every week.
and what does that achieve?
Specifically, it's in the util-linux package. On Gentoo at least.
Can’t you set this up as a cronjob?
The way I understand it, it’s an automated job that sends the “trim” command to hard drives & SSDs to discard all the blocks that have been marked as unused by the filesystem.
It’s a maintenance task that helps optimise your usage of said storage device. SSDs in particular benefit from it. The recommended frequency for most SSDs is once a week.