Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trim Vs. Discard
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1507
Location: San Jose, CA

PostPosted: Thu Jul 26, 2018 7:29 pm    Post subject: Trim Vs. Discard Reply with quote

I just found out about the fstrim command. Is this documented somewhere?

I'm mounting my SSDs with discard. I had read years ago that was the way to do it.

But I saw a thread in /r/linux on reddit about fstrim, found out that discard comes with a performance hit and ran fstrim on the "discard" mounted file systems and it trimmed a lot of disk space...

If the FS was mounted with discard, why would it find stuff to trim?

Can someone point me to the way this is supposed to be done?

Thanks.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
mike155
Veteran
Veteran


Joined: 17 Sep 2010
Posts: 1306
Location: Frankfurt, Germany

PostPosted: Thu Jul 26, 2018 8:15 pm    Post subject: Reply with quote

Please look here: https://wiki.archlinux.org/index.php/Solid_State_Drive

They discuss pros and cons of continuous trim vs. periodic trim.
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1507
Location: San Jose, CA

PostPosted: Thu Jul 26, 2018 9:08 pm    Post subject: Reply with quote

Thanks.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum