3

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?

Organic Marble
  • 23,641
  • 15
  • 70
  • 122

1 Answers1

4

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 ;-)

sotirov
  • 3,169