Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/sdkPublic

Introduce System.Runtime.TieredPGO knob#26350

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
EgorBo merged 6 commits intodotnet:mainfromEgorBo:add-tieredpgo
Jul 12, 2022

Conversation

EgorBo
Copy link
Member

@EgorBoEgorBo commentedJun 29, 2022
edited
Loading

Related dotnet/runtime PR:dotnet/runtime#71438

The idea is to introduce a configuration switch similar toTieredCompilation to expose a config switch forTieredPGO. It's done because many of our first/third parties are interested in trying Dynamic PGO and currently it's only possible withDOTNET_TieredPGO=1 env. variable defined in the execution process.

With this PR and the related SDK change customers will be able to turn it on (it's off by default) via MSBUILD or JSON config just like TieredCompilation, e.g.:

<TieredPGO>true</TieredPGO>

filipnavara reacted with thumbs up emoji
@ghost
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@EgorBo
Copy link
MemberAuthor

Um.. I am not sure who to ask for review here, perhaps@eerhardt?
I verified locally that this property enables PGO. More context indotnet/runtime#70410

@eerhardt
Copy link
Member

Can you also add to the test to ensure the MSBuild settings are flown to the runtimeconfig.json file? See#12362 for an example of where to change the tests.

@@ -487,6 +487,10 @@ Copyright (c) .NET Foundation. All rights reserved.
Condition="'$(TieredCompilationQuickJitForLoops)' != ''"
Value="$(TieredCompilationQuickJitForLoops)" />

<RuntimeHostConfigurationOption Include="System.Runtime.TieredPGO"
Condition="'$(TieredPGO)' != ''"
Value="$(TieredPGO)" />
Copy link
Member

Choose a reason for hiding this comment

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

Question: IsPGO the term we use in docs when discussing this feature with customers? These stringsSystem.Runtime.TieredPGO andTieredPGO are basically public APIs, so we have to be happy with the names we are picking here. It would be a breaking change to rename them later.

Copy link
MemberAuthor

@EgorBoEgorBoJul 11, 2022
edited
Loading

Choose a reason for hiding this comment

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

@eerhardt We've been advertisingDOTNET_TieredPGO environment variable since .NET 6.0 e.g.
https://devblogs.microsoft.com/dotnet/announcing-net-6/#dynamic-pgo (I was collecting feedback from users here:https://gist.github.com/EgorBo/dc181796683da3d905a5295bfd3dd95b) - it perfectly aligns withDOTNET_TieredCompilation which maps to<TieredCompilation>true</TieredCompilation> here.

We considered other names/options but a simple boolean property seems to be the best and simple. Eventually, we plan to enable it by default I guess (e.g. in .NET 8.0). For .NET 7.0 we just want our customers to be able to easily enable it to try the feature

@EgorBoEgorBo merged commit14a527b intodotnet:mainJul 12, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@eerhardteerhardteerhardt approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@EgorBo@eerhardt

[8]ページ先頭

©2009-2025 Movatter.jp