Hi! I tested your recent changes of the hardware crypto support on my
GoFlex Home.
(Just for those who are joining this thread like me, theses were my complete steps to enable it:)
$this->bbcode_second_pass_code('', 'pacman -Syyuf
pacman -S openssl-cryptodev
echo '"KERNEL=="crypto", MODE="0666"' > /etc/udev/rules.d/99-cryptodev.rules
# Add cryptodev to the MODULES in /etc/rc.conf or manually load it after each new boot:
modprobe cryptodev
# probably not needed:
reboot
')
I could see a speedup of the
OpenSSL benchmark. The logs are on
https://gist.github.com/1950517 .
I was trying to also
compare real world md5 hash calculation as well (
md5sum filename versus
openssl dgst -md5 filename).
First OpenSSL crashed when calculating the MD5 hash of a large file (larger than my RAM - message was
openssl invoked oom-killer). So it seems that OpenSSL tries to load the whole file into the memory which is only ~120MiB on my GoFlex Home. The md5sum could calculate the hash without problems. Anyway, with a smaller file (70MiB) the openssl command took ~1.5 seconds to complete and the md5sum command only ~0.7s.
When transfering large files over a
tunnel created via ssh I can get a decent speedup / less system load using the option
-c aes256-cbc (which makes use of the hardware crypto module as the load on the mv_crypto kernel thread indicates).
Great work!