SSD + filevault2 = slow write speed

Discussion in 'MacBook Pro' started by dollystereo, May 10, 2014.

  1. dollystereo macrumors 6502a

    dollystereo

    Joined:
    Oct 6, 2004
    Location:
    France
    #1
    I have a 2011 MBP with a samsung 840 250 GB. (100GB used)
    I have Mavericks with Filevault2 enabled+ TRIM.
    Speed have been going down =(
     

    Attached Files:

  2. Hellhammer Moderator

    Hellhammer

    Staff Member

    Joined:
    Dec 10, 2008
    Location:
    Finland
    #2
  3. AndyK macrumors 65816

    AndyK

    Joined:
    Jan 10, 2008
    #3
    Could just be the age of your machine too, slower processor etc. My late 2013 retina sees basically no change and somehow got quicker(?!).

    Without on the left, with on the right (after full encryption after setup).
     

    Attached Files:

  4. laurihoefs macrumors 6502a

    laurihoefs

    Joined:
    Mar 1, 2013
    #4
    What kind of speed did you get before enabling FileVault? Are you sure, that the encryption was fully completed, and the disk was not being indexed by Spotlight?

    There is a clear performance impact with FileVault, but it should not be much worse than what you see in the article Hellhammer linked in his post. If you are getting significantly slower speeds, there's something else going on.

    Check the Disk tab in System Monitor, with Show All Processes selected, and see if there's a process that is doing a lot of reads and/or writes.
     
  5. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #5
    Agreed.... there is a slight speed hit with FV2, but nothing like the ~50% hit OP is seeing there. Something is wrong.
     
  6. bobr1952 macrumors 68020

    bobr1952

    Joined:
    Jan 21, 2008
    Location:
    Melbourne, FL
    #6
    Agree with those who suggest something else is amiss. I have Firevault2 enabled on both my 2012 rMPB and 2008 iMac. Obviously, more noticeable impact on iMac but much of that has to do with limited ram--no noticeable impact on rMBP.
     
  7. dollystereo thread starter macrumors 6502a

    dollystereo

    Joined:
    Oct 6, 2004
    Location:
    France
    #7
    Wait a couple of months.
    At the beginning it was as fast as no encryption, now it got slower.

    ----------

    I have been using file vault for 6 months now, so all the disk is already finished encrypting, and the speed at the beginning was really good (250/500).
     
  8. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #8
    There is nothing about FV2 that would make it slower over time. It would get a bit slower as soon as you enable FV2, but FV2 would not make it degrade as time passes. You have got something else going on.

    Here is something you can try if you want...

    Turn off FV2 and wait for it to decrypt. Confirm TRIM is still active then restart in single user mode and type in "fsck -fy" (without the quotes). That will TRIM all unused blocks on the drive and should restore write performance. When finished type reboot.

    Now try a speed test before and after FV2 and see what you get.

    I on my third Mac using FV2 and it has never degraded speed after the initial small hit.
     
  9. laurihoefs macrumors 6502a

    laurihoefs

    Joined:
    Mar 1, 2013
    #9
    I've been using FileVault on a mid-2012 rMBP disk for more than 18 months, and speeds are as good as new. And the disk has been through heavy use, has been filled over 90% many, many times, etc.

    Maybe there's an issue with the background garbage collection of your disk? Have you updated it's firmware? Have you enabled TRIM?
     

    Attached Files:

  10. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #10
    I've been happy with the read/write speeds of my SSD with FV2 turned on. It is a little bit noticeable in the beginning but then you get used to it and don't even notice it. The biggest advantage is your data is now encrypted. In a day and age where MBPs tend to grow legs and walk off keeping your data secure is vitally important.
     
  11. Hellhammer Moderator

    Hellhammer

    Staff Member

    Joined:
    Dec 10, 2008
    Location:
    Finland
    #11
    It's possible that the FileVault in newer Macs with Apple's SSDs supports hardware encryption, which would explain why there's no drop in performance. The SSDs are certainly capable of that, so it's totally up to Apple's software implementation.
     
  12. laurihoefs macrumors 6502a

    laurihoefs

    Joined:
    Mar 1, 2013
    #12
    My understanding is, that FileVault 2 uses AES-NI, but does not benefit from the built-in encryption of SSDs. FileVault 2 works with Core 2 CPUs, but without AES-NI support the performance drop is larger, than on Sandy Bridge or later. And AES performance has improved from Sandy Bridge CPUs, even more than general performance.

    But that would not explain the OP's issue of speed decreasing over time.
     
  13. dollystereo thread starter macrumors 6502a

    dollystereo

    Joined:
    Oct 6, 2004
    Location:
    France
    #13
    I have trim enabled, I may try to disable FV and re enable it.
    What I find weird, is that if I do 3 tests in a row, I get lower speeds each time. (180->120->80MB/s)
     
  14. Crugga macrumors regular

    Joined:
    Nov 25, 2010
    #14
    Mine is pretty much identical, very little difference if any.
     
  15. dollystereo thread starter macrumors 6502a

    dollystereo

    Joined:
    Oct 6, 2004
    Location:
    France
    #15
    without FV2

    Disabled FV2, got this results in 5GB test:
     

    Attached Files:

  16. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #16
    The bottom line is do you want your data encrypted so its safe or do you want the best read/write speeds?

    For me my data is more important and I'm willing to take a small hit on performance.
     
  17. dollystereo thread starter macrumors 6502a

    dollystereo

    Joined:
    Oct 6, 2004
    Location:
    France
    #17
    I will re-enable FV2, encryption is a must.
    Just surprised with the speeds.
     
  18. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #18
    Before you do that try the trick I mentioned in post #8 and see if that helps.
     
  19. Mac.User macrumors 6502

    Joined:
    Aug 25, 2013
    #19
    My SSD in my 2014 11in Air gets 160MB/s w/ FV2, and 270MB/s w/o FV2.
     
  20. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #20
    Would TRIM be disabled on apple branded SSDs? I can see it occurring if you enabled TRIM on non apple SSDs and an update turned it off some how.
     
  21. ryanfuse macrumors newbie

    Joined:
    May 18, 2014
    #21
    very very negligible slow down on my end. A few MB slowdown at most, and sometimes even faster.

    I'm using Macbook pro 13" retina, 8 GB RAM 256 SSD.
     
  22. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #22
    No, but in post #1 OP mentioned he has a Samsung 840 and had enabled TRIM, so it sounds like he does not have a OEM Apple SSD.
     
  23. dollystereo thread starter macrumors 6502a

    dollystereo

    Joined:
    Oct 6, 2004
    Location:
    France
    #23
    I will, thaanks

    ----------

    "It would appear that FileVault, at least on a quad-core Sandy Bridge CPU has absolutely no overhead here. Given that Apple near-universally uses AES for symmetrical encryption, it's reasonable to assume here that FileVault is taking advantage of the AES-NI instructions on Intel's Core-i series of processors."

    I dont understand your comment.
     
  24. yjchua95 macrumors 604

    Joined:
    Apr 23, 2011
    Location:
    GVA, KUL, MEL (current), ZQN
    #24
    It basically means that the FileVault 2 encryption relies on AES encryption, which only the Core i3/i5/i7 processors support fully without any performance hits (because the i3/i5/i7 have AES-NI instructions in them).

    If you don't have a i3/i5/i7 processor, FileVault is going to be very slow. For instance, a Core 2 Duo doesn't support AES-NI, so FileVault is going to be much slower as the processor just can't handle it.
     
  25. dollystereo thread starter macrumors 6502a

    dollystereo

    Joined:
    Oct 6, 2004
    Location:
    France

Share This Page