Samsung SM951 AHCI write speed reduced

Discussion in 'Mac Pro' started by marioliv66@, Mar 11, 2019.

  1. marioliv66@ macrumors member

    Joined:
    Oct 2, 2017
    Location:
    France
    #1
    Hi, I'm having something strange with my AHCI SSD. This is a Samsung SM951 model installed on a PCIe Lycom DT-120 card (PCIe port # 4), it is 256GB, has 124GB of free and TRIM is enabled.
    It's been installed for a year and a half, at the time, I had Sierra and I remember more exactly but when I did tests of speed with Blackmagic Dsik Speed Test, I had about 1400-1500 mb / s in writing and reading.

    Since then I moved to Mojave, I have 10.14.1 right now and 140.0.0.0.0.

    There is little to be a month (I was already on Mojave) I did a speed test and I ended up with 1200mb / s in writing and 1400m / s in reading, I do not worry more that.

    Today, I test again and I have 800 MB / s write and 1380 MB / s read.

    Would you have a track to know what I just did, why this write speed loss?

    Thank you for your opinions;)
     
  2. tsialex macrumors 601

    tsialex

    Joined:
    Jun 13, 2016
    Location:
    Brazil
    #2
    Boot single user mode and force trim, you have to do this from time to time, TRIM on SM951 needs some help.

    Code:
    fsck -fy
    
    How to Repair a Mac Disk with fsck from Single User Mode
     
  3. marioliv66@ thread starter macrumors member

    Joined:
    Oct 2, 2017
    Location:
    France
    #3
    Hello @tsialex, sorry I use google translation and sometimes I have a little trouble with the translation :)

    In the details of connected disks, it is well mentioned that this disk has the trim of activated.

    Do I still have to force it again with the sudo trimforce enable command?
    What do you mean by single user mode, I have only one user on my Mac and he is administrator, so it's ok?

    Finally, the command fsck -fy will repair the disk? no problem for the data?

    Sorry, I'd rather ask again to be sure of the translation, thanks
     

    Attached Files:

  4. tsialex macrumors 601

    tsialex

    Joined:
    Jun 13, 2016
    Location:
    Brazil
    #4
    SM-951-AHCI TRIM support is buggier and needs more than just trimforce enable.

    You need from time to time boot Single User mode and run fsck -fy to really TRIM the blade.

    It's safe. Try it.

    Another thing, if you are not using a heatsink maybe you are hitting thermal throttling. Install DriveDX and check the health of your blade.
     
  5. marioliv66@ thread starter macrumors member

    Joined:
    Oct 2, 2017
    Location:
    France
    #5
    ok, so I do it again:

    sudo trimforce enable
    then
    fsck -fy

    No need to disable / enable SIP?

    Finally, is it normal for the SSD's EFI file system to be in MS-DOS FAT32? I have already asked the question.

    Thank you
     
  6. tsialex macrumors 601

    tsialex

    Joined:
    Jun 13, 2016
    Location:
    Brazil
    #6
    No need to do trimforce enable again if TRIM is already enabled. Just boot Single User Mode and do the fsck -fy.

    No.

    Yes. EFI specification mandates the EFI folder to be FAT32.
     
  7. marioliv66@ thread starter macrumors member

    Joined:
    Oct 2, 2017
    Location:
    France
    #7
    I have this error with de command fsck -fy

    warning: option -f is not implemented, ignoring

    error: container /dev/rdisk3 is mounted with write access.
     
  8. tsialex macrumors 601

    tsialex

    Joined:
    Jun 13, 2016
    Location:
    Brazil
    #8
  9. marioliv66@ thread starter macrumors member

    Joined:
    Oct 2, 2017
    Location:
    France
    #9
    actually I did not know how to boot into a single user. unfortunately, command + s does not work at home, I have a black screen (I had to restart the mac by letting finger press power). That must come from the fact that I do not have bootscreen with my RX580. :(
     
  10. tsialex macrumors 601

    tsialex

    Joined:
    Jun 13, 2016
    Location:
    Brazil
    #10
    You will need a install the original Apple GPU.

    Since you will need to boot Single User Mode frequently to run fsck -fy to recoup performance, maybe it's better to think into changing the SM951-AHCI for another blade that have TRIM working correctly.
     
  11. marioliv66@ thread starter macrumors member

    Joined:
    Oct 2, 2017
    Location:
    France
    #11
    How often do I have to restart in Single User Mode with the SM951-AHCI?
    I have never tried, but can I use the gt120 while I am with Mojave?
    Do you have an SSD drive to advise for more problems?
    Thanks for your help
     
  12. tsialex macrumors 601

    tsialex

    Joined:
    Jun 13, 2016
    Location:
    Brazil
    #12
    Every time the write speeds decrease, this depends on how much do you write.

    It shows the screen, but without acceleration.

    I replaced my SM951-AHCI 512GB with a 970 PRO 512GB.
     
  13. marioliv66@ thread starter macrumors member

    Joined:
    Oct 2, 2017
    Location:
    France
    #13
    Thanks @tsialex pity I did not think there was this problem with this SSD. Tomorrow, I would use the command with my GT120 and I would control the flow often, for the moment I do not feel the loss of speed and that does not bother me.

    But suddenly, I will look in more detail the eventual promotions on SSD nvme.
     
  14. marioliv66@, Mar 12, 2019
    Last edited: Mar 12, 2019

    marioliv66@ thread starter macrumors member

    Joined:
    Oct 2, 2017
    Location:
    France
    #14
    Hello, I'm placing the command fsck -fy, but I do not know if it went well. I see that there are "snapshot" errors (I use CCC without snapshot and Time Machine).

    PS: I erased the 9 Snapshots, doing again the command fsck -fy it always puts the same error (there is only 1 Snapshots now). I passed SOS utility disk which also tells me the same error of Snapshots.
     

    Attached Files:

  15. zedex macrumors member

    zedex

    Joined:
    Oct 21, 2018
    Location:
    Perth, WA
    #15
    Another forum member (@crjackson2134 I think) has noted that the SM951 write speeds fall away (become slower) when users convert from HFS+ to APFS (as you have done with your upgrade to Mojave).
     
  16. marioliv66@ thread starter macrumors member

    Joined:
    Oct 2, 2017
    Location:
    France
  17. tsialex, Mar 12, 2019
    Last edited: Mar 12, 2019

    tsialex macrumors 601

    tsialex

    Joined:
    Jun 13, 2016
    Location:
    Brazil
    #17
    It's not the same thing.

    APFS have a minor influence, at most 10% slower, with write speeds and happens with all drives.

    SM951-AHCI write decrease speed is caused by the buggy TRIM algorithm and when the drive is full and with a lot of writes, sustained write speed can decrease to around 250MB/s or less.

    When your blade is empty and trimmed, write speeds are normal. After some time, your drive will use all the empty cells and with the buggy TRIM, cells are being erased before written and this is the cause of the slow write speed.

    With a drive that have a working TRIM, cells start to be erased after the OS marks it as deleted, this don't happen with SM951-AHCI. Any drive with correctly working TRIM will erase the cells in the background.
     
  18. marioliv66@ thread starter macrumors member

    Joined:
    Oct 2, 2017
    Location:
    France
    #18
    ok, I understand better :) An idea for this error with fsck -fy? I'm afraid of having to format everything. This error is identical in fsck -fy and disk utility

    Capture d’écran 2019-03-12 à 14.19.10.png
     
  19. tsialex macrumors 601

    tsialex

    Joined:
    Jun 13, 2016
    Location:
    Brazil
    #19
    Can't help with that, this is unrelated to the TRIM problem and I never had this error.
     
  20. IndioX macrumors regular

    IndioX

    Joined:
    Oct 1, 2018
    Location:
    austria/europe
    #20

    for a APFS device the command is:

    fsck_apfs -y -x
     
  21. tsialex macrumors 601

    tsialex

    Joined:
    Jun 13, 2016
    Location:
    Brazil
    #21
    This checks just APFS consistency and do not force TRIM as fsck do.
     
  22. marioliv66@, Mar 12, 2019
    Last edited: Mar 12, 2019

    marioliv66@ thread starter macrumors member

    Joined:
    Oct 2, 2017
    Location:
    France
    #22
    Could this command solve the problem of Snapshots error?
    To pass I have to command + at startup, or I can do from the terminal? (I just removed from the GT120 to return the RX 580 :D)
     
  23. nico5.1 macrumors newbie

    Joined:
    May 17, 2017
    #23
    Hello,

    I think same problem here on a 2010 5.1 - 10.12.6 - dual 3,33 - 32gb ram - gtx980

    I have 2 sm951 512 GB ahci on a Amfaltec squid blade since 2 years.. they are striped in raid 0 and it's my boot drive
    At that time speed test (blackmagic) shows around 2500mb/s write and read speeds
    I just ran the test 10 minutes ago : 220mb/s write and 1450mb/s read
    Trim is enable since I bought them 2 years ago
    I just tested the fsck command in single user and then rebooted... ran the speed test again... no real write speed improvement :-( but read speed is much better :)

    Any ideas/solutions from the experts ? This is far beyond my knowledge

    I love so much those machines ;) want to keep it as long as possible
     

    Attached Files:

  24. crjackson2134 macrumors 601

    crjackson2134

    Joined:
    Mar 6, 2013
    Location:
    Charlotte, NC
    #24
    Delete your snapshots, starting with the latest one, then re-try the command.
     

Share This Page

23 March 11, 2019