Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revise how we set tiering and pgo options for spmi benchmark collections #87292

Merged
merged 2 commits into from
Jun 9, 2023

Conversation

AndyAyersMS
Copy link
Member

Don't set these in the BDN environment; set them via the BDN command line so they only impact the process being benchmarked.

Fixes #86410

Don't set these in the BDN environment; set them via the BDN command line
so they only impact the process being benchmarked.

Fixes dotnet#86410
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jun 8, 2023
@ghost ghost assigned AndyAyersMS Jun 8, 2023
@ghost
Copy link

ghost commented Jun 8, 2023

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

Issue Details

Don't set these in the BDN environment; set them via the BDN command line so they only impact the process being benchmarked.

Fixes #86410

Author: AndyAyersMS
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@AndyAyersMS
Copy link
Member Author

@kunalspathak PTAL
cc @dotnet/jit-contrib

Internal pipeline run with this new script: green save unrelated OSX failure.

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

"--iterationCount 1 --warmupCount 0 --invocationCount 1 --unrollFactor 1 --strategy ColdStart --logBuildOutput " \
f"--envVars DOTNET_JitName:{shim_name} DOTNET_ZapDisable:1 DOTNET_ReadyToRun:0"

if coreclr_args.tiered_pgo:
Copy link
Member

Choose a reason for hiding this comment

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

do you mind also pulling the --iterationCount 1 --warmupCount 0 --invocationCount 1 --unrollFactor 1 --strategy ColdStart in common case?

Also, shouldn't you be passing iterationCount, etc. if for tiered/pgo runs? And a note about DOTNET_ZapDisable:1 DOTNET_ReadyToRun:0 too. Do we still want them for tiered/pgo runs?

Copy link
Member Author

Choose a reason for hiding this comment

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

There is no common case right now, are you saying I should factor the common aspects out (or at least the common trailing elements)?

I wasn't planning on changing how we collect at this point. I would have to study the impact of altering BDN strategy to see if it adds value.

Copy link
Member

Choose a reason for hiding this comment

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

There is no common case right now, are you saying I should factor the common aspects out (or at least the common trailing elements)?

Yes, that's what I meant.

I wasn't planning on changing how we collect at this point. I would have to study the impact of altering BDN strategy to see if it adds value.

Sure, we can limit this PR for just the changes you have currently and rethink about longer term strategy of how we should collect them in a later PR.

@ghost ghost added needs-author-action An issue or pull request that requires more info or actions from the author. and removed needs-author-action An issue or pull request that requires more info or actions from the author. labels Jun 8, 2023
@kunalspathak
Copy link
Member

kunalspathak commented Jun 8, 2023

Internal pipeline run with this new script: green save unrelated OSX failure.

Typically to test out things, I comment out all the unrelated collections in yml file and that way we just do the collection for type we are testing for. E.g. https://dev.azure.com/dnceng/internal/_build/results?buildId=2193577&view=results that just ran real-world collection.

@AndyAyersMS
Copy link
Member Author

https://dev.azure.com/dnceng/internal/_build/results?buildId=2196878&view=results is the revised run -- benchmark runs were all happy, though a test build failed (will restart it once I am able).

@AndyAyersMS AndyAyersMS merged commit 9b7db0f into dotnet:main Jun 9, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jul 9, 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.

revise how we pass config settings to benchmarkdotnet for SPMI collections
3 participants