datadog-agent
datadog-agent copied to clipboard
[NPM-2841] Use array for process tags
What does this PR do?
goos: linux
goarch: amd64
pkg: github.com/DataDog/datadog-agent/pkg/network/tracer
cpu: 11th Gen Intel(R) Core(TM) i9-11950H @ 2.60GHz
│ new.allocs │ old.allocs │
│ sec/op │ sec/op vs base │
AddProcessInfo-4 296.2n ± 4% 378.7n ± 3% +27.83% (p=0.000 n=10)
│ new.allocs │ old.allocs │
│ B/op │ B/op vs base │
AddProcessInfo-4 104.0 ± 0% 248.0 ± 0% +138.46% (p=0.000 n=10)
│ new.allocs │ old.allocs │
│ allocs/op │ allocs/op vs base │
AddProcessInfo-4 5.000 ± 0% 6.000 ± 0% +20.00% (p=0.000 n=10)
Motivation
Additional Notes
Possible Drawbacks / Trade-offs
Describe how to test/QA your changes
Reviewer's Checklist
- [x] If known, an appropriate milestone has been selected; otherwise the
Triage
milestone is set. - [ ] Use the
major_change
label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote. - [x] A release note has been added or the
changelog/no-changelog
label has been applied. - [x] Changed code has automated tests for its functionality.
- [x] Adequate QA/testing plan information is provided if the
qa/skip-qa
label is not applied. - [x] At least one
team/..
label has been applied, indicating the team(s) that should QA this change. - [ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
- [ ] If applicable, the
need-change/operator
andneed-change/helm
labels have been applied. - [ ] If applicable, the
k8s/<min-version>
label, indicating the lowest Kubernetes version compatible with this feature. - [ ] If applicable, the config template has been updated.
Bloop Bleep... Dogbot Here
Regression Detector Results
Run ID: 629044fd-1f43-4d5d-9ca8-c46ba5596b2c
Baseline: 5222280fb9105593d8d5a29ced70fc54a72d8c59
Comparison: 2146c182f9d2212cbd7c32acd31521a25ddc156b
Total datadog-agent
CPUs: 7
Explanation
A regression test is an integrated performance test for datadog-agent
in a repeatable rig, with varying configuration for datadog-agent
. What follows is a statistical summary of a brief datadog-agent
run for each configuration across SHAs given above. The goal of these tests are to determine quickly if datadog-agent
performance is changed and to what degree by a pull request.
Because a target's optimization goal performance in each experiment will vary somewhat each time it is run, we can only estimate mean differences in optimization goal relative to the baseline target. We express these differences as a percentage change relative to the baseline target, denoted "Δ mean %". These estimates are made to a precision that balances accuracy and cost control. We represent this precision as a 90.00% confidence interval denoted "Δ mean % CI": there is a 90.00% chance that the true value of "Δ mean %" is in that interval.
We decide whether a change in performance is a "regression" -- a change worth investigating further -- if both of the following two criteria are true:
-
The estimated |Δ mean %| ≥ 5.00%. This criterion intends to answer the question "Does the estimated change in mean optimization goal performance have a meaningful impact on your customers?". We assume that when |Δ mean %| < 5.00%, the impact on your customers is not meaningful. We also assume that a performance change in optimization goal is worth investigating whether it is an increase or decrease, so long as the magnitude of the change is sufficiently large.
-
Zero is not in the 90.00% confidence interval "Δ mean % CI" about "Δ mean %". This statement is equivalent to saying that there is at least a 90.00% chance that the mean difference in optimization goal is not zero. This criterion intends to answer the question, "Is there a statistically significant difference in mean optimization goal performance?". It also means there is no more than a 10.00% chance this criterion reports a statistically significant difference when the true difference in mean optimization goal is zero -- a "false positive". We assume you are willing to accept a 10.00% chance of inaccurately detecting a change in performance when no true difference exists.
The table below, if present, lists those experiments that have experienced a statistically significant change in mean optimization goal performance between baseline and comparison SHAs with 90.00% confidence OR have been detected as newly erratic. Negative values of "Δ mean %" mean that baseline is faster, whereas positive values of "Δ mean %" mean that comparison is faster. Results that do not exhibit more than a ±5.00% change in their mean optimization goal are discarded. An experiment is erratic if its coefficient of variation is greater than 0.1. The abbreviated table will be omitted if no interesting change is observed.
No interesting changes in experiment optimization goals with confidence ≥ 90.00% and |Δ mean %| ≥ 5.00%.
Fine details of change detection per experiment.
experiment | goal | Δ mean % | Δ mean % CI | confidence |
---|---|---|---|---|
tcp_syslog_to_blackhole | ingress throughput | +0.70 | [+0.57, +0.83] | 100.00% |
trace_agent_msgpack | ingress throughput | +0.05 | [-0.07, +0.17] | 48.34% |
idle | egress throughput | +0.03 | [-2.34, +2.40] | 1.69% |
dogstatsd_string_interner_8MiB_10k | ingress throughput | +0.01 | [-0.04, +0.07] | 30.15% |
uds_dogstatsd_to_api | ingress throughput | +0.01 | [-0.13, +0.15] | 8.89% |
dogstatsd_string_interner_8MiB_1k | ingress throughput | +0.01 | [-0.09, +0.11] | 8.08% |
dogstatsd_string_interner_8MiB_100 | ingress throughput | +0.01 | [-0.12, +0.13] | 5.66% |
dogstatsd_string_interner_128MiB_1k | ingress throughput | -0.00 | [-0.14, +0.14] | 0.11% |
dogstatsd_string_interner_64MiB_1k | ingress throughput | -0.00 | [-0.13, +0.13] | 0.13% |
dogstatsd_string_interner_128MiB_100 | ingress throughput | -0.00 | [-0.14, +0.14] | 0.36% |
dogstatsd_string_interner_64MiB_100 | ingress throughput | -0.00 | [-0.14, +0.14] | 0.59% |
dogstatsd_string_interner_8MiB_50k | ingress throughput | -0.02 | [-0.06, +0.02] | 52.01% |
otel_to_otel_logs | ingress throughput | -0.02 | [-1.60, +1.56] | 1.60% |
dogstatsd_string_interner_8MiB_100k | ingress throughput | -0.02 | [-0.07, +0.02] | 68.27% |
tcp_dd_logs_filter_exclude | ingress throughput | -0.03 | [-0.19, +0.13] | 22.28% |
trace_agent_json | ingress throughput | -0.05 | [-0.18, +0.07] | 53.26% |
file_to_blackhole | egress throughput | -0.28 | [-1.29, +0.73] | 35.28% |
file_tree | egress throughput | -0.46 | [-2.25, +1.32] | 33.22% |
Regression Detector
Regression Detector Results
Run ID: 78e2a47b-c7ee-4d17-81a0-2e0c9e2956d9 Baseline: a5f7a7f62437561b6ab67f2a79a2fc357945b17c Comparison: f34979386c61fb6c0ca6a330cb87f61eea81416f
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
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 | +18.86 | [+12.59, +25.14] |
Fine details of change detection per experiment
perf | experiment | goal | Δ mean % | Δ mean % CI |
---|---|---|---|---|
❌ | file_to_blackhole | % cpu utilization | +18.86 | [+12.59, +25.14] |
➖ | tcp_syslog_to_blackhole | ingress throughput | +9.05 | [-12.93, +31.02] |
➖ | pycheck_1000_100byte_tags | % cpu utilization | +1.53 | [-3.34, +6.39] |
➖ | basic_py_check | % cpu utilization | +0.78 | [-1.70, +3.27] |
➖ | file_tree | memory utilization | +0.72 | [+0.61, +0.82] |
➖ | uds_dogstatsd_to_api_cpu | % cpu utilization | +0.69 | [-2.18, +3.55] |
➖ | idle | memory utilization | +0.27 | [+0.23, +0.31] |
➖ | tcp_dd_logs_filter_exclude | ingress throughput | +0.01 | [-0.03, +0.04] |
➖ | trace_agent_json | ingress throughput | -0.00 | [-0.02, +0.01] |
➖ | trace_agent_msgpack | ingress throughput | -0.02 | [-0.03, -0.01] |
➖ | uds_dogstatsd_to_api | ingress throughput | -0.03 | [-0.23, +0.18] |
➖ | otel_to_otel_logs | ingress throughput | -0.29 | [-0.69, +0.11] |
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:
-
Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.
-
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.
-
Its configuration does not mark it "erratic".
Test changes on VM
Use this command from test-infra-definitions to manually test this PR changes on a VM:
inv create-vm --pipeline-id=34201979 --os-family=ubuntu
/merge
:steam_locomotive: MergeQueue
This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove
command.
Use /merge -c
to cancel this operation!
:steam_locomotive: MergeQueue
Pull request added to the queue.
This build is going to start soon! (estimated merge in less than 26m)
Use /merge -c
to cancel this operation!