5

Will I see a performance gain with AES-NI using dm-crypt/LUKS for hard drive system encryption?

Isn't the hard drive the bottleneck even without hardware acceleration?

Hennes
  • 65,804
  • 7
  • 115
  • 169
Mark K.
  • 59

1 Answers1

8

The hard drive is the bottleneck in some cases (depends on how fast your CPU is), but there is some computation time before data is written to the drive, and that is what the implementation of the AES instruction set was for. It was also intended to help speed up encrypted file compression operations (e.g. through 7-zip), or performing complex hashing algorithms on large amounts of data.

The speed-up you see will depend on how slow your CPU is (all relative in the end), but you will see a speed-up since it has to first load the data from the drive (or memory), encrypt it, and then move it back to the hard disk. This reduces the encryption speed, which may or may not be a factor (speed is highly dependent on your system configuration, specifically CPU and RAM speed).

These speed-ups should help to bring you much closer to real-time transfer speeds (which you get when copying unencrypted files with no encryption overhead).

Breakthrough
  • 34,847