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

NAME

6       tcpsynbl - Show the TCP SYN backlog as a histogram. Uses BCC/eBPF.
7

SYNOPSIS

9       tcpsynbl [-4 | -6]
10

DESCRIPTION

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

REQUIREMENTS

27       CONFIG_BPF and BCC.
28

OPTIONS

30       -h     Print usage message.
31
32       -4     Trace IPv4 family only.
33
34       -6     Trace IPv6 family only.
35

EXAMPLES

37       Show the TCP SYN backlog as a histogram.
38              # tcpsynbl
39
40       Trace IPv4 family only:
41              # tcpsynbl -4
42
43       Trace IPv6 family only:
44              # tcpsynbl -6
45

FIELDS

47       backlog
48              The backlog size when a SYN was received.
49
50       count  The number of times this backlog size was encountered.
51
52       distribution
53              An ASCII visualization of the count column.
54

OVERHEAD

56       Inbound  SYNs  should  be  relatively low compared to packets and other
57       events, so the overhead of this tool is expected to be negligible.
58

SOURCE

60       This originated as a bpftrace  tool  from  the  book  "BPF  Performance
61       Tools", published by Addison Wesley (2019):
62
63              http://www.brendangregg.com/bpf-performance-tools-book.html
64
65       See the book for more documentation on this tool.
66
67       This version is in the BCC repository:
68
69              https://github.com/iovisor/bcc
70
71       Also  look  in  the bcc distribution for a companion _examples.txt file
72       containing example usage, output, and commentary for this tool.
73

OS

75       Linux
76

STABILITY

78       Unstable - in development.
79

AUTHOR

81       Brendan Gregg
82

SEE ALSO

84       tcptop(8)
85
86
87
88USER COMMANDS                     2019-07-03                       tcpsynbl(8)
Impressum