• xhci@lemmy.ml
    link
    fedilink
    English
    arrow-up
    22
    arrow-down
    1
    ·
    1 year ago

    I think macOS takes a similar hit. I thought it was pretty negligible with hardware acceleration baked into CPUs for AES these days, but I guess the drives have gotten so fast that they haven’t kept up.

    • setsubyou@lemmy.world
      link
      fedilink
      arrow-up
      14
      arrow-down
      1
      ·
      1 year ago

      Macs have encryption in hardware in the dma channel for their built-in drives (Intel Macs with T2 and all ARM Macs), so the overhead is negligible on the internal ssd. Macs actually don’t even have unencrypted internal drives anymore. The filevault toggle only affects whether the volume encryption key stored in the secure enclave is itself encrypted or not.

      Older Macs and external drives are a different story of course.

    • Endorkend@kbin.social
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      Yeah, my SSD can do somewhere around 7GB/s read/write, barely half that with the encryption enabled.

      And I have an external USB carry with an NVMe drive which should be perfectly capable of doing the maximum (1GB/s on a USB3.1 port) , but with encryption enabled, it’s struggling to do over 350MB/s

      • Logi@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        1 year ago

        That seems odd. You’d expect that if the cpu is doing the encryption and can do 3GB/s for the internal disk then it can do the same for the external one and be limited by the USB or disk speed of 1 GB/s

        • setsubyou@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          If it’s a Mac then it’s not the CPU that’s doing the encryption for the internal drive. Macs have separate hardware for that, the CPU can’t even get the key.

    • Ghostalmedia@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      edit-2
      1 year ago

      The performance hit is not really notable on the Intel machines with a T2 or the new M1 / M2 silicon.

      That said, in googling for benchmarks, theres not really much to find.

      • xhci@lemmy.ml
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        1 year ago

        My heaviest-use machines are an M1 Pro for development and AMD Ryzen (Windows) for gaming. My general guess is that both are so much faster than their predecessors, I don’t notice any hit if there is one.

        I have assorted OpenBSD machines using softraid encryption, but the OS is so lightweight (along with the software being used on them) that I haven’t noticed a disk speed hit so far.