Re: fstrim is takes a long time on Btrfs and NVMe

Andrea Gelmini
2019-12-21T08:38:06Z

On Fri, Dec 20, 2019 at 11:24:24PM -0700, Chris Murphy wrote:
> Hi,
>
> Recent kernels, I think since 5.1 or 5.2, but tested today on 5.3.18,
> 5.4.5, 5.5.0rc2, takes quite a long time for `fstrim /` to complete,
> just over 1 minute.

Same effect here, since more than one year (and all update kernel
version).

It happens with my laptop devices:
nvme: KBG30ZMT128G TOSHIBA 1 128,04 GB / 128,04 GB 512 B + 0 B (Firm. 0108ADLA)
SSD sata: Samsung SSD 860 EVO 4TB (Firmw. RVT02B6Q)

I guess it doesn't matter, anyway:
nvme: btrfs
ssd: ext4 on cryptsetup + lvm

Ciao,
Gelma