ssllatency.bt(8)
β¨ ssllatency.bt(8) β¨
okay bestie, we're doing a manual page from the System Manager's Manual and honestly? it's giving performance-analysis main character energy π
π NAME π
ssllatency.bt β shows you an SSL/TLS handshake latency histogram. It uses bpftrace/eBPF, no cap.
πΈ SYNOPSIS πΈ
ssllatency.bt
π¦ DESCRIPTION π¦
ssllatency literally shows the latency distribution for OpenSSL handshake functions. Obsessed. It's lowkey perfect for performance analysis when you're messing with different crypto cipher suites, or doing async SSL acceleration via CPU or an offload device, etc.
The way this tool works is it dynamically traces the uprobes in OpenSSL and related crypto libs. Heads up though: it may need updating to match future changes to these functions. iykyk π
And since this uses BPF, only the root user can use this tool. Periodt.
π REQUIREMENTS π
CONFIG_BPFbpftrace
π EXAMPLES π
Trace SSL/TLS handshake latency, and print a histogram on Ctrl-C:
# ssllatency.bt
π FIELDS π
- 0th β a function name is shown in
"@hist[...]", followed by the latency histogram, and"@stat[...]", followed by total call count, average, total latency in microseconds. Non-zero failed calls are traced separately (in"@histF[]"and"@statF[]") for some functions. - 1st, 2nd β this is a range of latency, in microseconds (shown in
"[...)"set notation). - 3rd β a column showing the count of operations in this range.
- 4th β this is an ASCII histogram representing the count column.
π₯ OVERHEAD π₯
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. slay π
π SOURCE π
This is from bpftrace.
https://github.com/iovisor/bpftrace
Also look in the bpftrace distribution for a companion _examples.txt file containing example usage, output, and commentary for this tool. π«Ά
There's 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. π
https://github.com/iovisor/bcc
π§ OS π§
Linux
β STABILITY β
Unstable β in development. (it's a work in progress bestie, we love a growth arc π±)
πΈ AUTHOR πΈ
Tao Xu
π« SEE ALSO π«
and that's the whole page, bestie!! this one came out of USER COMMANDS on 2021-12-28 and we're just out here stanning a latency histogram. go run it (as root!!) and hydrate while you wait for that Ctrl-C. mwah ππ¦
π¦ where this page comes from
- debian bookworm: bpftrace 0.17.0-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms