this post was submitted on 18 Oct 2023
216 points (97.0% liked)

linuxmemes

20703 readers
1771 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 16 points 11 months ago (1 children)

Doesn't btrfs do this already?

[–] [email protected] 11 points 11 months ago (1 children)

Yeah, it's unnecessary with btrfs on somewhat recent kernels since it now enables discard=async by default.

[–] [email protected] 4 points 11 months ago

It is not necessary but still better to run both online discard and batched fstrim. from man:

Also, a device may ignore the TRIM command if the range is too small, so running a batch discard has a greater probability of actually discarding the blocks.