meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:openvpn:performance [2020/03/17 14:27] – created niziaklinux:openvpn:performance [2025/08/12 08:51] (current) niziak
Line 1: Line 1:
 +====== Performance ======
 +
 OpenVPN is single core daemon. It is recommended to run multiple instances to get multi-core benefits. OpenVPN is single core daemon. It is recommended to run multiple instances to get multi-core benefits.
 Also OpenVPN is user-level application which requires lots of switches. Also OpenVPN is user-level application which requires lots of switches.
Line 9: Line 11:
 ==== Test performance ==== ==== Test performance ====
  
 +<code bash>
 openvpn --genkey --secret /tmp/secret openvpn --genkey --secret /tmp/secret
 time openvpn --test-crypto --secret /tmp/secret --verb 0 --tun-mtu 20000 --cipher aes-256-cbc time openvpn --test-crypto --secret /tmp/secret --verb 0 --tun-mtu 20000 --cipher aes-256-cbc
 +</code>
  
  
Line 19: Line 23:
  
 [[https://en.wikipedia.org/wiki/Crypto_API_(Linux)]] [[https://en.wikipedia.org/wiki/Crypto_API_(Linux)]]
 + 
 +<code bash>
 +dmesg | grep AESNI
 +
 +openvpn --show-engines
  
 openssl speed -evp aes-256-cbc openssl speed -evp aes-256-cbc
 openssl speed -evp aes-256-cbc -engine afalg openssl speed -evp aes-256-cbc -engine afalg
 +</code>
  
 <file config> <file config>