<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Dec 18, 2013, at 11:50 AM, Robert Moskowitz &lt;<a href="mailto:rgm@htt-consult.com">rgm@htt-consult.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 12/18/2013 01:32 PM, Chris Murphy
      wrote:<br>
    </div>
    <blockquote cite="mid:2B77D7C9-B2E9-4B6E-B8A4-99EAC74FC8FF@colorremedies.com" type="cite">
      <meta http-equiv="Context-Type" content="text/html;
        charset=iso-8859-1">
      <br>
      <div>
        <div>On Dec 18, 2013, at 6:03 AM, Robert Moskowitz &lt;<a moz-do-not-send="true" href="mailto:rgm@htt-consult.com">rgm@htt-consult.com</a>&gt;
          wrote:</div>
        <br class="Apple-interchange-newline">
        <blockquote type="cite">
          <div> <br>
            <div class="moz-cite-prefix">On 12/18/2013 04:41 AM, John
              Obaterspok wrote:<br>
            </div>
            <blockquote cite="mid:CAOscVd+1ON1ENjM-BgZDpx3qcd_ZH+oXED-Len3ZULCRetVWhA@mail.gmail.com" type="cite">
              <div dir="ltr">Hello,
                <div><br>
                </div>
                <div>I'm going to setup F20 with a new SSD disk (256gb
                  Samsung 840 PRO) and was wondering about best
                  practices for Over Provisioning during partitioning.</div>
              </div>
            </blockquote>
            <br>
            hmmm.&nbsp; I just ordered a Crucial M500 256GB SSD for my new
            install.&nbsp; I thought I would have it all to work with
            (currently using a 320GB HD, so that is a 64GB reduction
            already).&nbsp; Are you implying here that you need to not use
            all of the SSD drive so that it has some swap around?<br>
            <br>
            I chose the M500 over the 840 based on price and reviews.&nbsp;
            The M500 uses MLC NAND compared to the 840 using TLC NAND.</div>
        </blockquote>
        <br>
      </div>
      <div>FYI, be aware there appears to be a queued TRIM bug with the
        M500 where it may be causing silent data corruption. I wouldn't
        use discard on this, or any, SSD, in production until it's been
        well tested.</div>
      <div><br>
      </div>
      <div><a moz-do-not-send="true" href="https://bugzilla.redhat.com/show_bug.cgi?id=1024002">https://bugzilla.redhat.com/show_bug.cgi?id=1024002</a></div>
    </blockquote>
    <br>
    Seems like a workaround was posted yesterday?&nbsp; So since I am still
    waiting for the drive to show up on my porch…</div></blockquote><div><br></div><div>Yes. Although I'm uncertain whether we get queued TRIM "for free" with a SATA rev 3.0 controller, or if that means such drives use the SATA rev 3.0 non-queued TRIM? I'm under the impression that to get SATA rev 3.1 queued TRIM that the drive and the controller it plugs into, and libata all need to support SATA rev 3.1. So I don't actually fully understand the problem, but it sounds like a firmware bug to me. Suffice to say, with Windows having enabled TRIM by default for all SSDs, if a drive is corrupting its data, this ought to be quickly remedied with a firmware update I'd think.</div><br><blockquote type="cite"><div bgcolor="#FFFFFF" text="#000000">
    <br>
    <blockquote cite="mid:2B77D7C9-B2E9-4B6E-B8A4-99EAC74FC8FF@colorremedies.com" type="cite">
      <div>Until the industry gets its act together on TRIM, I think
        we're probably better off executing fstrim once a week with a
        cron job at a time the computer is likely to be idle.</div>
    </blockquote>
    <br>
    And what is TRIM and fstrim?</div></blockquote><br></div><div>Ultimately you don't need to worry about it because TRIM isn't used by default on Fedora. This is enabled with the discard mount option. As far as I know, only Ubuntu has said they will use discard by default in the near future.</div><div><br></div><div>You can read more on TRIM on wikipedia and elsewhere if you're interested. The gist is it's a way to inform the SSD of pages that are no longer in use by the file system, i.e. deleted files, rather than files that have been overwritten. This optimization is desirable, but only if it works correctly. And right now it's not universally working correctly.</div><br><div>fstrim is a user space program to manually issue TRIM, so it can be done when the drive is idle, and therefore negative side effects of the discard mount option aren't readily noticed - those primarily being short term performance problems that seem like a system hang for a few seconds (or in some extreme cases up to a minute or two).</div><div><br></div><div>Where you're likely to experience a particular need for fstrim or discard is if you have a fairly full SSD, with more file delete and create workload rather than file overwrite workload. So if your SSD has a lot of unused space you're unlikely to notice SSD slow down as a result of the SSD not having many pages erased and ready for writes.</div><div><br></div><div>It's sort of a complicated issue.</div><div><br></div><div>Chris Murphy</div></body></html>