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

ngen executes extremely long #288

Closed
maettle opened this issue Nov 9, 2020 · 8 comments
Closed

ngen executes extremely long #288

maettle opened this issue Nov 9, 2020 · 8 comments

Comments

@maettle
Copy link

maettle commented Nov 9, 2020

after upgrading to 7.1912.5 OR installing KB4580979 I experience multiple runs of ngen per version, which delays the skript runtime extremely:

[...]
> Configure Set Power Saving Scheme to High Performance
> Configure Executing all queued .NET compilation jobs - C:\Windows\Microsoft.NET\Framework\v2.0.50727\ngen.exe
> Configure Update native images that have become invalid - C:\Windows\Microsoft.NET\Framework\v2.0.50727\ngen.exe
> Configure Executing all queued .NET compilation jobs - C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe
> Configure Update native images that have become invalid - C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe
> Configure Executing all queued .NET compilation jobs - C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe
> Configure Update native images that have become invalid - C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe
> Configure Executing all queued .NET compilation jobs - C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe
> Configure Update native images that have become invalid - C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe
[...]

@kyriansaxum
Copy link

I've seen this issue as well at one of my customers. The issue was a lack of internet access due to a proxy server which required domain user authentication to be able to access the internet. It looks like ngen requires internet access to be able to compile the .Net assemblies.

@matthias-schlimm
Copy link
Collaborator

7.1912.6 will become an ADMX Update to specify these settings

image

@matthias-schlimm
Copy link
Collaborator

update in developer branch done, testing this in the upcoming week
Files updated:

  • 97_PrepBISF_PRE_BaseImage.ps1
  • BaseImageScriptFramework.admx
  • BaseImageScriptFramework.adml
  • ReleaseNotes.txt

@maettle
Copy link
Author

maettle commented Nov 30, 2020

@matthias-schlimm thanks! Which setting should I use to mitigate my problem? Both optimizations?

@matthias-schlimm
Copy link
Collaborator

Enable the first one only, the second optimization coming new with 7.1912.5

@matthias-schlimm
Copy link
Collaborator

updating adml, per default Option 2 will be disabled
image

@maettle
Copy link
Author

maettle commented Jan 7, 2021

Hi Matthias,
I've tested it now with updated 97 and amdx; its now very fast, but it still executes 3-4x times per .net (v2 and v4), any ideas why that would be? The server has internet access at time of execution and I don't see any blcoked connections on the firewall.

But just to confirm, it's fast again now but I wonder what causes my problem in the first place.
FYI, I've waited for a full release of .6 thats why my feedback took so long.

@EUCweb
Copy link
Owner

EUCweb commented Jan 7, 2021

that's normal, it's processes every .net directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants