Thread (14 messages) flat view 14 messages, 5 authors, 2021-01-16

Re: Why do we need these mount options?

From: Andrei Borzenkov <hidden>
Date: 2021-01-16 07:43:07

15.01.2021 06:54, Zygo Blaxell пишет:
On the other hand, I'm in favor of deprecating the whole discard option
and going with fstrim instead.  discard in its current form tends to
increase write wear rather than decrease it, especially on metadata-heavy
workloads.  discard is roughly equivalent to running fstrim thousands
of times a day, which is clearly bad for many (most?  all?) SSDs.
My (probably naive) understanding so far was that trim on SSD marks
areas as "unused" which means SSD need to copy less residual data from
erase block when reusing it. Assuming TRIM unit is (significantly)
smaller than erase block.

I would appreciate if you elaborate how trim results in more write on SSD?

Or do you mean more writes from btrfs while performing discard?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help