PDA

View Full Version : [ubuntu] 12.10 Luks Encrytped Drive SLOW performance



Catalyph
November 26th, 2012, 08:58 PM
adminx@Media:~$ sudo cryptsetup status MediaCrypt
/dev/mapper/MediaCrypt is active and is in use.
type: LUKS1
cipher: aes-xts-plain
keysize: 512 bits
device: /dev/mapper/VolGrp00-LogVol00
offset: 4096 sectors
size: 5860519936 sectors
mode: read/write
adminx@Media:~$ sudo hdparm -Tt /dev/VolGrp00/LogVol00

/dev/VolGrp00/LogVol00:
Timing cached reads: 1666 MB in 2.00 seconds = 833.01 MB/sec
Timing buffered disk reads: 488 MB in 3.01 seconds = 162.26 MB/sec
sintek@MediaVault:~$ sudo hdparm -Tt /dev/mapper/MediaCrypt

/dev/mapper/MediaCrypt:
Timing cached reads: 1688 MB in 2.00 seconds = 843.94 MB/sec
Timing buffered disk reads: 136 MB in 3.03 seconds = 44.82 MB/sec

EXT4 FS

I dont know enough about the encryption map to see why the performance 1/4 the speed it should be.
I could understand even 110.00 MB/sec but this is just BAD.

Catalyph
November 27th, 2012, 03:57 PM
I wonder if the performance is affected by the way i set up the encryption
I have the LVM then the Encryption.
I wonder if having the Encryption first then the LVM on top if that would improve performance.

I also heard that LUKS has performance issues on AMD platform, Which this is. APU E350