ssllatency.bt(8) | System Manager's Manual | ssllatency.bt(8) |
ssllatency.bt - Show SSL/TLS handshake latency histogram. Uses bpftrace/eBPF.
ssllatency.bt
ssllatency shows latency distribution for OpenSSL handshake functions. This is useful for performance analysis with different crypto cipher suite, async SSL acceleration by CPU or offload device, etc.
This tool works by dynamic tracing the uprobes in OpenSSL and related crypto libs, and may need updating to match future changes to these functions.
Since this uses BPF, only the root user can use this tool.
CONFIG_BPF and bpftrace.
SSL/TLS handshake usually contains network latency and the traced crypto functions are CPU intensive tasks, so call frequency should be low and the overhead of this tool is expected to be negligible.
This is from bpftrace.
Also look in the bpftrace distribution for a companion _examples.txt file containing example usage, output, and commentary for this tool.
There is a bcc tool sslsniff that can show SSL/TLS handshake event latency before sniffing the plaintext in SSL_read/write. This tool provides more detailed crypto latency distribution during the handshake event.
Linux
Unstable - in development.
Tao Xu
2021-12-28 | USER COMMANDS |