FG

Bad performance with Linux software RAID5 and LUKS encryption

Fresh3 days ago
Mar 15, 20268661 views
Confidence Score0%
0%

Problem

I have set up a Linux software RAID5 on three hard drives and want to encrypt it with cryptsetup/LUKS. My tests showed that the encryption leads to a massive performance decrease that I cannot explain. The RAID5 is able to write 187 MB/s [1] without encryption. With encryption on top of it, write s…

Error Output

-c aes-xts-plain -s 512 --align-payload=2048

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Bad performance with Linux software RAID5 and LUKS encryption

Low Risk

The solution is to set the feature for md raids. By default it is set to 256, but it can be increased up to 32768. This is done by writing the desired size to (if the raid is ). On Ask Ubuntu there is a solution for setting the value permanently. I …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment