Skip to content

Superpmi collection for real-world benchmarks - #87104

Merged
kunalspathak merged 6 commits into
dotnet:mainfrom
kunalspathak:spmi-real-world
Jun 6, 2023
Merged

kunalspathak merged 6 commits into
dotnet:mainfrom
kunalspathak:spmi-real-world

Conversation

@kunalspathak

@kunalspathak kunalspathak commented Jun 4, 2023 •

Copy link
Copy Markdown
Contributor

@ghost ghost assigned kunalspathak Jun 4, 2023
@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jun 4, 2023
@kunalspathak

Copy link
Copy Markdown
Contributor Author

@dotnet/jit-contrib

@ghost

ghost commented Jun 4, 2023

Copy link
Copy Markdown

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Issue Details

Add superpmi collection for real-world benchmarks present in https://github.com/dotnet/performance/tree/main/src/benchmarks/real-world

Successful collection: https://dev.azure.com/dnceng/internal/_build/results?buildId=2193577&view=results

Author: kunalspathak
Assignees: kunalspathak
Labels:

area-CodeGen-coreclr

Milestone: -

@AndyAyersMS AndyAyersMS left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like parts of this scripting are getting a little unwieldy, but I suppose we're not likely to add another category of benchmarks this way, so maybe there's no benefit in abstracting this further.

I would like to see us run the benchmarks more naturally (and eventually with mostly release bits) but that can wait for a subsequent change.

" *SweepBenchmarks.* *ShapeRayBenchmarks.* *ShapePileBenchmark.* *RagdollTubeBenchmark.* " \
f" --corerun {os.path.join(core_root, corerun_exe)} --envVars DOTNET_JitName:{shim_name} " \
" DOTNET_ZapDisable:1 DOTNET_ReadyToRun:0 " \
"--iterationCount 1 --warmupCount 0 --invocationCount 1 --unrollFactor 1 --strategy ColdStart --logBuildOutput"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How long would it take to run these normally (no BDN strategy alterations)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @LoopedBard3 for getting these numbers:

    ML.NET ~ 12 min
    FSharp ~8 min
    Bepuphysics ~6.5 min
    ImageSharp ~6 min
    Illink ~16.5 min
    Roslyn ~ 17 mins.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So 56 mins.

In the job you link to above the entire thing took 49 minutes on windows, so the cost above doesn't seem too bad?

image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 49 mins includes the queueing time. The actual execution with invocationCount 1 is couple of minutes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But let me try to trigger another run with those constrained removed and double check. I assume with that, we will get the PGO related collection too, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-IterationCount 1:

image

default args, so definitely the collection part slows it down further. I will merge this PR as-is.

image

@kunalspathak

Copy link
Copy Markdown
Contributor Author

parts of this scripting are getting a little unwieldy

I agree. I was thinking of just make them run using normal benchmark collection, but that would have still needed special handling for these benchmarks because they are in different folder and different benchmark binary names. Also, I didn't want to include them in our regular benchmarks collection.

@kunalspathak
kunalspathak merged commit 7507318 into dotnet:main Jun 6, 2023
@kunalspathak
kunalspathak deleted the spmi-real-world branch June 6, 2023 02:01
@ghost ghost locked as resolved and limited conversation to collaborators Jul 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants