Commit a7182a6
committed
netstacklat: Make HOL-blocking filtering configurable
To make netstacklat only report latency based on the local network and
application stack, it by default excludes TCP reads that may be
head-of-line (HOL) blocked by a missing segment.
However, in some scenarios, it may be desirable to still include these
HOL-blocked measurements. For example, in a data center where the full
network is under your control, high latency caused by drops in the
data center network could still be an issue you wish netstacklat to
detect. Therefore, add the -y/--include-tcp-hol-delay option, which
disables the mechanism used to filter out potentially HOL-blocked
reads.
An alternative design to simply disabling the filtering mechanism,
would be to separate the potentially HOL-blocked measurements into
their own histogram (e.g. "tcp-socket-read-hol-blocked"). However,
that would further increase the data cardinality (which may be a
concern when using it together ebpf-exporter). Furthermore, by simply
disabling the filtering instead we can reduce the overhead a bit and
also allow it as an option on systems were the tcp_data_queue_ofo()
function cannot be probed.
Signed-off-by: Simon Sundberg <[email protected]>1 parent 64c7d05 commit a7182a6
3 files changed
+33
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
484 | 485 | | |
485 | 486 | | |
486 | 487 | | |
487 | | - | |
| 488 | + | |
488 | 489 | | |
489 | 490 | | |
490 | 491 | | |
| |||
507 | 508 | | |
508 | 509 | | |
509 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
510 | 520 | | |
511 | 521 | | |
512 | 522 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
565 | 566 | | |
566 | 567 | | |
567 | 568 | | |
| 569 | + | |
568 | 570 | | |
569 | 571 | | |
570 | 572 | | |
| |||
659 | 661 | | |
660 | 662 | | |
661 | 663 | | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
662 | 667 | | |
663 | 668 | | |
664 | 669 | | |
| |||
1113 | 1118 | | |
1114 | 1119 | | |
1115 | 1120 | | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
1116 | 1125 | | |
1117 | 1126 | | |
1118 | 1127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
0 commit comments