meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| hw:nsa310:encrypted_fs [2020/07/03 09:43] – ↷ Page moved from nsa310:encrypted_fs to hw:nsa310:encrypted_fs niziak | hw:nsa310:encrypted_fs [2021/01/20 19:35] (current) – niziak | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| NOTE: From Kernel 4.2 cesa driver was completely rewritten to support DMA, and old **mv_cesa** driver was removed in kernel 4.15 | NOTE: From Kernel 4.2 cesa driver was completely rewritten to support DMA, and old **mv_cesa** driver was removed in kernel 4.15 | ||
| + | ===== Kernel 3.18 ===== | ||
| < | < | ||
| Line 22: | Line 23: | ||
| - cbc(aes) | - cbc(aes) | ||
| - ecb(aes) | - ecb(aes) | ||
| + | - | ||
| There are also additional kernel modules optimised for ARM: | There are also additional kernel modules optimised for ARM: | ||
| Line 27: | Line 29: | ||
| - aes_arm | - aes_arm | ||
| + | ===== Kernel 5.8 ===== | ||
| + | |||
| + | < | ||
| + | modprobe mv_cesa | ||
| + | cat / | ||
| + | </ | ||
| + | |||
| + | Is providing: | ||
| + | - hmac(sha1) | ||
| + | - hmac(md5) | ||
| + | - sha1 | ||
| + | - md5 | ||
| + | - cbc(aes) | ||
| + | - ecb(aes) | ||
| + | - cbc(des3_ede) | ||
| + | - ecb(des3_ede) | ||
| + | - cbc(des) | ||
| + | - ecb(des) | ||
| + | |||
| + | There are also additional kernel modules optimised for ARM: | ||
| + | - sha1_arm | ||
| + | - aes_arm | ||
| + | |||
| + | ==== fio benchmark ==== | ||
| + | |||
| + | CESA 4kB: | ||
| + | < | ||
| + | READ: bw=479KiB/s (491kB/s), 479KiB/ | ||
| + | WRITE: bw=160KiB/s (164kB/s), 160KiB/ | ||
| + | </ | ||
| + | |||
| + | CESA 64kB: | ||
| + | < | ||
| + | READ: bw=5663KiB/ | ||
| + | WRITE: bw=1931KiB/ | ||
| + | </ | ||
| + | |||
| + | ARM 4kB: | ||
| + | < | ||
| + | READ: bw=478KiB/s (490kB/s), 478KiB/ | ||
| + | WRITE: bw=159KiB/s (163kB/s), 159KiB/ | ||
| + | </ | ||
| + | |||
| + | ARM 64kB: | ||
| + | < | ||
| + | READ: bw=5622KiB/ | ||
| + | WRITE: bw=1917KiB/ | ||
| + | </ | ||
| + | |||
| + | ===== Benchmark ===== | ||
| < | < | ||
| Line 32: | Line 84: | ||
| </ | </ | ||
| - | ^ Algorithm | + | ^ Algorithm |
| - | ^ | + | ^ |
| - | ^ | + | ^ |
| - | ^ | + | ^ |
| - | ^ serpent-cbc | 128b | 11.1 MiB/s | + | ^ |
| - | ^ twofish-cbc | 128b | 13.0 MiB/s | + | ^ serpent-cbc | 128b | 11.1 MiB/s |
| - | ^ | + | ^ twofish-cbc | 128b | 13.0 MiB/s |
| - | ^ | + | ^ |
| - | ^ | + | ^ |
| - | ^ serpent-cbc | 256b | 11.1 MiB/s | + | ^ |
| - | ^ twofish-cbc | 256b | 13.0 MiB/s | + | ^ |
| - | ^ | + | ^ serpent-cbc | 256b | 11.1 MiB/s |
| - | ^ | + | ^ twofish-cbc | 256b | 13.0 MiB/s |
| - | ^ serpent-xts | 256b | 11.5 MiB/s | + | ^ |
| - | ^ twofish-xts | 256b | 13.4 MiB/s | + | ^ |
| - | ^ | + | ^ |
| - | ^ | + | ^ serpent-xts | 256b | 11.5 MiB/s |
| - | ^ serpent-xts | 512b | 11.5 MiB/s | + | ^ twofish-xts | 256b | 13.4 MiB/s |
| - | ^ twofish-xts | 512b | 13.4 MiB/s | + | ^ |
| + | ^ | ||
| + | ^ | ||
| + | ^ serpent-xts | 512b | 11.5 MiB/s | ||
| + | ^ twofish-xts | 512b | 13.4 MiB/s | ||
| ===== Ciphers benchmark ===== | ===== Ciphers benchmark ===== | ||
| Line 178: | Line 234: | ||
| ====== SSH performance ====== | ====== SSH performance ====== | ||
| + | |||
| Enable low complexity ciphers if device is used locally. | Enable low complexity ciphers if device is used locally. | ||
| <code bash>ssh -Q cipher localhost | paste -d , -s</ | <code bash>ssh -Q cipher localhost | paste -d , -s</ | ||
| Line 186: | Line 243: | ||
| </ | </ | ||
| - | ^ cmd ^ performance ^ time ^ | + | ^ cmd ^ performance ^ time |
| - | | (default) | + | | (default) |
| - | | 3des-cbc | + | | 3des-cbc |
| - | | blowfish-cbc | + | | blowfish-cbc |
| - | | cast128-cbc | + | | cast128-cbc |
| - | | arcfour | + | | arcfour |
| - | | arcfour128 | + | | arcfour128 |
| - | | **arcfour256** | + | | **arcfour256** |
| - | | aes128-cbc | + | | aes128-cbc |
| - | | aes192-cbc | + | | aes192-cbc |
| - | | aes256-cbc | + | | aes256-cbc |
| - | | rijndael-cbc@lysator.liu.se | 2.8MB/ | + | | rijndael-cbc@lysator.liu.se | 2.8MB/ |
| - | | aes128-ctr | + | | aes128-ctr |
| - | | aes192-ctr | + | | aes192-ctr |
| - | | aes256-ctr | + | | aes256-ctr |
| - | | aes128-gcm@openssh.com | + | | aes128-gcm@openssh.com |
| - | | aes256-gcm@openssh.com | + | | aes256-gcm@openssh.com |
| - | | chacha20-poly1305@openssh.com | + | | chacha20-poly1305@openssh.com |
| + | ====== fsck performance ====== | ||
| + | * Kernel 5.8 CESA: user 1m32, | ||
| + | * Kernel 5.8 ARM: user 1m32, | ||
| + | |||
| + | ====== Rsync with SSH tunnell performance ====== | ||
| + | When rsyncing huge file, to use delta transfers, rsync needs to scan file to make checksums. | ||
| + | |||
| + | ===== Kernel 5.8 ARM ===== | ||
| + | < | ||
| + | 134, | ||
| + | 142, | ||
| + | 151, | ||
| + | 159, | ||
| + | 175, | ||
| + | 192, | ||
| + | 200, | ||
| + | 217, | ||
| + | 234, | ||
| + | 243, | ||
| + | 250, | ||
| + | 259, | ||
| + | 268, | ||
| + | 334, | ||
| + | |||
| + | %Cpu(s): 50,0 us, 50,0 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st | ||
| + | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | ||
| + | 32375 root 20 | ||
| + | 16281 root 20 | ||
| + | |||
| + | %Cpu(s): 30,8 us, 65,4 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,0 hi, 3,8 si, 0,0 st | ||
| + | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | ||
| + | 16360 root 20 | ||
| + | 16281 root 20 | ||
| + | | ||
| + | %Cpu(s): 29,0 us, 71,0 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st | ||
| + | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | ||
| + | 16360 root 20 | ||
| + | 16281 root 20 | ||
| + | |||
| + | %Cpu(s): 26,9 us, 73,1 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st | ||
| + | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | ||
| + | 31416 root 20 | ||
| + | 16281 root 20 | ||
| + | |||
| + | %Cpu(s): 33,3 us, 66,7 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st | ||
| + | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | ||
| + | 16360 root 20 | ||
| + | 16281 root 20 | ||
| + | </ | ||
| + | |||
| + | ===== Kernel 5.8 CESA ===== | ||
| + | < | ||
| + | 178, | ||
| + | 185, | ||
| + | 209, | ||
| + | 271, | ||
| + | 287, | ||
| + | 334, | ||
| + | 358, | ||
| + | 761, | ||
| + | 769, | ||
| + | 777, | ||
| + | | ||
| + | %Cpu(s): 31,3 us, 68,1 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,6 si, 0,0 st | ||
| + | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | ||
| + | 29705 root 20 | ||
| + | 30062 root | ||
| + | 32091 root 20 | ||
| + | |||
| + | %Cpu(s): 36,4 us, 63,6 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st | ||
| + | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | ||
| + | 29705 root 20 | ||
| + | 30062 root | ||
| + | 32091 root 20 | ||
| + | |||
| + | %Cpu(s): 26,5 us, 73,5 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st | ||
| + | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | ||
| + | 29705 root 20 | ||
| + | 30062 root | ||
| + | 32091 root 20 | ||
| + | |||
| + | %Cpu(s): 29,0 us, 71,0 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st | ||
| + | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | ||
| + | 29705 root 20 | ||
| + | 30062 root | ||
| + | 32091 root 20 | ||
| + | </ | ||