1tcpsynbl.bt(8)              System Manager's Manual             tcpsynbl.bt(8)
2
3
4

NAME

6       tcpsynbl.bt  -  Show  the  TCP  SYN  backlog  as a histogram. Uses bpf‐
7       trace/eBPF.
8

SYNOPSIS

10       tcpsynbl
11

DESCRIPTION

13       This tool shows the TCP SYN backlog size during SYN arrival as  a  his‐
14       togram.   This  lets you see how close your applications are to hitting
15       the backlog limit and dropping SYNs (causing  performance  issues  with
16       SYN  retransmits),  and  is  a measure of workload saturation. The his‐
17       togram shown is measured at the time of SYN received,  and  a  separate
18       histogram is shown for each backlog limit.
19
20       This     works    by    tracing    the    tcp_v4_syn_recv_sock()    and
21       tcp_v6_syn_recv_sock() kernel functions using dynamic  instrumentation.
22       Since  these functions may change in future kernels, this tool may need
23       maintenance to keep working.
24
25       Since this uses BPF, only the root user can use this tool.
26

REQUIREMENTS

28       CONFIG_BPF and bpftrace.
29

EXAMPLES

31       Show the TCP SYN backlog as a histogram.
32              # tcpsynbl.bt
33

FIELDS

35       backlog
36              The backlog size when a SYN was received.
37
38       count  The number of times this backlog size was encountered.
39
40       distribution
41              An ASCII visualization of the count column.
42

OVERHEAD

44       Inbound SYNs should be relatively low compared  to  packets  and  other
45       events, so the overhead of this tool is expected to be negligible.
46

SOURCE

48       This  tool  originated from the book "BPF Performance Tools", published
49       by Addison Wesley (2019):
50
51              http://www.brendangregg.com/bpf-performance-tools-book.html
52
53       See the book for more documentation on this tool.
54
55       This version is in the bpftrace repository:
56
57              https://github.com/iovisor/bpftrace
58
59       Also look in the bpftrace distribution for  a  companion  _examples.txt
60       file containing example usage, output, and commentary for this tool.
61

OS

63       Linux
64

STABILITY

66       Unstable - in development.
67

AUTHOR

69       Brendan Gregg
70

SEE ALSO

72       tcptop(8)
73
74
75
76USER COMMANDS                     2019-07-03                    tcpsynbl.bt(8)
Impressum