<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Fstrim for SSD]]></title><description><![CDATA[<p dir="auto">It would be nice to have a check box to enable a daily cron for fstrim in the advanced section.  What is fstrim you ask?</p>
<p dir="auto">TRIM allows the OS to inform a solid-state drive (SSD) which blocks of data are no longer considered in use and can be wiped internally. Without using TRIM, the SSD speed decreases after a while so if you have a solid-state drive that supports TRIM, you should enable it so your SSD remains fast over time.</p>
<p dir="auto">It would mean that fstrim would have to be included in install or possibly a 3rd party package.  A simple cron might look like this:</p>
<p dir="auto">#!/bin/sh<br />
LOG=/var/log/trim.log<br />
echo "*** $(date -R) ***" &gt;&gt; $LOG<br />
fstrim -v / &gt;&gt; $LOG</p>
]]></description><link>https://forum.netgate.com/topic/63978/fstrim-for-ssd</link><generator>RSS for Node</generator><lastBuildDate>Sun, 11 Oct 2026 02:49:02 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/63978.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Dec 2013 16:41:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fstrim for SSD on Fri, 20 Dec 2013 22:49:57 GMT]]></title><description><![CDATA[<p dir="auto">Why would it be better to do it in userspace as you describe, rather than natively?</p>
<p dir="auto">Please see this <a href="http://forum.pfsense.org/index.php/topic,63656.0.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://forum.pfsense.org/index.php/topic,63656.0.html</a> thread for background, but for 2.1 basically all you need to do is:</p>
<pre><code>
A) Edit /boot/loader.conf.local to add ahci_load="YES"
B) Reboot
C) Perform the TRIM_set action at a shell:
	touch /root/TRIM_set
     (if you need to remove: 	touch /root/TRIM_unset)
D) Reboot
E) Verify if TRIM is enabled with "tunefs -p /"
</code></pre>
<p dir="auto">I haven't checked out the 2.2 installer, but it's likely you will see an option to enable TRIM during install with 2.2</p>
]]></description><link>https://forum.netgate.com/post/435589</link><guid isPermaLink="true">https://forum.netgate.com/post/435589</guid><dc:creator><![CDATA[charliem]]></dc:creator><pubDate>Fri, 20 Dec 2013 22:49:57 GMT</pubDate></item></channel></rss>