Each time after I restart my computer I run fstrim. And each time this is the output I receive:
emil@emil-Lenovo-G580 ~> sudo fstrim -v /
[sudo] password for emil:
/: 84.2 GiB (90372820992 bytes) trimmed
I want to know is this normal?
Each time after I restart my computer I run fstrim. And each time this is the output I receive:
emil@emil-Lenovo-G580 ~> sudo fstrim -v /
[sudo] password for emil:
/: 84.2 GiB (90372820992 bytes) trimmed
I want to know is this normal?
Yes this is normal. If calling fstrim
first time after reboot, size of all unused blocks is trimmed and reported. This is because "nobody" knows, which blocks are already trimmed before.
Calling fstrim
again, it reports only recently freed blocks. This is, because the kernel keeps an eye to trimmed blocks. This information is lost, when rebooting.
The behavior may change between versions ...
I've watched same behavior at Debian 8 (Jessie). And wondered, as you ;-)
fstrim
should automatically run by default weekly. See here. – Terrance Feb 03 '16 at 17:44