Skip to content

[browser][mt] Running Buffers tests in parallel results in OOM #100628

Open
@maraf

Description

@maraf

This is active issue - search for

<WasmXHarnessMaxParallelThreads>1</WasmXHarnessMaxParallelThreads>

[FAIL][8] System.Buffers.ArrayPool.Tests.ArrayPoolUnitTests.RentingSpecificLengthsYieldsExpectedLengths(requestedMinimum: 2097152, expectedLength: 2097152)
info: System.OutOfMemoryException : Out of memory
info:    at System.Buffers.ConfigurableArrayPool`1[[System.String, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Rent(Int32 minimumLength)
info:    at System.Buffers.ArrayPool.Tests.ArrayPoolUnitTests.RentingSpecificLengthsYieldsExpectedLengths(Int32 requestedMinimum, Int32 expectedLength)
info:    at System.Object.InvokeStub_ArrayPoolUnitTests.RentingSpecificLengthsYieldsExpectedLengths(Object , Span`1 )
info:    at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Running in parallel disabled. Discovered in #98492

It seems that GC is unable to keep up with the traffic.
I wonder if Mono on x64 has the same problem but survives this because of more available memory ?

Log

[19:21:33] info: [FAIL] System.Buffers.ArrayPool.Tests.ArrayPoolUnitTests.RentAndReturnManyOfTheSameSize_NoneAreSame(pool: SharedArrayPool`1 { })
[19:21:33] info: System.OutOfMemoryException : Out of memory
[19:21:33] info:    at System.GC.AllocateArray[Byte](Int32 length, Boolean pinned)
[19:21:33] info:    at System.Buffers.SharedArrayPool`1[[System.Byte, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Rent(Int32 minimumLength)
[19:21:33] info:    at System.Buffers.ArrayPool.Tests.ArrayPoolUnitTests.RentAndReturnManyOfTheSameSize_NoneAreSame(ArrayPool`1 pool)
[19:21:33] info:    at System.Object.InvokeStub_ArrayPoolUnitTests.RentAndReturnManyOfTheSameSize_NoneAreSame(Object , Span`1 )
[19:21:33] info:    at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=643881

{
  "ErrorPattern": ["Out of memory", "test-browser"],
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=643881
Error message validated: [Out of memory test-browser]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 4/16/2024 10:19:20 AM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions