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

usm, npm, classification: Fix a leak in connection_protocol #31153

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

guyarb
Copy link
Contributor

@guyarb guyarb commented Nov 16, 2024

What does this PR do?

If USM was enabled, but classification feature of NPM was disabled, we had a leak in connection_protocol map, as both USM and NPM would have mark the connection as visible from their probes (NPM would have done that from 'update_conn_stats'), but the probe to clean the entry ('kretprobe__tcp_close_clean_protocols') wasn't enabled.

To clean an entry, we need all modules to mark it as ready for deletion, but only USM would have done that. The fix it to prevent NPM from processing the protocol if classification is disabled. Hence, NPM won't mark the conneciton as accessible from it, and we will only need USM to delete it

Motivation

Fixing a leak in eBPF map.

Describe how to test/QA your changes

  1. Run system-probe with the following configuration
network_config:
  enabled: false
  enable_protocol_classification: false 
service_monitoring_config:
  enabled: true
  1. Run an http server python -m http.server 8080
  2. Run a clien curl http://localhost:8080
  3. Verify using BPFTOOL that there is no leak
id=$(sudo bpftool map list | grep connection_pro | awk '{print $1}' | tr -d :)
sudo bpftool map dump id $id | grep 8080 -A 14 -B 7

Repeat the test once on main and once on this branch.
On main expect to see an entry, on this branch expect to have no result

Possible Drawbacks / Trade-offs

Additional Notes

If USM was enabled, but classification feature of NPM was disabled, we had a leak
in connection_protocol map, as both USM and NPM would have mark the connection as visible
from their probes (NPM would have done that from 'update_conn_stats'), but the probe
to clean the entry ('kretprobe__tcp_close_clean_protocols') wasn't enabled.

To clean an entry, we need all modules to mark it as ready for deletion, but only USM
would have done that. The fix it to prevent NPM from processing the protocol if classification
is disabled. Hence, NPM won't mark the conneciton as accessible from it, and we will only need
USM to delete it
@guyarb guyarb added changelog/no-changelog team/networks team/usm The USM team qa/done QA done before merge and regressions are covered by tests labels Nov 16, 2024
@guyarb guyarb requested review from a team as code owners November 16, 2024 19:40
@guyarb guyarb requested a review from mbakht November 16, 2024 19:40
@github-actions github-actions bot added component/system-probe short review PR is simple enough to be reviewed quickly labels Nov 16, 2024
@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Nov 16, 2024

[Fast Unit Tests Report]

On pipeline 49211483 (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 Nov 16, 2024

eBPF complexity changes

Summary result: ✅ - stable

  • Highest complexity change (%): +0.00%
  • Highest complexity change (abs.): +0 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
tracer details

tracer [programs with changes]

Program Avg. complexity Distro with highest complexity Distro with lowest complexity
kprobe__skb_consume_udp 🟢 409.0 (-356.0, -46.54%) amazon_5.4/arm64: 🟢 409.0 (-344.0, -45.68%) amazon_5.4/arm64: 🟢 409.0 (-344.0, -45.68%)
kprobe__skb_free_datagram_locked 🟢 403.0 (-306.7, -43.21%) amazon_5.4/arm64: 🟢 403.0 (-302.0, -42.84%) amazon_5.4/arm64: 🟢 403.0 (-302.0, -42.84%)
kprobe__tcp_finish_connect 🟢 630.7 (-280.0, -30.75%) fedora_38/arm64: 🟢 732.0 (-286.0, -28.09%) amazon_5.4/arm64: 🟢 580.0 (-271.0, -31.84%)
kretprobe__inet_csk_accept 🟢 820.0 (-923.3, -52.96%) fedora_38/arm64: 🟢 916.0 (-900.0, -49.56%) amazon_5.4/arm64: 🟢 772.0 (-929.0, -54.61%)
kretprobe__ip6_make_skb 🟢 1278.7 (-352.3, -21.60%) fedora_38/arm64: 🟢 1717.0 (-320.0, -15.71%) amazon_5.4/arm64: 🟢 934.0 (-393.0, -29.62%)
kretprobe__ip_make_skb 🟢 830.7 (-318.0, -27.68%) fedora_38/arm64: 🟢 986.0 (-317.0, -24.33%) amazon_5.4/arm64: 🟢 753.0 (-342.0, -31.23%)
kretprobe__tcp_read_sock 🟢 729.3 (-307.3, -29.65%) fedora_38/arm64: 🟢 830.0 (-298.0, -26.42%) amazon_5.4/arm64: 🟢 679.0 (-313.0, -31.55%)
kretprobe__tcp_recvmsg 🟢 729.3 (-307.3, -29.65%) fedora_38/arm64: 🟢 830.0 (-298.0, -26.42%) amazon_5.4/arm64: 🟢 679.0 (-313.0, -31.55%)
kretprobe__tcp_sendmsg 🟢 729.3 (-307.3, -29.65%) fedora_38/arm64: 🟢 830.0 (-298.0, -26.42%) amazon_5.4/arm64: 🟢 679.0 (-313.0, -31.55%)
kretprobe__tcp_sendpage 🟢 729.3 (-307.3, -29.65%) fedora_38/arm64: 🟢 830.0 (-298.0, -26.42%) amazon_5.4/arm64: 🟢 679.0 (-313.0, -31.55%)
kretprobe__udp_recvmsg_pre_4_7_0 🟢 1133.0 (-258.3, -18.57%) fedora_38/arm64: 🟢 1357.0 (-259.0, -16.03%) amazon_5.4/arm64: 🟢 872.0 (-265.0, -23.31%)
kretprobe__udp_sendpage 🟢 625.3 (-268.7, -30.05%) fedora_38/arm64: 🟢 708.0 (-257.0, -26.63%) amazon_5.4/arm64: 🟢 584.0 (-286.0, -32.87%)
kretprobe__udpv6_recvmsg_pre_4_7_0 🟢 1133.0 (-258.3, -18.57%) fedora_38/arm64: 🟢 1357.0 (-259.0, -16.03%) amazon_5.4/arm64: 🟢 872.0 (-265.0, -23.31%)

tracer [programs without changes]

Program Avg. complexity Distro with highest complexity Distro with lowest complexity
kprobe__inet6_bind ⚪ 121.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 121.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 121.0 (+0.0, +0.00%)
kprobe__inet_bind ⚪ 121.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 121.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 121.0 (+0.0, +0.00%)
kprobe__inet_csk_listen_stop ⚪ 67.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 67.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 67.0 (+0.0, +0.00%)
kprobe__ip6_make_skb ⚪ 77.5 (+0.0, +0.00%) amazon_5.4/x86_64: ⚪ 78.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 77.0 (+0.0, +0.00%)
kprobe__ip6_make_skb__pre_4_7_0 ⚪ 75.5 (+0.0, +0.00%) amazon_5.4/x86_64: ⚪ 76.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 75.0 (+0.0, +0.00%)
kprobe__ip6_make_skb__pre_5_18_0 ⚪ 71.5 (+0.0, +0.00%) amazon_5.4/x86_64: ⚪ 76.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 67.0 (+0.0, +0.00%)
kprobe__ip_make_skb ⚪ 91.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 91.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 91.0 (+0.0, +0.00%)
kprobe__ip_make_skb__pre_4_18_0 ⚪ 67.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 67.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 67.0 (+0.0, +0.00%)
kprobe__tcp_close ⚪ 952.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 1284.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 787.0 (+0.0, +0.00%)
kprobe__tcp_connect ⚪ 457.3 (+0.0, +0.00%) fedora_38/arm64: ⚪ 538.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 417.0 (+0.0, +0.00%)
kprobe__tcp_done ⚪ 450.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 528.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 412.0 (+0.0, +0.00%)
kprobe__tcp_read_sock ⚪ 23.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 23.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 23.0 (+0.0, +0.00%)
kprobe__tcp_recvmsg ⚪ 28.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 28.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 28.0 (+0.0, +0.00%)
kprobe__tcp_recvmsg__pre_4_1_0 ⚪ 28.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 28.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 28.0 (+0.0, +0.00%)
kprobe__tcp_recvmsg__pre_5_19_0 ⚪ 28.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 28.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 28.0 (+0.0, +0.00%)
kprobe__tcp_retransmit_skb ⚪ 33.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 33.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 33.0 (+0.0, +0.00%)
kprobe__tcp_sendmsg ⚪ 24.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 24.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 24.0 (+0.0, +0.00%)
kprobe__tcp_sendmsg__pre_4_1_0 ⚪ 24.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 24.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 24.0 (+0.0, +0.00%)
kprobe__tcp_sendpage ⚪ 24.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 24.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 24.0 (+0.0, +0.00%)
kprobe__udp_destroy_sock ⚪ 1269.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 2039.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 885.0 (+0.0, +0.00%)
kprobe__udp_recvmsg ⚪ 28.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 28.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 28.0 (+0.0, +0.00%)
kprobe__udp_recvmsg_pre_4_1_0 ⚪ 30.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 30.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 30.0 (+0.0, +0.00%)
kprobe__udp_recvmsg_pre_4_7_0 ⚪ 30.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 30.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 30.0 (+0.0, +0.00%)
kprobe__udp_recvmsg_pre_5_19_0 ⚪ 28.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 28.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 28.0 (+0.0, +0.00%)
kprobe__udp_sendpage ⚪ 23.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 23.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 23.0 (+0.0, +0.00%)
kprobe__udpv6_destroy_sock ⚪ 1269.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 2039.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 885.0 (+0.0, +0.00%)
kprobe__udpv6_recvmsg ⚪ 28.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 28.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 28.0 (+0.0, +0.00%)
kprobe__udpv6_recvmsg_pre_4_1_0 ⚪ 30.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 30.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 30.0 (+0.0, +0.00%)
kprobe__udpv6_recvmsg_pre_4_7_0 ⚪ 30.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 30.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 30.0 (+0.0, +0.00%)
kprobe__udpv6_recvmsg_pre_5_19_0 ⚪ 28.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 28.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 28.0 (+0.0, +0.00%)
kretprobe__inet6_bind ⚪ 205.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 205.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 205.0 (+0.0, +0.00%)
kretprobe__inet_bind ⚪ 205.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 205.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 205.0 (+0.0, +0.00%)
kretprobe__tcp_close_clean_protocols ⚪ 212.4 (+0.0, +0.00%) centos_8/arm64: ⚪ 225.0 (+0.0, +0.00%) debian_10/arm64: ⚪ 199.0 (+0.0, +0.00%)
kretprobe__tcp_close_flush ⚪ 216.4 (+0.0, +0.00%) debian_10/arm64: ⚪ 217.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 216.0 (+0.0, +0.00%)
kretprobe__tcp_done_flush ⚪ 216.4 (+0.0, +0.00%) debian_10/arm64: ⚪ 217.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 216.0 (+0.0, +0.00%)
kretprobe__tcp_retransmit_skb ⚪ 475.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 559.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 434.0 (+0.0, +0.00%)
kretprobe__udp_destroy_sock ⚪ 217.4 (+0.0, +0.00%) debian_10/arm64: ⚪ 218.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 217.0 (+0.0, +0.00%)
kretprobe__udp_recvmsg ⚪ 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%)
kretprobe__udpv6_destroy_sock ⚪ 217.4 (+0.0, +0.00%) debian_10/arm64: ⚪ 218.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 217.0 (+0.0, +0.00%)
kretprobe__udpv6_recvmsg ⚪ 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%)
socket__classifier_dbs ⚪ 2427.0 (+0.0, +0.00%) fedora_38/arm64: ⚪ 2434.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 2420.0 (+0.0, +0.00%)
socket__classifier_entry ⚪ 2547.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 2562.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 2534.0 (+0.0, +0.00%)
socket__classifier_grpc ⚪ 6754.0 (+0.0, +0.00%) fedora_38/arm64: ⚪ 6775.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 6719.0 (+0.0, +0.00%)
socket__classifier_queues ⚪ 7023.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 8247.0 (+0.0, +0.00%) amazon_5.4/arm64: ⚪ 4617.0 (+0.0, +0.00%)
tracepoint__net__net_dev_queue ⚪ 971.7 (+0.0, +0.00%) fedora_38/arm64: ⚪ 1183.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 800.0 (+0.0, +0.00%)
tracer_fentry details

tracer_fentry [programs with changes]

Program Avg. complexity Distro with highest complexity Distro with lowest complexity
inet_csk_accept_exit 🟢 852.0 (-920.5, -51.93%) fedora_38/arm64: 🟢 924.0 (-900.0, -49.34%) centos_8/arm64: 🟢 780.0 (-941.0, -54.68%)
skb_consume_udp 🟢 474.0 (-309.0, -39.46%) fedora_38/arm64: 🟢 485.0 (-308.0, -38.84%) centos_8/arm64: 🟢 463.0 (-310.0, -40.10%)
tcp_finish_connect 🟢 668.0 (-285.0, -29.91%) fedora_38/arm64: 🟢 744.0 (-286.0, -27.77%) centos_8/arm64: 🟢 592.0 (-284.0, -32.42%)
tcp_recvmsg_exit 🟢 803.0 (-328.0, -29.00%) fedora_38/arm64: 🟢 803.0 (-328.0, -29.00%) fedora_38/arm64: 🟢 803.0 (-328.0, -29.00%)
tcp_recvmsg_exit_pre_5_19_0 🟢 663.0 (-323.0, -32.76%) centos_8/arm64: 🟢 663.0 (-323.0, -32.76%) centos_8/arm64: 🟢 663.0 (-323.0, -32.76%)
tcp_sendmsg_exit 🟢 733.0 (-325.5, -30.75%) fedora_38/arm64: 🟢 803.0 (-328.0, -29.00%) centos_8/arm64: 🟢 663.0 (-323.0, -32.76%)
tcp_sendpage_exit 🟢 733.0 (-325.5, -30.75%) fedora_38/arm64: 🟢 803.0 (-328.0, -29.00%) centos_8/arm64: 🟢 663.0 (-323.0, -32.76%)
udp_sendmsg_exit 🟢 247.0 (-256.0, -50.89%) centos_8/arm64: 🟢 247.0 (-245.0, -49.80%) centos_8/arm64: 🟢 247.0 (-245.0, -49.80%)
udp_sendpage_exit 🟢 643.0 (-261.0, -28.87%) fedora_38/arm64: 🟢 705.0 (-258.0, -26.79%) centos_8/arm64: 🟢 581.0 (-264.0, -31.24%)
udpv6_sendmsg_exit 🟢 247.0 (-256.0, -50.89%) centos_8/arm64: 🟢 247.0 (-245.0, -49.80%) centos_8/arm64: 🟢 247.0 (-245.0, -49.80%)

tracer_fentry [programs without changes]

Program Avg. complexity Distro with highest complexity Distro with lowest complexity
inet6_bind_enter ⚪ 145.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 145.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 145.0 (+0.0, +0.00%)
inet6_bind_exit ⚪ 220.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 220.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 220.0 (+0.0, +0.00%)
inet_bind_enter ⚪ 145.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 145.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 145.0 (+0.0, +0.00%)
inet_bind_exit ⚪ 220.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 220.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 220.0 (+0.0, +0.00%)
inet_csk_listen_stop_enter ⚪ 84.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 84.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 84.0 (+0.0, +0.00%)
kprobe__udp_send_skb ⚪ 958.5 (+0.0, +0.00%) fedora_38/arm64: ⚪ 1133.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 784.0 (+0.0, +0.00%)
kprobe__udp_v6_send_skb ⚪ 1234.5 (+0.0, +0.00%) fedora_38/arm64: ⚪ 1522.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 947.0 (+0.0, +0.00%)
tcp_close ⚪ 1048.0 (+0.0, +0.00%) fedora_38/arm64: ⚪ 1297.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 799.0 (+0.0, +0.00%)
tcp_close_exit ⚪ 230.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 230.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 230.0 (+0.0, +0.00%)
tcp_connect ⚪ 487.5 (+0.0, +0.00%) fedora_38/arm64: ⚪ 547.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 428.0 (+0.0, +0.00%)
tcp_retransmit_skb ⚪ 44.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 44.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 44.0 (+0.0, +0.00%)
tcp_retransmit_skb_exit ⚪ 508.5 (+0.0, +0.00%) fedora_38/arm64: ⚪ 571.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 446.0 (+0.0, +0.00%)
udp_destroy_sock ⚪ 1472.0 (+0.0, +0.00%) fedora_38/arm64: ⚪ 2047.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 897.0 (+0.0, +0.00%)
udp_destroy_sock_exit ⚪ 230.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 230.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 230.0 (+0.0, +0.00%)
udp_recvmsg ⚪ 40.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 40.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 40.0 (+0.0, +0.00%)
udp_recvmsg_exit ⚪ 23.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 23.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 23.0 (+0.0, +0.00%)
udp_recvmsg_exit_pre_5_19_0 ⚪ 23.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 23.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 23.0 (+0.0, +0.00%)
udpv6_destroy_sock ⚪ 1472.0 (+0.0, +0.00%) fedora_38/arm64: ⚪ 2047.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 897.0 (+0.0, +0.00%)
udpv6_destroy_sock_exit ⚪ 230.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 230.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 230.0 (+0.0, +0.00%)
udpv6_recvmsg ⚪ 40.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 40.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 40.0 (+0.0, +0.00%)
udpv6_recvmsg_exit ⚪ 23.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 23.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 23.0 (+0.0, +0.00%)
udpv6_recvmsg_exit_pre_5_19_0 ⚪ 23.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 23.0 (+0.0, +0.00%) centos_8/arm64: ⚪ 23.0 (+0.0, +0.00%)

This report was generated based on the complexity data for the current branch guy.arbitman/fix-map-leak (pipeline 49211483, commit a449a43) and the base branch main (commit dd3da58). Objects without changes are not reported. Contact #ebpf-platform if you have any questions/feedback.

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

Copy link

cit-pr-commenter bot commented Nov 16, 2024

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: d2aa3b2a-386d-4a20-b496-97a85d4f1d1c

Baseline: dd3da58
Comparison: a449a43
Diff

Optimization Goals: ✅ No significant changes detected

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
basic_py_check % cpu utilization +3.59 [-0.29, +7.47] 1 Logs
pycheck_lots_of_tags % cpu utilization +0.54 [-2.90, +3.99] 1 Logs
file_tree memory utilization +0.32 [+0.19, +0.45] 1 Logs
otel_to_otel_logs ingress throughput +0.24 [-0.43, +0.91] 1 Logs
file_to_blackhole_1000ms_latency egress throughput +0.21 [-0.56, +0.98] 1 Logs
file_to_blackhole_1000ms_latency_linear_load egress throughput +0.08 [-0.38, +0.54] 1 Logs
file_to_blackhole_500ms_latency egress throughput +0.05 [-0.72, +0.83] 1 Logs
file_to_blackhole_100ms_latency egress throughput +0.05 [-0.70, +0.81] 1 Logs
file_to_blackhole_0ms_latency egress throughput +0.02 [-0.79, +0.82] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput +0.00 [-0.01, +0.01] 1 Logs
uds_dogstatsd_to_api ingress throughput -0.01 [-0.11, +0.09] 1 Logs
file_to_blackhole_300ms_latency egress throughput -0.01 [-0.64, +0.61] 1 Logs
quality_gate_idle memory utilization -0.11 [-0.15, -0.06] 1 Logs bounds checks dashboard
uds_dogstatsd_to_api_cpu % cpu utilization -0.18 [-0.92, +0.55] 1 Logs
tcp_syslog_to_blackhole ingress throughput -0.27 [-0.33, -0.20] 1 Logs
quality_gate_idle_all_features memory utilization -0.74 [-0.85, -0.63] 1 Logs bounds checks dashboard

Bounds Checks: ❌ Failed

perf experiment bounds_check_name replicates_passed links
file_to_blackhole_1000ms_latency lost_bytes 0/10
file_to_blackhole_0ms_latency lost_bytes 9/10
file_to_blackhole_0ms_latency 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 memory_usage 10/10 bounds checks dashboard
quality_gate_idle_all_features memory_usage 10/10 bounds checks dashboard

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_all_features, bounds check memory_usage: 10/10 replicas passed. Gate passed.

@guyarb
Copy link
Contributor Author

guyarb commented Nov 18, 2024

/merge

@dd-devflow
Copy link

dd-devflow bot commented Nov 18, 2024

Devflow running: /merge

View all feedbacks in Devflow UI.


2024-11-18 16:02:46 UTC ℹ️ MergeQueue: pull request added to the queue

The median merge time in main is 25m.

@dd-mergequeue dd-mergequeue bot merged commit d9067af into main Nov 18, 2024
294 checks passed
@dd-mergequeue dd-mergequeue bot deleted the guy.arbitman/fix-map-leak branch November 18, 2024 17:46
@github-actions github-actions bot added this to the 7.61.0 milestone Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog component/system-probe qa/done QA done before merge and regressions are covered by tests short review PR is simple enough to be reviewed quickly team/networks team/usm The USM team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants