sunrat Posted March 17 Posted March 17 discard option in fstab forces trim to be run for every write operation. This is inefficient and unnecessary, and causes faster degradation of the SSD. Using fstrim.service and timer is preferred. @securitybreach so do you have discard in fstab and run the periodic trim? 1 Quote
securitybreach Posted March 17 Posted March 17 8 minutes ago, sunrat said: discard option in fstab forces trim to be run for every write operation. This is inefficient and unnecessary, and causes faster degradation of the SSD. Using fstrim.service and timer is preferred. @securitybreach so do you have discard in fstab and run the periodic trim? Yup been doing it for over 8 years with my oldest ssd. Quote
abarbarian Posted March 18 Author Posted March 18 13 hours ago, securitybreach said: Yup been doing it for over 8 years with my oldest ssd. I'm a tad baffled as to why you use two trim programs. Both are easily set up, though the systemd one is just a smidge easier. As to ssd's wearing out for most of us we would probably never live long enough to wear one out no matter how hard we tried as we do not have that large a through put.Remember the post about the trial to run a set of ssd's to death, even the cheapest ones would have still been running long enough for your great grandchildren to use. Quote
securitybreach Posted March 18 Posted March 18 8 minutes ago, abarbarian said: 'm a tad baffled as to why you use two trim programs. Both are easily set up, though the systemd one is just a smidge easier. Two? I just used TRIM by itself as it was suggested years ago when people worried about SSD write times. Quote
abarbarian Posted March 18 Author Posted March 18 48 minutes ago, securitybreach said: Two? I just used TRIM by itself as it was suggested years ago when people worried about SSD write times. Well sunrat just asked 14 hours ago, sunrat said: @securitybreach so do you have discard in fstab and run the periodic trim? an you replied 14 hours ago, securitybreach said: Yup been doing it for over 8 years with my oldest ssd. So you said you were using both but now you are saying you only use one. So you can understand why I am puzzled Quote
securitybreach Posted March 18 Posted March 18 1 minute ago, abarbarian said: Well sunrat just asked an you replied So you said you were using both but now you are saying you only use one. So you can understand why I am puzzled I never used FTRIM only TRIM. Quote
abarbarian Posted March 18 Author Posted March 18 18 hours ago, securitybreach said: Using the discard option for a mount in /etc/fstab enables continuous TRIM in device operations: /dev/sda1 / ext4 defaults,discard 0 1 Yeah you posted that you use the discard option, which does trim. 16 hours ago, securitybreach said: It runs this executable: You also posted this un-named systemd service which uses 16 hours ago, securitybreach said: ExecStart=/usr/bin/fstrim --listed-in /etc/fstab:/proc/self/mountinfo --verbose --quiet-unsupported So I am still baffled Quote
securitybreach Posted March 18 Posted March 18 1 hour ago, abarbarian said: Yeah you posted that you use the discard option, which does trim. You also posted this un-named systemd service which uses So I am still baffled The service listed is the trim.service. Quote
sunrat Posted March 18 Posted March 18 2 hours ago, securitybreach said: The service listed is the trim.service. On my system it's called fstrim.service which fstrim.timer runs trim once a week ie. periodic trim. discard runs trim constantly ie. continuous trim. They do the same thing - run trim. You say you have both. Periodic trim is redundant if you have continuous trim, but periodic trim is default in most distros now so discard is not needed. 1 Quote
securitybreach Posted March 18 Posted March 18 Well it looks like Arch made a change a while back where your trim service now runs ftrim. Whenever I initially set it up, it was running Trim not Ftrim Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.