Running .NET Core performance investigation on Linux
summary
Claim: .NET Core throughput improves >20% after targeted Linux investigations. Workflow uses dotnet-trace → speedscope/Chromium for quick cross‑platform sampling, perfcollect requires sudo and crossgen for full native stacks and machine‑wide traces (output often tens of MB; example perf trace ~70–80 MB, speedscope export ~3–4 MB, Chromium ~16 MB). Also demoed VTune for assembly/hardware counters, Rider/dotTrace for IDE sampling, and BenchmarkDotNet for disassembly and eventpipe profiling. A threading fix (merge duplicate worker threads into one) yields ~10% throughput gain; the toolchain and steps (release build, emit PDBs, disable tiered JIT when irrelevant, publish self‑contained) validate and reproduce fixes.
AI-written summary · about
chapters (31)
- 0:00Introduction
- 1:42Performance rule 1
- 2:34How to get started
- 6:00DotNetTrace
- 7:10Demo
- 11:12Speedscope
- 11:50Speedscope file size
- 13:02Viewing the data
- 16:42Chromium file format
- 18:17Trace file
- 20:06Speedscope file
- 21:14Limitations of dotnettrace
- 22:12What is perfcollect
- 24:22Running perfcollect
- 24:52Installing crossgen
- 28:11Starting perfcollect
- 29:39Using speedscope
- 32:49Using vitune
- 34:14Configure vitune
- 36:59View source code
- 37:59Disassembly code
- 41:49Profiler EP
- 43:49DotTrace
- 47:29The next steps
- 48:29Test coverage
- 50:24One year ago
- 51:19More edge cases
- 53:54Writing benchmarks
- 54:54Unit test
- 55:29Summary
- 57:24Questions
