Skip to content

[CWS] move all etw events in same goroutine as process events#23316

Merged
dd-mergequeue[bot] merged 1 commit into
mainfrom
paulcacheux/fix-windows-race-etw
Mar 1, 2024
Merged

[CWS] move all etw events in same goroutine as process events#23316
dd-mergequeue[bot] merged 1 commit into
mainfrom
paulcacheux/fix-windows-race-etw

Conversation

@paulcacheux

@paulcacheux paulcacheux commented Mar 1, 2024

Copy link
Copy Markdown
Contributor

What does this PR do?

The dispatching of events must all be done in same goroutine, current implementation does it in 2 one for process events, and one for etw/frim events. This PR merges both into the same one to fix race issues.

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

@paulcacheux
paulcacheux marked this pull request as ready for review March 1, 2024 09:21
@paulcacheux
paulcacheux requested a review from a team as a code owner March 1, 2024 09:21
@pr-commenter

pr-commenter Bot commented Mar 1, 2024

Copy link
Copy Markdown

Bloop Bleep... Dogbot Here

Regression Detector Results

Run ID: 12c734bb-6ca2-4801-91c5-5ac35b6853f6
Baseline: 1448b13
Comparison: b72ee4e

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

Experiments with missing or malformed data

  • basic_py_check

Usually, this warning means that there is no usable optimization goal data for that experiment, which could be a result of misconfiguration.

No significant changes in experiment optimization goals

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

There were no significant changes in experiment optimization goals at this confidence level and effect size tolerance.

Experiments ignored for regressions

Regressions in experiments with settings containing erratic: true are ignored.

perf experiment goal Δ mean % Δ mean % CI
file_to_blackhole % cpu utilization +0.68 [-5.90, +7.26]

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI
tcp_syslog_to_blackhole ingress throughput +1.15 [+1.09, +1.21]
file_to_blackhole % cpu utilization +0.68 [-5.90, +7.26]
otel_to_otel_logs ingress throughput +0.02 [-0.59, +0.63]
trace_agent_json ingress throughput +0.00 [-0.02, +0.03]
uds_dogstatsd_to_api ingress throughput -0.00 [-0.00, +0.00]
tcp_dd_logs_filter_exclude ingress throughput -0.00 [-0.00, +0.00]
file_tree memory utilization -0.01 [-0.07, +0.06]
process_agent_real_time_mode memory utilization -0.02 [-0.05, +0.02]
trace_agent_msgpack ingress throughput -0.03 [-0.04, -0.01]
idle memory utilization -0.05 [-0.08, -0.01]
process_agent_standard_check memory utilization -0.05 [-0.08, -0.01]
process_agent_standard_check_with_stats memory utilization -1.03 [-1.06, -0.99]
uds_dogstatsd_to_api_cpu % cpu utilization -1.04 [-2.46, +0.38]

Explanation

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".

@paulcacheux
paulcacheux force-pushed the paulcacheux/fix-windows-race-etw branch from adf0df1 to 984af28 Compare March 1, 2024 10:05
@paulcacheux
paulcacheux force-pushed the paulcacheux/fix-windows-race-etw branch from 984af28 to b72ee4e Compare March 1, 2024 11:41
@paulcacheux

Copy link
Copy Markdown
Contributor Author

/merge

@dd-devflow

dd-devflow Bot commented Mar 1, 2024

Copy link
Copy Markdown

🚂 MergeQueue

Pull request added to the queue.

This build is going to start soon! (estimated merge in less than 50m)

Use /merge -c to cancel this operation!

@dd-mergequeue
dd-mergequeue Bot merged commit 835f3bb into main Mar 1, 2024
@dd-mergequeue
dd-mergequeue Bot deleted the paulcacheux/fix-windows-race-etw branch March 1, 2024 13:28
@agent-platform-auto-pr

Copy link
Copy Markdown
Contributor

The backport to 7.52.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-7.52.x 7.52.x
# Navigate to the new working tree
cd .worktrees/backport-7.52.x
# Create a new branch
git switch --create backport-23316-to-7.52.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 835f3bb785e1e7a9c5c0b2893e1dd0d1fde225ac
# Push it to GitHub
git push --set-upstream origin backport-23316-to-7.52.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-7.52.x

Then, create a pull request where the base branch is 7.52.x and the compare/head branch is backport-23316-to-7.52.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants