runtime icon indicating copy to clipboard operation
runtime copied to clipboard

System.IO.Pipes perf tests never finish exection on linux machine

Open dsgouda opened this issue 10 years ago • 11 comments

When running System.IO.Pipes perf tests on a linux machine, the tests seem to run infinitely and need to be killed/timed out

To repro the error: On a linux machine, build the CoreFX repo and run the following command

Tools/corerun Tools/MSBuild.exe src/System.IO.Pipes/tests/System.IO.Pipes.tests.csproj /t:BuildAndTest /p:Performance=true /p:OSGroup=Linux

dsgouda avatar Jun 03 '16 19:06 dsgouda

Can you add /p:XunitOptions="-parallel none -showProgress", and if it hangs, see which test started but didn't finish?

stephentoub avatar Jun 03 '16 19:06 stephentoub

Can you add /p:XunitOptions="-parallel none -showProgress"

Doesn't look like that works with the perf runner now. I don't see a way to pass args to the perf runner's invocation of the regular test runner:

Error: missing filename for -showProgress
   at Microsoft.Xunit.Performance.ProgramCore.ParseCommandLine(String[] args)
   at Microsoft.Xunit.Performance.ProgramCore.Run(String[] args)

ianhays avatar Jun 03 '16 20:06 ianhays

I didn't realize a separate runner was used :( Can this be repro'd just by using the resulting test binaries with corerun and xunit.console.netcore.exe?

stephentoub avatar Jun 03 '16 21:06 stephentoub

@stephentoub yes we use a separate runner to execute the microbenchmark tests, I doubt if it is possible to repro the same issue without using the xunit performance runner @brianrob Can you confirm this

dsgouda avatar Jun 03 '16 21:06 dsgouda

It is possible to run the benchmarks using xunit as opposed to xunit-performance. The main differences are that (a) no performance metrics will be collected and (b) the test will only run 1 iteration.

brianrob avatar Jun 07 '16 17:06 brianrob

Do these still run? I'm getting an error:

D:\git\corefx\Tools\PerfTesting.targets(41,5): error : Xunit performance package was not found [D:\git\corefx\src\System.IO.Pipes\t ests\Performance\System.IO.Pipes.Performance.Tests.csproj]

ianhays avatar Oct 24 '16 23:10 ianhays

@brianrob can you ask someone from perf to take a look

dsgouda avatar Oct 25 '16 16:10 dsgouda

To my knowledge, these still run. This sounds like more of a build issue.

brianrob avatar Oct 25 '16 23:10 brianrob

We used to be able to run perf tests locally using the build targets under CoreFX, I am not sure if this is true today, someone from perf may have to take a look

dsgouda avatar Oct 26 '16 18:10 dsgouda

Performance tests have been moved to dotnet/performance and rewritten, and I'm not aware of any hangs (cc: @adamsitnik). As such, I'm closing this. We can re-open if it's still detected as an issue.

stephentoub avatar Mar 12 '19 14:03 stephentoub

System.IO.Pipes.PerformanceTests benchmarks were ported in https://github.com/dotnet/performance/pull/108 and now are available at https://github.com/dotnet/performance/tree/master/src/benchmarks/micro/corefx/System.IO.Pipes

They work fine on every OS and every architecture and we have a CI that verifies that https://github.com/dotnet/performance/#micro-benchmarks

adamsitnik avatar Mar 12 '19 14:03 adamsitnik