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 #8694

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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 requested a review from sharang December 12, 2024 14:07
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.

1 participant