Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Questions about fstrim and SSD care..
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
LegionOfHell
Apprentice
Apprentice


Joined: 16 Mar 2019
Posts: 155
Location: Toronto, Canada

PostPosted: Fri Oct 11, 2019 11:04 pm    Post subject: Questions about fstrim and SSD care.. Reply with quote

(1) Should I fstrim the /boot and the / or just the / ? fstrim -v / or fstrim -a -v in my fcron script ?

(2) Should I add noatime to the /boot's fstab line ? /boot is the vfat efi partition.

(3) Can fstrim damage the SSD ? for example, trimming the /boot for every 20 hours of usage ?

Many thanks
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4303
Location: Dallas area

PostPosted: Fri Oct 11, 2019 11:30 pm    Post subject: Reply with quote

Why would you constantly trim /boot? It hardly gets written too, unless you're building a new kernel hourly/daily/weekly.

I trim / nightly.
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.1 (no-pie & modified) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
LegionOfHell
Apprentice
Apprentice


Joined: 16 Mar 2019
Posts: 155
Location: Toronto, Canada

PostPosted: Fri Oct 11, 2019 11:48 pm    Post subject: Reply with quote

but there is a new kernel available every 2-3 months ? grub updates ?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14273

PostPosted: Sat Oct 12, 2019 12:26 am    Post subject: Reply with quote

There are new kernels available every week or two, it seems. Even so, kernels aren't that big, so even if you install every kernel update that comes out, your write workload will be tiny compared to writes done elsewhere on the system for other updates.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7314
Location: Saint Amant, Acadiana

PostPosted: Sat Oct 12, 2019 1:14 am    Post subject: Reply with quote

LegionOfHell wrote:
but there is a new kernel available every 2-3 months ? grub updates ?


OK, lets assume your /boot needed trim and it wasn't trimmed. Now, when you install a new kernel the install will take 0.1 seconds longer. Is it worth to lose sleep over it?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
mike155
Veteran
Veteran


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

PostPosted: Sat Oct 12, 2019 2:39 am    Post subject: Reply with quote

LegionOfHell wrote:
(3) Can fstrim damage the SSD ? for example, trimming the /boot for every 20 hours of usage ?

I've never heard of a SSD that was damaged by running fstrim too frequently. But I know users who ran into problems because they didn't run fstrim at all.

It is interestinmg to note, however, that the fstrim man page says:
man fstrim wrote:
Running fstrim frequently, or even using mount -o discard, might negatively affect the lifetime of poor-quality SSD devices. For most desktop and server systems a sufficient trimming frequency is once a week. Note that not all devices support a queued trim, so each trim command incurs a performance penalty on whatever else might be trying to use the disk at the time.

I believe that running fstrim once per week is a good compromise. Additionally, I sometimes run fstrim manually after gigabtyes of data were deleted. For example, after huge emerge updates. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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