Extremely slow writing on encrypted USB sticks?
This is weird, and I have no good explanation for it: formatted an external USB stick (SanDisk Ultra SDCZ048, 64 GB) with encryption. This combination is lethal to writing speeds: just writing a large file with dd shows speeds 10x slower than if the drive is not encrypted, which yields usually around 30MB/s. Worse: unmounting such a stick can then take a few minutes. This is running 10.12.6 on a 2013 MacBook Air, 8GB RAM.
I tried it with another stick of the same kind, same results. The solution is weird: do not encrypt the stick, create an encrypted sparse bundle with roughly the same size and, wouldn't you know it, one can write to latter with almost the same speed as in the fully unencrypted scenario.
I've been living with the slow write speeds for over a year now, but just finally decided to dig into it. Anyone has a clue of what MacOS is doing wrong here or what can be tuned? The CPU is always idle when things slow down dramatically, so it must be something else in the OS layer.
And having encrypted USB sticks shouldn't be an exotic usage scenario, quite the contrary ...
MacBook Air (13-inch Mid 2013), OS X El Capitan (10.11.4)