Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete the inverted key in connection_states eBPF map on tcp termination #34586

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

yuri-lipnesh
Copy link
Contributor

@yuri-lipnesh yuri-lipnesh commented Feb 28, 2025

What does this PR do?

Changes eBPF program protocol_dispatcher_entrypoint to delete both keys - connection tuple and inverted tuple, in the map connection_states on TCP termination.

Motivation

It was found that connection_states map gets full on staging clusters, example here.
USMON-1413_conn_states_full

Describe how you validated your changes

Passed CI Us.
This code fix was deployed on staging cluster parent12, the metrics show full maps before fix deployment and fill level drop after the fix. Metrics.
USMON-1413_conn_states_cnt

HTTP load tests dashboard show no impact on

system-probe cpu
conn_states_pr_CPU

system-probe memory
conn_state_pr_mem

Possible Drawbacks / Trade-offs

Additional Notes

@yuri-lipnesh yuri-lipnesh added component/system-probe team/usm The USM team qa/done QA done before merge and regressions are covered by tests labels Feb 28, 2025
@github-actions github-actions bot added the short review PR is simple enough to be reviewed quickly label Feb 28, 2025
@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Feb 28, 2025

[Fast Unit Tests Report]

On pipeline 58481128 (CI Visibility). The following jobs did not run any unit tests:

Jobs:
  • tests_deb-arm64-py3
  • tests_deb-x64-py3
  • tests_flavor_dogstatsd_deb-x64
  • tests_flavor_heroku_deb-x64
  • tests_flavor_iot_deb-x64
  • tests_rpm-arm64-py3
  • tests_rpm-x64-py3
  • tests_windows-x64

If you modified Go files and expected unit tests to run in these jobs, please double check the job logs. If you think tests should have been executed reach out to #agent-devx-help

@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Feb 28, 2025

Uncompressed package size comparison

Comparison with ancestor a1a9a43e115782326a9527b1924ec451b3573ac4

Diff per package
package diff status size ancestor threshold
datadog-agent-x86_64-rpm 0.00MB 818.97MB 818.97MB 0.50MB
datadog-agent-x86_64-suse 0.00MB 818.97MB 818.97MB 0.50MB
datadog-agent-amd64-deb 0.00MB 809.18MB 809.17MB 0.50MB
datadog-agent-aarch64-rpm 0.00MB 809.96MB 809.95MB 0.50MB
datadog-agent-arm64-deb 0.00MB 800.18MB 800.18MB 0.50MB
datadog-dogstatsd-amd64-deb 0.00MB 39.33MB 39.33MB 0.50MB
datadog-dogstatsd-x86_64-rpm 0.00MB 39.41MB 39.41MB 0.50MB
datadog-dogstatsd-x86_64-suse 0.00MB 39.41MB 39.41MB 0.50MB
datadog-dogstatsd-arm64-deb 0.00MB 37.85MB 37.85MB 0.50MB
datadog-heroku-agent-amd64-deb 0.00MB 440.62MB 440.62MB 0.50MB
datadog-iot-agent-amd64-deb 0.00MB 62.17MB 62.17MB 0.50MB
datadog-iot-agent-x86_64-rpm 0.00MB 62.24MB 62.24MB 0.50MB
datadog-iot-agent-x86_64-suse 0.00MB 62.24MB 62.24MB 0.50MB
datadog-iot-agent-arm64-deb 0.00MB 59.40MB 59.40MB 0.50MB
datadog-iot-agent-aarch64-rpm 0.00MB 59.47MB 59.47MB 0.50MB

Decision

✅ Passed

Copy link

cit-pr-commenter bot commented Feb 28, 2025

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: 50779d6c-05f0-42d4-bc25-8f00153f3252

Baseline: a1a9a43
Comparison: 1409a78
Diff

Optimization Goals: ✅ No significant changes detected

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
tcp_syslog_to_blackhole ingress throughput +0.08 [+0.00, +0.16] 1 Logs
file_to_blackhole_500ms_latency egress throughput +0.05 [-0.73, +0.83] 1 Logs
file_to_blackhole_0ms_latency_http1 egress throughput +0.03 [-0.83, +0.88] 1 Logs
uds_dogstatsd_to_api ingress throughput +0.01 [-0.28, +0.31] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput +0.00 [-0.02, +0.03] 1 Logs
file_to_blackhole_100ms_latency egress throughput -0.00 [-0.67, +0.67] 1 Logs
file_to_blackhole_0ms_latency egress throughput -0.01 [-0.83, +0.82] 1 Logs
file_to_blackhole_0ms_latency_http2 egress throughput -0.02 [-0.90, +0.87] 1 Logs
file_to_blackhole_300ms_latency egress throughput -0.02 [-0.65, +0.61] 1 Logs
file_to_blackhole_1000ms_latency egress throughput -0.08 [-0.86, +0.69] 1 Logs
file_to_blackhole_1000ms_latency_linear_load egress throughput -0.11 [-0.57, +0.35] 1 Logs
quality_gate_idle_all_features memory utilization -0.56 [-0.64, -0.49] 1 Logs bounds checks dashboard
quality_gate_idle memory utilization -0.85 [-0.92, -0.78] 1 Logs bounds checks dashboard
uds_dogstatsd_to_api_cpu % cpu utilization -1.46 [-2.31, -0.61] 1 Logs
file_tree memory utilization -2.12 [-2.29, -1.96] 1 Logs
quality_gate_logs % cpu utilization -3.26 [-5.92, -0.60] 1 Logs

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed links
file_to_blackhole_0ms_latency lost_bytes 10/10
file_to_blackhole_0ms_latency memory_usage 10/10
file_to_blackhole_0ms_latency_http1 lost_bytes 10/10
file_to_blackhole_0ms_latency_http1 memory_usage 10/10
file_to_blackhole_0ms_latency_http2 lost_bytes 10/10
file_to_blackhole_0ms_latency_http2 memory_usage 10/10
file_to_blackhole_1000ms_latency memory_usage 10/10
file_to_blackhole_1000ms_latency_linear_load memory_usage 10/10
file_to_blackhole_100ms_latency lost_bytes 10/10
file_to_blackhole_100ms_latency memory_usage 10/10
file_to_blackhole_300ms_latency lost_bytes 10/10
file_to_blackhole_300ms_latency memory_usage 10/10
file_to_blackhole_500ms_latency lost_bytes 10/10
file_to_blackhole_500ms_latency memory_usage 10/10
quality_gate_idle intake_connections 10/10 bounds checks dashboard
quality_gate_idle memory_usage 10/10 bounds checks dashboard
quality_gate_idle_all_features intake_connections 10/10 bounds checks dashboard
quality_gate_idle_all_features memory_usage 10/10 bounds checks dashboard
quality_gate_logs intake_connections 10/10
quality_gate_logs lost_bytes 10/10
quality_gate_logs memory_usage 10/10

Explanation

Confidence level: 90.00%
Effect size tolerance: |Δ mean %| ≥ 5.00%

Performance changes are noted in the perf column of each table:

  • ✅ = significantly better comparison variant performance
  • ❌ = significantly worse comparison variant performance
  • ➖ = no significant change in performance

A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".

For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:

  1. Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.

  2. Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.

  3. Its configuration does not mark it "erratic".

CI Pass/Fail Decision

Passed. All Quality Gates passed.

  • quality_gate_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check lost_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.

@agent-platform-auto-pr
Copy link
Contributor

eBPF complexity changes

Summary result: ✅ - stable

  • Highest complexity change (%): +0.37%
  • Highest complexity change (abs.): +6 instructions
  • Programs that were above the 85.0% limit of instructions and are now below: 0
  • Programs that were below the 85.0% limit of instructions and are now above: 0
usm details

usm [programs with changes]

Program Avg. complexity Distro with highest complexity Distro with lowest complexity
socket__protocol_dispatcher 🔴 1710.7 (+6.0, +0.35%) fedora_38/arm64: 🔴 1778.0 (+6.0, +0.34%) centos_8/arm64: 🔴 1622.0 (+6.0, +0.37%)

usm [programs without changes]

Program Avg. complexity Distro with highest complexity Distro with lowest complexity
istio_uretprobe__SSL_read ⚪ 5247.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 7609.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 2777.0 (+0.0, +0.00%)
istio_uretprobe__SSL_write ⚪ 3142.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 3260.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 3052.0 (+0.0, +0.00%)
kprobe__sockfd_lookup_light ⚪ 53.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 53.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 53.0 (+0.0, +0.00%)
kprobe__tcp_close ⚪ 670.0 (+0.0, +0.00%) fedora_38/arm64: ⚪ 769.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 615.0 (+0.0, +0.00%)
kprobe__tcp_sendmsg ⚪ 470.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 554.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 429.0 (+0.0, +0.00%)
kretprobe__sockfd_lookup_light ⚪ 663.3 (+0.0, +0.00%) fedora_38/arm64: ⚪ 740.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 625.0 (+0.0, +0.00%)
nodejs_uretprobe__SSL_read ⚪ 5247.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 7609.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 2777.0 (+0.0, +0.00%)
nodejs_uretprobe__SSL_read_ex ⚪ 6004.0 (+0.0, +0.00%) fedora_38/arm64: ⚪ 7600.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 2864.0 (+0.0, +0.00%)
nodejs_uretprobe__SSL_write ⚪ 3142.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 3260.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 3052.0 (+0.0, +0.00%)
nodejs_uretprobe__SSL_write_ex ⚪ 6248.3 (+0.0, +0.00%) fedora_38/arm64: ⚪ 7954.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 2983.0 (+0.0, +0.00%)
socket__http2_dynamic_table_cleaner ⚪ 3968.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 3968.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 3968.0 (+0.0, +0.00%)
socket__http2_eos_parser ⚪ 182425.7 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 182454.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 182369.0 (+0.0, +0.00%)
socket__http2_filter ⚪ 106985.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 114973.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 101215.0 (+0.0, +0.00%)
socket__http2_handle_first_frame ⚪ 1249.3 (+0.0, +0.00%) fedora_38/arm64: ⚪ 1694.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 1027.0 (+0.0, +0.00%)
socket__http_filter ⚪ 10670.0 (+0.0, +0.00%) fedora_38/arm64: ⚪ 14426.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 8792.0 (+0.0, +0.00%)
socket__kafka_fetch_response_partition_parser_v0 ⚪ 5050.8 (+0.0, +0.00%) centos_8/arm64: ⚪ 5076.0 (+0.0, +0.00%) ubuntu_18.04/arm64: ⚪ 5016.0 (+0.0, +0.00%)
socket__kafka_fetch_response_partition_parser_v12 ⚪ 5380.4 (+0.0, +0.00%) ubuntu_18.04/arm64: ⚪ 6149.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 4914.0 (+0.0, +0.00%)
socket__kafka_fetch_response_record_batch_parser_v0 ⚪ 6146.3 (+0.0, +0.00%) centos_8/arm64: ⚪ 6166.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 6107.0 (+0.0, +0.00%)
socket__kafka_fetch_response_record_batch_parser_v12 ⚪ 6146.3 (+0.0, +0.00%) centos_8/arm64: ⚪ 6166.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 6107.0 (+0.0, +0.00%)
socket__kafka_filter ⚪ 45648.7 (+0.0, +0.00%) centos_8/arm64: ⚪ 52701.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 31544.0 (+0.0, +0.00%)
socket__kafka_produce_response_partition_parser_v0 ⚪ 1372.2 (+0.0, +0.00%) centos_8/arm64: ⚪ 1442.0 (+0.0, +0.00%) debian_10/arm64: ⚪ 1250.0 (+0.0, +0.00%)
socket__kafka_produce_response_partition_parser_v9 ⚪ 1544.6 (+0.0, +0.00%) debian_10/arm64: ⚪ 2062.0 (+0.0, +0.00%) fedora_38/arm64: ⚪ 1190.0 (+0.0, +0.00%)
socket__postgres_handle ⚪ 1697.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 2449.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 1321.0 (+0.0, +0.00%)
socket__postgres_handle_response ⚪ 4385.0 (+0.0, +0.00%) debian_10/arm64: ⚪ 4774.0 (+0.0, +0.00%) ubuntu_18.04/arm64: ⚪ 3391.0 (+0.0, +0.00%)
socket__postgres_process_parse_message ⚪ 9359.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 15464.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 4794.0 (+0.0, +0.00%)
socket__protocol_dispatcher_kafka ⚪ 73296.3 (+0.0, +0.00%) centos_8/arm64: ⚪ 90782.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 38325.0 (+0.0, +0.00%)
socket__redis_process ⚪ 2.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 2.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 2.0 (+0.0, +0.00%)
tracepoint__net__netif_receive_skb ⚪ 16.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 16.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 16.0 (+0.0, +0.00%)
uprobe__BIO_new_socket ⚪ 45.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 45.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 45.0 (+0.0, +0.00%)
uprobe__SSL_connect ⚪ 45.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 45.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 45.0 (+0.0, +0.00%)
uprobe__SSL_do_handshake ⚪ 45.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 45.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 45.0 (+0.0, +0.00%)
uprobe__SSL_read ⚪ 137.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 137.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 137.0 (+0.0, +0.00%)
uprobe__SSL_read_ex ⚪ 109.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 109.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 109.0 (+0.0, +0.00%)
uprobe__SSL_set_bio ⚪ 66.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 66.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 66.0 (+0.0, +0.00%)
uprobe__SSL_set_fd ⚪ 56.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 56.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 56.0 (+0.0, +0.00%)
uprobe__SSL_shutdown ⚪ 371.0 (+0.0, +0.00%) fedora_38/arm64: ⚪ 388.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 361.0 (+0.0, +0.00%)
uprobe__SSL_write ⚪ 50.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 50.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 50.0 (+0.0, +0.00%)
uprobe__SSL_write_ex ⚪ 22.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 22.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 22.0 (+0.0, +0.00%)
uprobe__crypto_tls_Conn_Close ⚪ 1137.2 (+0.0, +0.00%) centos_8/arm64: ⚪ 1265.0 (+0.0, +0.00%) amazon_5.4/x86_64: ⚪ 1009.0 (+0.0, +0.00%)
uprobe__crypto_tls_Conn_Read ⚪ 773.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 860.0 (+0.0, +0.00%) amazon_5.4/x86_64: ⚪ 686.0 (+0.0, +0.00%)
uprobe__crypto_tls_Conn_Read__return ⚪ 5604.2 (+0.0, +0.00%) fedora_38/arm64: ⚪ 8740.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 3373.0 (+0.0, +0.00%)
uprobe__crypto_tls_Conn_Write ⚪ 1315.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 1807.0 (+0.0, +0.00%) amazon_5.4/x86_64: ⚪ 823.0 (+0.0, +0.00%)
uprobe__crypto_tls_Conn_Write__return ⚪ 5217.0 (+0.0, +0.00%) fedora_38/x86_64: ⚪ 6404.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 3412.0 (+0.0, +0.00%)
uprobe__gnutls_bye ⚪ 371.0 (+0.0, +0.00%) fedora_38/arm64: ⚪ 388.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 361.0 (+0.0, +0.00%)
uprobe__gnutls_deinit ⚪ 371.0 (+0.0, +0.00%) fedora_38/arm64: ⚪ 388.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 361.0 (+0.0, +0.00%)
uprobe__gnutls_handshake ⚪ 45.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 45.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 45.0 (+0.0, +0.00%)
uprobe__gnutls_record_recv ⚪ 47.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 47.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 47.0 (+0.0, +0.00%)
uprobe__gnutls_record_send ⚪ 50.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 50.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 50.0 (+0.0, +0.00%)
uprobe__gnutls_transport_set_int2 ⚪ 56.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 56.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 56.0 (+0.0, +0.00%)
uprobe__gnutls_transport_set_ptr ⚪ 56.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 56.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 56.0 (+0.0, +0.00%)
uprobe__gnutls_transport_set_ptr2 ⚪ 56.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 56.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 56.0 (+0.0, +0.00%)
uprobe__http2_dynamic_table_cleaner ⚪ 3964.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 3964.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 3964.0 (+0.0, +0.00%)
uprobe__http2_tls_eos_parser ⚪ 182422.7 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 182451.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 182366.0 (+0.0, +0.00%)
uprobe__http2_tls_filter ⚪ 91637.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 92489.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 91211.0 (+0.0, +0.00%)
uprobe__http2_tls_handle_first_frame ⚪ 1056.4 (+0.0, +0.00%) fedora_38/arm64: ⚪ 1290.0 (+0.0, +0.00%) debian_10/arm64: ⚪ 839.0 (+0.0, +0.00%)
uprobe__http2_tls_termination ⚪ 100.2 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 105.0 (+0.0, +0.00%) debian_10/arm64: ⚪ 93.0 (+0.0, +0.00%)
uprobe__http_process ⚪ 3405.0 (+0.0, +0.00%) debian_10/arm64: ⚪ 6217.0 (+0.0, +0.00%) ubuntu_18.04/arm64: ⚪ 1541.0 (+0.0, +0.00%)
uprobe__http_termination ⚪ 288.6 (+0.0, +0.00%) debian_10/arm64: ⚪ 291.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 287.0 (+0.0, +0.00%)
uprobe__kafka_tls_fetch_response_partition_parser_v0 ⚪ 5338.6 (+0.0, +0.00%) centos_8/arm64: ⚪ 5569.0 (+0.0, +0.00%) debian_10/arm64: ⚪ 4934.0 (+0.0, +0.00%)
uprobe__kafka_tls_fetch_response_partition_parser_v12 ⚪ 6582.4 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 6713.0 (+0.0, +0.00%) debian_10/arm64: ⚪ 6305.0 (+0.0, +0.00%)
uprobe__kafka_tls_fetch_response_record_batch_parser_v0 ⚪ 6853.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 6890.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 6723.0 (+0.0, +0.00%)
uprobe__kafka_tls_fetch_response_record_batch_parser_v12 ⚪ 6853.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 6890.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 6723.0 (+0.0, +0.00%)
uprobe__kafka_tls_filter ⚪ 36058.8 (+0.0, +0.00%) centos_8/arm64: ⚪ 52221.0 (+0.0, +0.00%) ubuntu_18.04/arm64: ⚪ 9696.0 (+0.0, +0.00%)
uprobe__kafka_tls_produce_response_partition_parser_v0 ⚪ 1436.6 (+0.0, +0.00%) centos_8/arm64: ⚪ 1563.0 (+0.0, +0.00%) debian_10/arm64: ⚪ 1218.0 (+0.0, +0.00%)
uprobe__kafka_tls_produce_response_partition_parser_v9 ⚪ 1825.8 (+0.0, +0.00%) debian_10/arm64: ⚪ 2241.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 1476.0 (+0.0, +0.00%)
uprobe__kafka_tls_termination ⚪ 43.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 43.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 43.0 (+0.0, +0.00%)
uprobe__postgres_tls_handle ⚪ 252.2 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 268.0 (+0.0, +0.00%) debian_10/arm64: ⚪ 228.0 (+0.0, +0.00%)
uprobe__postgres_tls_handle_response ⚪ 4799.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 5049.0 (+0.0, +0.00%) ubuntu_18.04/arm64: ⚪ 3815.0 (+0.0, +0.00%)
uprobe__postgres_tls_process_parse_message ⚪ 3552.2 (+0.0, +0.00%) ubuntu_18.04/arm64: ⚪ 3802.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 3386.0 (+0.0, +0.00%)
uprobe__postgres_tls_termination ⚪ 43.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 43.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 43.0 (+0.0, +0.00%)
uprobe__redis_tls_process ⚪ 2.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 2.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 2.0 (+0.0, +0.00%)
uprobe__redis_tls_termination ⚪ 2.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 2.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 2.0 (+0.0, +0.00%)
uprobe__tls_protocol_dispatcher_kafka ⚪ 8217.2 (+0.0, +0.00%) fedora_38/arm64: ⚪ 13660.0 (+0.0, +0.00%) ubuntu_18.04/arm64: ⚪ 6250.0 (+0.0, +0.00%)
uretprobe__BIO_new_socket ⚪ 60.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 60.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 60.0 (+0.0, +0.00%)
uretprobe__SSL_connect ⚪ 9.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 9.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 9.0 (+0.0, +0.00%)
uretprobe__SSL_do_handshake ⚪ 9.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 9.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 9.0 (+0.0, +0.00%)
uretprobe__SSL_read ⚪ 5247.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 7609.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 2777.0 (+0.0, +0.00%)
uretprobe__SSL_read_ex ⚪ 6004.0 (+0.0, +0.00%) fedora_38/arm64: ⚪ 7600.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 2864.0 (+0.0, +0.00%)
uretprobe__SSL_write ⚪ 3142.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 3260.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 3052.0 (+0.0, +0.00%)
uretprobe__SSL_write_ex ⚪ 6248.3 (+0.0, +0.00%) fedora_38/arm64: ⚪ 7954.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 2983.0 (+0.0, +0.00%)
uretprobe__gnutls_handshake ⚪ 9.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 9.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 9.0 (+0.0, +0.00%)
uretprobe__gnutls_record_recv ⚪ 5582.3 (+0.0, +0.00%) fedora_38/arm64: ⚪ 8321.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 2865.0 (+0.0, +0.00%)
uretprobe__gnutls_record_send ⚪ 4440.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 5233.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 2895.0 (+0.0, +0.00%)

This report was generated based on the complexity data for the current branch yuri.l/USMON-1413_conn_states (pipeline 57362855, commit 9c3ceae) and the base branch main (commit 1c10512). Objects without changes are not reported. Contact #ebpf-platform if you have any questions/feedback.

Table complexity legend: 🔵 - new; ⚪ - unchanged; 🟢 - reduced; 🔴 - increased

@agent-platform-auto-pr
Copy link
Contributor

Static quality checks ❌

Please find below the results from static quality gates

Error

Result Quality gate On disk size On disk size limit On wire size On wire size limit
static_quality_gate_agent_suse_amd64 DataNotFound 801.81MiB DataNotFound 205.03MiB
Gate failure full details
Quality gate Error type Error message
static_quality_gate_agent_suse_amd64 StackTrace Traceback (most recent call last):
File "/go/src/github.com/DataDog/datadog-agent/tasks/quality_gates.py", line 121, in parse_and_trigger_gates
gate_mod.entrypoint(**gate_inputs)
File "/go/src/github.com/DataDog/datadog-agent/tasks/static_quality_gates/static_quality_gate_agent_suse_amd64.py", line 5, in entrypoint
generic_package_agent_quality_gate(
File "/go/src/github.com/DataDog/datadog-agent/tasks/static_quality_gates/lib/package_agent_lib.py", line 69, in generic_package_agent_quality_gate
package_on_wire_size, package_on_disk_size = calculate_package_size(
^^^^^^^^^^^^^^^^^^^^^^^
File "/go/src/github.com/DataDog/datadog-agent/tasks/static_quality_gates/lib/package_agent_lib.py", line 10, in calculate_package_size
extract_package(ctx=ctx, package_os=package_os, package_path=package_path, extract_dir=extract_dir)
File "/go/src/github.com/DataDog/datadog-agent/tasks/libs/package/size.py", line 72, in extract_package
return extract_rpm_package(ctx, package_path, extract_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/go/src/github.com/DataDog/datadog-agent/tasks/libs/package/size.py", line 65, in extract_rpm_package
ctx.run(f"rpm2cpio {package_path}
Successful checks

Info

Result Quality gate On disk size On disk size limit On wire size On wire size limit
static_quality_gate_agent_deb_amd64 788.87MiB 801.8MiB 192.31MiB 202.62MiB
static_quality_gate_agent_deb_arm64 780.22MiB 793.14MiB 174.36MiB 184.51MiB
static_quality_gate_agent_rpm_amd64 788.86MiB 801.79MiB 194.35MiB 205.03MiB
static_quality_gate_agent_rpm_arm64 780.23MiB 793.09MiB 175.87MiB 186.44MiB
static_quality_gate_agent_suse_arm64 780.27MiB 793.14MiB 175.87MiB 186.44MiB
static_quality_gate_dogstatsd_deb_amd64 37.67MiB 47.67MiB 9.78MiB 19.78MiB
static_quality_gate_dogstatsd_deb_arm64 36.28MiB 46.27MiB 8.49MiB 18.49MiB
static_quality_gate_dogstatsd_rpm_amd64 37.67MiB 47.67MiB 9.79MiB 19.79MiB
static_quality_gate_dogstatsd_suse_amd64 37.67MiB 47.67MiB 9.79MiB 19.79MiB
static_quality_gate_iot_agent_deb_amd64 59.29MiB 69.0MiB 14.89MiB 24.8MiB
static_quality_gate_iot_agent_deb_arm64 56.66MiB 66.4MiB 12.87MiB 22.8MiB
static_quality_gate_iot_agent_rpm_amd64 59.29MiB 69.0MiB 14.92MiB 24.8MiB
static_quality_gate_iot_agent_rpm_arm64 56.66MiB 66.4MiB 12.86MiB 22.8MiB
static_quality_gate_iot_agent_suse_amd64 59.29MiB 69.0MiB 14.92MiB 24.8MiB
static_quality_gate_docker_agent_amd64 873.6MiB 886.12MiB 293.87MiB 304.21MiB
static_quality_gate_docker_agent_arm64 888.26MiB 900.79MiB 280.11MiB 290.47MiB
static_quality_gate_docker_agent_jmx_amd64 1.05GiB 1.06GiB 368.96MiB 379.33MiB
static_quality_gate_docker_agent_jmx_arm64 1.05GiB 1.06GiB 351.2MiB 361.55MiB
static_quality_gate_docker_dogstatsd_amd64 45.82MiB 55.78MiB 17.28MiB 27.28MiB
static_quality_gate_docker_dogstatsd_arm64 44.45MiB 54.45MiB 16.16MiB 26.16MiB
static_quality_gate_docker_cluster_agent_amd64 264.99MiB 274.78MiB 106.36MiB 116.28MiB
static_quality_gate_docker_cluster_agent_arm64 280.95MiB 290.82MiB 101.19MiB 111.12MiB

@github-actions github-actions bot added medium review PR review might take time and removed short review PR is simple enough to be reviewed quickly labels Mar 10, 2025
@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Mar 10, 2025

Test changes on VM

Use this command from test-infra-definitions to manually test this PR changes on a VM:

dda inv aws.create-vm --pipeline-id=58481128 --os-family=ubuntu

Note: This applies to commit 1409a78

@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Mar 10, 2025

Static quality checks ✅

Please find below the results from static quality gates

Successful checks

Info

Result Quality gate On disk size On disk size limit On wire size On wire size limit
static_quality_gate_agent_deb_amd64 783.08 MiB 801.8 MiB 190.9 MiB 202.62 MiB
static_quality_gate_agent_deb_arm64 774.48 MiB 793.14 MiB 173.14 MiB 184.51 MiB
static_quality_gate_agent_rpm_amd64 783.08 MiB 801.79 MiB 193.12 MiB 205.03 MiB
static_quality_gate_agent_rpm_arm64 774.51 MiB 793.09 MiB 175.18 MiB 186.44 MiB
static_quality_gate_agent_suse_amd64 783.15 MiB 801.81 MiB 193.12 MiB 205.03 MiB
static_quality_gate_agent_suse_arm64 774.54 MiB 793.14 MiB 175.18 MiB 186.44 MiB
static_quality_gate_dogstatsd_deb_amd64 37.58 MiB 47.67 MiB 9.74 MiB 19.78 MiB
static_quality_gate_dogstatsd_deb_arm64 36.18 MiB 46.27 MiB 8.45 MiB 18.49 MiB
static_quality_gate_dogstatsd_rpm_amd64 37.58 MiB 47.67 MiB 9.75 MiB 19.79 MiB
static_quality_gate_dogstatsd_suse_amd64 37.58 MiB 47.67 MiB 9.75 MiB 19.79 MiB
static_quality_gate_iot_agent_deb_amd64 59.37 MiB 69.0 MiB 14.91 MiB 24.8 MiB
static_quality_gate_iot_agent_deb_arm64 56.72 MiB 66.4 MiB 12.85 MiB 22.8 MiB
static_quality_gate_iot_agent_rpm_amd64 59.37 MiB 69.0 MiB 14.93 MiB 24.8 MiB
static_quality_gate_iot_agent_rpm_arm64 56.72 MiB 66.4 MiB 12.88 MiB 22.8 MiB
static_quality_gate_iot_agent_suse_amd64 59.37 MiB 69.0 MiB 14.93 MiB 24.8 MiB
static_quality_gate_docker_agent_amd64 867.84 MiB 886.12 MiB 291.97 MiB 304.21 MiB
static_quality_gate_docker_agent_arm64 882.52 MiB 900.79 MiB 278.32 MiB 290.47 MiB
static_quality_gate_docker_agent_jmx_amd64 1.04 GiB 1.06 GiB 367.06 MiB 379.33 MiB
static_quality_gate_docker_agent_jmx_arm64 1.04 GiB 1.06 GiB 349.41 MiB 361.55 MiB
static_quality_gate_docker_dogstatsd_amd64 45.73 MiB 55.78 MiB 17.24 MiB 27.28 MiB
static_quality_gate_docker_dogstatsd_arm64 44.36 MiB 54.45 MiB 16.12 MiB 26.16 MiB
static_quality_gate_docker_cluster_agent_amd64 264.87 MiB 274.78 MiB 106.3 MiB 116.28 MiB
static_quality_gate_docker_cluster_agent_arm64 280.8 MiB 290.82 MiB 101.11 MiB 111.12 MiB

@yuri-lipnesh yuri-lipnesh marked this pull request as ready for review March 11, 2025 21:08
@yuri-lipnesh yuri-lipnesh requested a review from a team as a code owner March 11, 2025 21:08
@yuri-lipnesh yuri-lipnesh added the ask-review Ask required teams to review this PR label Mar 11, 2025
Copy link
Contributor

@guyarb guyarb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each dispatcher_entrypoint inserts an entry into connections_states for only one sides of the connection
why do we delete both sides?

@yuri-lipnesh
Copy link
Contributor Author

Each dispatcher_entrypoint inserts an entry into connections_states for only one sides of the connection why do we delete both sides?

Each side of the connection creates two entries in the table, one for the incoming packet and one for the acknowledgment packet. If the peer issues a RST segment, the connection is immediately terminated and there is no acknowledgment, leaving a stale entry in the map. Also, a FIN segment from the peer may not result with a FIN-ACK and leaves a stale entry in the map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ask-review Ask required teams to review this PR changelog/no-changelog component/system-probe medium review PR review might take time qa/done QA done before merge and regressions are covered by tests team/usm The USM team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants