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

fix: agent - eBPF Correct the maximum data push delay #8703

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

yinjiping
Copy link
Contributor

When a delay occurs in the eBPF data push cycle (i.e., the time difference between the current and previous trigger exceeds 100 milliseconds), we set the maximum data push delay to a special value (PUSH_DELAY_EXCEEDED_MARKER: 199000) to indicate that a delay has occurred, instead of providing the specific delay value. The reason is that in a multi-core environment, direct variable assignment in eBPF cannot ensure atomicity. Therefore, we use a special value to signify the occurrence of a delay.

This PR is for:

  • Agent

Affected branches

  • main
  • v6.6
  • v6.5

When a delay occurs in the eBPF data push cycle (i.e., the time difference between
the current and previous trigger exceeds 100 milliseconds), we set the maximum data
push delay to a special value (`PUSH_DELAY_EXCEEDED_MARKER`: 199000) to indicate that
a delay has occurred, instead of providing the specific delay value. The reason is
that in a multi-core environment, direct variable assignment in eBPF cannot ensure
atomicity. Therefore, we use a special value to signify the occurrence of a delay.
@yinjiping yinjiping enabled auto-merge (squash) December 13, 2024 06:26
@yinjiping yinjiping merged commit d3d60a0 into v6.6 Dec 13, 2024
8 checks passed
@yinjiping yinjiping deleted the PUSH_DELAY_EXCEEDED_v6.6 branch December 13, 2024 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants