-
Notifications
You must be signed in to change notification settings - Fork 140
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
[Profiler] Signal-based profiler/Non-Signal-based: prevent deadlock #5808
[Profiler] Signal-based profiler/Non-Signal-based: prevent deadlock #5808
Conversation
Execution-Time Benchmarks Report ⏱️Execution-time results for samples comparing the following branches/commits: Execution-time benchmarks measure the whole time it takes to execute a program. And are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are shown in red. The following thresholds were used for comparing the execution times:
Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard. Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph). gantt
title Execution time (ms) FakeDbCommand (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5808) - mean (75ms) : 61, 89
. : milestone, 75,
master - mean (72ms) : 62, 82
. : milestone, 72,
section CallTarget+Inlining+NGEN
This PR (5808) - mean (1,054ms) : 1034, 1074
. : milestone, 1054,
master - mean (1,057ms) : 1037, 1078
. : milestone, 1057,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5808) - mean (109ms) : 105, 113
. : milestone, 109,
master - mean (109ms) : 106, 112
. : milestone, 109,
section CallTarget+Inlining+NGEN
This PR (5808) - mean (754ms) : 729, 778
. : milestone, 754,
master - mean (758ms) : 735, 781
. : milestone, 758,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5808) - mean (93ms) : 90, 96
. : milestone, 93,
master - mean (93ms) : 89, 97
. : milestone, 93,
section CallTarget+Inlining+NGEN
This PR (5808) - mean (699ms) : 677, 721
. : milestone, 699,
master - mean (702ms) : 680, 724
. : milestone, 702,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5808) - mean (193ms) : 189, 196
. : milestone, 193,
master - mean (192ms) : 189, 196
. : milestone, 192,
section CallTarget+Inlining+NGEN
This PR (5808) - mean (1,168ms) : 1098, 1238
. : milestone, 1168,
master - mean (1,165ms) : 1122, 1207
. : milestone, 1165,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5808) - mean (277ms) : 273, 281
. : milestone, 277,
master - mean (276ms) : 271, 281
. : milestone, 276,
section CallTarget+Inlining+NGEN
This PR (5808) - mean (960ms) : 804, 1117
. : milestone, 960,
master - mean (915ms) : 881, 949
. : milestone, 915,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5808) - mean (266ms) : 262, 271
. : milestone, 266,
master - mean (266ms) : 262, 269
. : milestone, 266,
section CallTarget+Inlining+NGEN
This PR (5808) - mean (1,094ms) : crit, 685, 1502
. : crit, milestone, 1094,
master - mean (901ms) : 880, 922
. : milestone, 901,
|
Datadog ReportBranch report: ✅ 0 Failed, 342193 Passed, 2020 Skipped, 16h 14m 18.22s Total Time ⌛ Performance Regressions vs Default Branch (2) |
8908b83
to
e9c80b0
Compare
Benchmarks Report for tracer 🐌Benchmarks for #5808 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.Trace.ActivityBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ElasticsearchBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SpanBenchmark - Slower
|
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑netcoreapp3.1 | 1.128 | 577.11 | 650.70 |
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.197 | 582.70 | 486.82 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 424ns | 0.1ns | 0.387ns | 0.00805 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 578ns | 0.634ns | 2.46ns | 0.00775 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 596ns | 0.639ns | 2.48ns | 0.0916 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 583ns | 0.484ns | 1.88ns | 0.0097 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 664ns | 0.246ns | 0.951ns | 0.00936 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 877ns | 0.217ns | 0.839ns | 0.104 | 0 | 0 | 658 B |
#5808 | StartFinishSpan |
net6.0 | 405ns | 0.197ns | 0.764ns | 0.00799 | 0 | 0 | 576 B |
#5808 | StartFinishSpan |
netcoreapp3.1 | 652ns | 1.14ns | 4.4ns | 0.00789 | 0 | 0 | 576 B |
#5808 | StartFinishSpan |
net472 | 600ns | 1.19ns | 4.63ns | 0.0915 | 0 | 0 | 578 B |
#5808 | StartFinishScope |
net6.0 | 487ns | 0.318ns | 1.23ns | 0.00976 | 0 | 0 | 696 B |
#5808 | StartFinishScope |
netcoreapp3.1 | 722ns | 0.531ns | 2.06ns | 0.00942 | 0 | 0 | 696 B |
#5808 | StartFinishScope |
net472 | 844ns | 0.346ns | 1.29ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #5808
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑netcoreapp3.1
1.114
1,046.54
939.61
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑netcoreapp3.1 | 1.114 | 1,046.54 | 939.61 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 649ns | 0.236ns | 0.914ns | 0.00981 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 1.05μs | 0.53ns | 1.98ns | 0.00946 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.12μs | 0.497ns | 1.92ns | 0.104 | 0 | 0 | 658 B |
#5808 | RunOnMethodBegin |
net6.0 | 686ns | 0.317ns | 1.23ns | 0.00964 | 0 | 0 | 696 B |
#5808 | RunOnMethodBegin |
netcoreapp3.1 | 940ns | 0.373ns | 1.44ns | 0.0091 | 0 | 0 | 696 B |
#5808 | RunOnMethodBegin |
net472 | 1.12μs | 0.285ns | 1.11ns | 0.104 | 0 | 0 | 658 B |
f03bc33
to
423cab1
Compare
423cab1
to
569095a
Compare
Throughput/Crank Report ⚡Throughput results for AspNetCoreSimpleController comparing the following branches/commits: Cases where throughput results for the PR are worse than latest master (5% drop or greater), results are shown in red. Note that these results are based on a single point-in-time result for each branch. For full results, see one of the many, many dashboards! gantt
title Throughput Linux x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5808) (11.668M) : 0, 11668469
master (11.465M) : 0, 11464603
benchmarks/2.9.0 (11.588M) : 0, 11588162
section Automatic
This PR (5808) (7.745M) : 0, 7745427
master (7.734M) : 0, 7734479
benchmarks/2.9.0 (8.134M) : 0, 8134412
section Trace stats
master (8.035M) : 0, 8035402
section Manual
master (11.648M) : 0, 11647573
section Manual + Automatic
This PR (5808) (7.202M) : 0, 7201764
master (7.259M) : 0, 7259378
section DD_TRACE_ENABLED=0
master (10.837M) : 0, 10836551
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5808) (9.359M) : 0, 9358552
master (9.685M) : 0, 9684942
benchmarks/2.9.0 (9.524M) : 0, 9523985
section Automatic
This PR (5808) (6.399M) : 0, 6398944
master (6.507M) : 0, 6507084
section Trace stats
master (6.822M) : 0, 6821902
section Manual
master (9.550M) : 0, 9550109
section Manual + Automatic
This PR (5808) (6.197M) : 0, 6196938
master (6.049M) : 0, 6048871
section DD_TRACE_ENABLED=0
master (9.024M) : 0, 9024465
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5808) (10.081M) : 0, 10080517
section Automatic
This PR (5808) (7.179M) : 0, 7178837
section Manual + Automatic
This PR (5808) (6.736M) : 0, 6736094
|
569095a
to
98084c1
Compare
Summary of changes
Prevent deadlock betwen signal-based profilers (walltime/manual cpu profilers) and non-signal based profilers (exception, contention....)
Reason for change
When an exception occurs, the thread can be interrupted by a signal-based profiler (walltime/manual cpu). It can be interrupted while holding the lock used to update the
dl-iterate-phdr
cache.Implementation details
Test coverage
Other details