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

Specify ngen configs for exes #11182

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rainersigwald
Copy link
Member

@rainersigwald rainersigwald commented Dec 20, 2024

It looks like the Setup engine treats all ngened files as DLLs by default, so MSBuild.exe was getting ngened in vsn.exe context, which doesn't make a lot of sense. Explicitly tell the engine to ngen it in its own context.

Notes to January self: look at ngen logs in VS perf tests. Verify

  • no methodsJitted regressions
  • we are no longer ngening these files in vsn.exe context

It looks like the Setup engine treats all ngened files as DLLs by
default, so `MSBuild.exe` was getting ngened in `vsn.exe` context, which
doesn't make a lot of sense. Explicitly tell the engine to ngen it in
its own context.
@rainersigwald rainersigwald self-assigned this Dec 20, 2024
Copy link
Contributor

Hello @rainersigwald, I noticed that you’re changing an .swr file or any file under src/Package/MSBuild.VSSetup.. Please make sure to validate this change by an experimental VS insertion. This is accomplished by pushing to an exp/* branch, which requires write permissions to this repo.

@rainersigwald
Copy link
Member Author

Test insertion: https://dev.azure.com/devdiv/DevDiv/_git/VS/pullrequest/599734

Before (ngen64 log):

01/09/2025 04:35:46.483 [6068]: Executing command from offline queue: install "C:\VisualStudio\MSBuild\Current\Bin\amd64\MSBuild.exe" /NoDependencies /ExeConfig:"C:\VisualStudio\Common7\IDE\vsn.exe" /queue:3

After:

01/09/2025 21:07:36.153 [1188]: Executing command from offline queue: install "C:\VisualStudio\MSBuild\Current\Bin\amd64\MSBuild.exe" /NoDependencies /ExeConfig:"C:\VisualStudio\MSBuild\Current\Bin\amd64\MSBuild.exe" /queue:3

@rainersigwald rainersigwald marked this pull request as ready for review January 10, 2025 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant