Jump to content
  • Linux patch disables TRIM and NCQ on Samsung 860/870 SSDs in Intel and AMD systems

    Karlston

    • 1 comment
    • 771 views
    • 2 minutes
     Share


    • 1 comment
    • 771 views
    • 2 minutes

    About two years ago, several users of the Samsung 860 EVO SATA SSD started reporting issues on their drives in Linux. Later it was also established that the same or very similar problem also existed on the 870 EVO model. Linux engineers stated meanwhile that they were looking into the problem and while it took a while, earlier today, it was announced that patches for the issue have been sent upstream for final implementation.

     

    According to the findings, it has been determined that Queued Trim commands on the 860 and 870 SSDs are causing such issues on Intel, ASmedia, and Marvell SATA AHCI controllers and the problem has been found to be the worst on older AMD systems.

     

    As a result, Queued Trims have been disabled on the new patch for Intel, ASMedia, and Marvell SATA controllers and for older AMD machines, Native Command Queuing (NCQ) has been disabled entirely as a cure for the issue.

     

    NCQ is a technology on SATA that allows the system to optimize queuing and movement of data as per workload for the best performance. TRIM on the other hand allows the drive to intelligently free up space that is no longer determined necessary for the storage device to hold on to, without deleting necessary data. This helps to avoid rewriting in used spaces and it is generally considered a good thing for drive health.

     

    Curiously, it seems that Queued TRIM was already disabled on all Samsung 800 series SSDs but the South Korean giant apparently told Linux that it wasn't necessary for models outside of the 840 and 850 drives. However, user feedback on 860 and 870 drives has shown otherwise.

     

    As a result, it may probably be best to avoid all Samsung 800 series SATA SSDs if you're an active Linux user.

     

    Source: Bugzilla

     

     

    Linux patch disables TRIM and NCQ on Samsung 860/870 SSDs in Intel and AMD systems

    • Like 2

    User Feedback

    Recommended Comments

    As a result, it may probably be best to avoid all Samsung 800 series SATA SSDs if you're an active Linux user.  ???

     

    Samsung SSD 860 EVO 250gb only user here with Arch Linux KDE linux-zen kernel v5.13.13-zen1-1-zen , i just notice now fstrim.timer is really disabled, i enabled it again systemctl enable fstrim.timer

    Thanks for the info. i don't have notice any problem about my ssd for the past few months, i just left 10% unpartition to my ssd with btrfs and compress=zstd

     

    Benchmark:

    Screenshot_20210905_115214.thumb.png.1f78f1e40c174eebac58ea9aea97693f.png

    Edited by jango
    Link to comment
    Share on other sites




    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...