The way that timers work is when the timer is triggered, it executes the service of the same name. So the service should only run when the timer tells it to.
For testing purposes, you can run the service manually as @anon49550872 suggests above.
I decided that I will not use TRIM for now. I’m going to disable the timer/service. If I ever feel like the performance of the drive is going down I will activate it later.
@2000: Thx for the guide But do you have any idea why it seems to work without those steps for @Erreffel1 ?
The Limiting the disk write actions of Firefox is actually something to consider.
If you have enough RAM and a decent Internet-connection put the network cache into RAM. Firefox writes into this cache constantly. If you watch videos FF is dumping all stream chunks into it just to delete them a few seconds later. Essentially the whole streams makes it through the disk cache without imho any benefit.
Session storage with hundreds of open tabs is an issue too, not because the SSD wears out but constant I/O spikes which may lead to micro-stuttering on less powerful systems. You don’t have to disable it, just increase it to a reasonable value, e.g. every three minutes instead of every 15 seconds.
PS: Personally I don’t trim or set-up weekly trimming if I feel fancy.
Solid state drive users should be aware that, by default, TRIM commands are not enabled by the device-mapper, i.e. block-devices are mounted without the discard option unless you override the default.
So if @Erreffel1 didn’t set up the cryptdevice to explicitly allow discards (:allow-discards) or manually set up the luks2 device to persistently unlock with allow-discards as a default flag, I think that trimming isn’t actually working on his system. Simply activating fstrim in the underlying filesystem isn’t enough.