Add optimized cipher modules to initramfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Fix Released
|
Undecided
|
Pär Lindfors |
Bug Description
Binary package hint: cryptsetup
The initramfs hook script only adds a module named $cipher.ko for each cipher that is used. Some ciphers have assembly optimized kernel modules on some architectures wich should be used instead as they give much better performance. (Using aes-i586.ko instead of aes.ko on my system doubles disk throughput for sustained reads, while using 60% instead of 100% CPU)
Attached is a patch against feisty. I have only tested to build a initramfs with it in a chroot, but it seems to be working.
The patch use find to look for cipher modules in $MODULESDIR/
patch