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

Network events cause high CPU and latency #3986

Open
15 tasks
yanivagman opened this issue Apr 18, 2024 · 0 comments
Open
15 tasks

Network events cause high CPU and latency #3986

yanivagman opened this issue Apr 18, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@yanivagman
Copy link
Collaborator

yanivagman commented Apr 18, 2024

Description

When enabling some of the network events (e.g. net_packet_dns_request and net_packet_dns_request events) on environments that have network intensive workloads, CPU usage of these workloads becomes high, and network throughput lower.
Collecting some statistics with bpftool on such an environment shows that our network programs are at the top (when sorted by run_cnt). More specifically, these programs: cgroup_bpf_run_filter_skb, trace_security_socket_sendmsg, trace_security_socket_recvmsg, cgroup_skb_egress, cgroup_skb_ingress.

We need to either optimize those programs or find a different approach to collect network events.

Affected events:

  • net_packet_dns
  • net_packet_dns_request
  • net_packet_dns_response
  • net_packet_ipv4
  • net_packet_ipv6
  • net_packet_tcp
  • net_packet_udp
  • net_packet_icmp
  • net_packet_icmpv6
  • net_packet_http
  • net_packet_http_request
  • net_packet_http_response
  • net_flow_tcp_begin
  • net_flow_tcp_end

Affected features:

  • pcap

Output of tracee version:

(paste your output here)

Output of uname -a:

(paste your output here)

Additional details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants