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

linuxmemes

20880 readers
3 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] 11 points 1 year 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 1 year 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.