Skip to content

OOM when running microbenchmarks #2738

@adamsitnik

Description

@adamsitnik

I was running all the benchmarks for net6.0 and net7.0 over the night on my Ubuntu machine and both runs have failed. I've run exact same benchmarks night before on the same machine using Windows (dual boot PC) and everything was fine.

Since the issue reproducible on both .NET 6 and 7 it's most likely a leak in BenchmarkDotNet itself, unless we have back ported same bug to both .NET 6 and 7 which I really doubt.

[2022/11/16 02:06:51][INFO] // ** Remained 2638 (57.4%) benchmark(s) to run. Estimated finish 2022-11-16 7:19 (5h 12m from now) **
[2022/11/16 02:06:51][INFO] // **************************
[2022/11/16 02:06:51][INFO] // Benchmark: Perf_StreamWriter.WritePartialCharArray: Job-JFLJKI(PowerPlanMode=00000000-0000-0000-0000-000000000000, IterationTime=250.0000 ms, MaxIterationCount=20, MinIterationCount=15, WarmupCount=1) [writeLength=100]
[2022/11/16 02:06:51][INFO] // *** Execute ***
[2022/11/16 02:06:51][INFO] // Launch: 1 / 1
[2022/11/16 02:06:51][INFO] // Execute: dotnet 127ae2a3-5939-4aa3-b282-e33fe7b4210c.dll --anonymousPipes 4092 4093 --benchmarkName "System.IO.Tests.Perf_StreamWriter.WritePartialCharArray(writeLength: 100)" --job "PowerPlanMode=00000000-0000-0000-0000-000000000000, IterationTime=250.0000 ms, MaxIterationCount=20, MinIterationCount=15, WarmupCount=1" --benchmarkId 1954 in /home/adam/projects/performance/artifacts/bin/MicroBenchmarks/Release/net6.0/127ae2a3-5939-4aa3-b282-e33fe7b4210c/bin/Release/net6.0
[2022/11/16 02:06:51][INFO] Out of memory.
[2022/11/16 02:06:52][INFO] $ popd
[2022/11/16 02:06:52][ERROR] Process exited with status 134
[2022/11/16 02:06:52][INFO] Run failure registered
[2022/11/16 02:06:52][INFO] benchmarks_ci exited with non zero exit code, please check the log and report benchmark failure
[2022/11/16 05:57:39][INFO] // ** Remained 3360 (63.5%) benchmark(s) to run. Estimated finish 2022-11-16 12:35 (6h 37m from now) **
[2022/11/16 05:57:39][INFO] // **************************
[2022/11/16 05:57:39][INFO] // Benchmark: Perf_RandomAccess.WriteGather: Job-NHNJOJ(PowerPlanMode=00000000-0000-0000-0000-000000000000, IterationTime=250.0000 ms, MaxIterationCount=20, MinIterationCount=15, WarmupCount=1) [fileSize=1048576, buffersSize=16384, options=None]
[2022/11/16 05:57:39][INFO] // *** Execute ***
[2022/11/16 05:57:39][INFO] // Launch: 1 / 1
[2022/11/16 05:57:39][INFO] // Execute: dotnet 4c3deb6a-6c7b-4925-9912-f111992a0ce4.dll --anonymousPipes 4092 4093 --benchmarkName "System.IO.Tests.Perf_RandomAccess.WriteGather(fileSize: 1048576, buffersSize: 16384, options: None)" --job "PowerPlanMode=00000000-0000-0000-0000-000000000000, IterationTime=250.0000 ms, MaxIterationCount=20, MinIterationCount=15, WarmupCount=1" --benchmarkId 1930 in /home/adam/projects/performance/artifacts/bin/MicroBenchmarks/Release/net7.0/4c3deb6a-6c7b-4925-9912-f111992a0ce4/bin/Release/net7.0
[2022/11/16 05:57:39][INFO] Out of memory.
[2022/11/16 05:57:39][INFO] $ popd
[2022/11/16 05:57:39][ERROR] Process exited with status 134
[2022/11/16 05:57:39][INFO] Run failure registered
[2022/11/16 05:57:39][INFO] benchmarks_ci exited with non zero exit code, please check the log and report benchmark failure

.NET 6 BenchmarkRun-20221115-221428.log

.NET 7 BenchmarkRun-20221116-020748.log

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions