You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The benchmarks use Server GC. Is there a slight chance that it's still affecting it, because I can repro consistently with just this changeset, and all the other commits have nothing to do with the GC. Is there a trace I can provide that would confirm it?
I took another look at 72923 and I do see a problem with it for WKS GC. it needs to initialize the saved_allocated in the else case when shigh is 0. but still, this PR should not have any effect on SVR GC. so I'm very curious what's causing what you are seeing. I tried to repro this locally but I can't even get an mvc project to build with the latest preview7 build...
Current directory: C:\Users\Administrator\AppData\Local\Temp\benchmarks-agent\benchmarks-server-7564\r3bvl4oa.3rg\benchmarks\src\Benchmarks\published
AspNetCore version: 7.0.0-rc.1.22401.10+b7b37d1e9d47919c27f1895c3428e3da6ddf86b8
.NET Runtime version: 7.0.0-rc.1.22401.4+e415018a152a4a2e0db7619ceb91a3b3326b217a
EFCore version: 6.0.0
Environment.ProcessorCount: 28
Scenario configuration found in scenarios.json and/or command line args
The following scenarios were enabled:
MvcJson -> /mvc/json
Database: None
ConnectionString: Server=(localdb)\mssqllocaldb;Database=aspnet5-Benchmarks;Trusted_Connection=True;MultipleActiveResultSets=true
WAL: False
Using server Kestrel
Server GC is currently ENABLED
Using Sockets with 16 threads
Hosting environment: Production
Content root path: C:\Users\Administrator\AppData\Local\Temp\benchmarks-agent\benchmarks-server-7564\r3bvl4oa.3rg\benchmarks\src\Benchmarks\published
Now listening on: http://10.0.0.104:5000
Application started. Press Ctrl+C to shut down.
Application is shutting down...
C:\temp\mvc70>dotnet new mvc
The template "ASP.NET Core Web App (Model-View-Controller)" was created successfully.
This template contains technologies from parties other than Microsoft, see https://aka.ms/aspnetcore/7.0-third-
party-notices for details.
Processing post-creation actions...
Restoring C:\temp\mvc70\mvc70.csproj:
Determining projects to restore...
Restored C:\temp\mvc70\mvc70.csproj (in 83 ms).
Restore succeeded.
C:\temp\mvc70>dotnet publish -c Release --self-contained -r win-x64
MSBuild version 17.4.0-preview-22368-02+c8492483a for .NET
Determining projects to restore...
C:\temp\mvc70\mvc70.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.win-x64 with v
ersion (= 7.0.0-preview.7.22375.6)
C:\temp\mvc70\mvc70.csproj : error NU1102: - Found 92 version(s) in nuget.org [ Nearest version: 7.0.0-previ
ew.6.22324.4 ]
C:\temp\mvc70\mvc70.csproj : error NU1102: - Found 0 version(s) in Microsoft Visual Studio Offline Packages
C:\temp\mvc70\mvc70.csproj : error NU1102: Unable to find package Microsoft.WindowsDesktop.App.Runtime.win-x64
with version (= 7.0.0-preview.7.22377.1)
C:\temp\mvc70\mvc70.csproj : error NU1102: - Found 90 version(s) in nuget.org [ Nearest version: 7.0.0-previ
ew.6.22351.3 ]
C:\temp\mvc70\mvc70.csproj : error NU1102: - Found 0 version(s) in Microsoft Visual Studio Offline Packages
C:\temp\mvc70\mvc70.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Runtime.win-x64 wit
h version (= 7.0.0-preview.7.22376.6)
C:\temp\mvc70\mvc70.csproj : error NU1102: - Found 93 version(s) in nuget.org [ Nearest version: 7.0.0-previ
ew.6.22330.3 ]
C:\temp\mvc70\mvc70.csproj : error NU1102: - Found 0 version(s) in Microsoft Visual Studio Offline Packages
Failed to restore C:\temp\mvc70\mvc70.csproj (in 297 ms).
Activity
Maoni0 commentedon Aug 2, 2022
does this use Server GC? If so it's not affected by #72923.
sebastienros commentedon Aug 2, 2022
The benchmarks use Server GC. Is there a slight chance that it's still affecting it, because I can repro consistently with just this changeset, and all the other commits have nothing to do with the GC. Is there a trace I can provide that would confirm it?
mrsharm commentedon Aug 2, 2022
Could you provide instructions on how to repro? I can try to see if I see the same error locally with and without the change.
EgorBo commentedon Aug 2, 2022
Can confirm it's #72923 (I sent patched binary to crank where I reverted that PR)
Maoni0 commentedon Aug 2, 2022
I took another look at 72923 and I do see a problem with it for WKS GC. it needs to initialize the saved_allocated in the else case when
shighis 0. but still, this PR should not have any effect on SVR GC. so I'm very curious what's causing what you are seeing. I tried to repro this locally but I can't even get an mvc project to build with the latest preview7 build...sebastienros commentedon Aug 2, 2022
Confirming it's running with Server GC, we do output the value during the run to be certain it is doing so:
http://asp-citrine-win:5001/jobs/245/output:
And the code that displays this line:
https://github.com/aspnet/Benchmarks/blob/main/src/Benchmarks/Program.cs#L197
Maoni0 commentedon Aug 2, 2022
do you know why I'm getting this?
sebastienros commentedon Aug 2, 2022
Maybe you have installed nightly bits (preview7) but not the full SDK (with aligned runtime/aspnet).
Maoni0 commentedon Aug 2, 2022
I see, that makes sense. next Q is where do I install the full SDK from? I installed preview7 from https://github.com/dotnet/installer.
jkotas commentedon Aug 2, 2022
If you install nightly SDK builds, you need to manually add nightly nuget feed to your nuget config: https://github.com/dotnet/runtime/blob/main/docs/project/dogfooding.md#obtaining-daily-builds-of-nuget-packages
mrsharm commentedon Aug 2, 2022
@Maoni0: I was able to repro the issue using (thanks @EgorBo):
and found that reverting the following on line number 28726 in
plan_phaseback to:
Fixes the memory issue. This is one of the cases that isn't in WKS. Continuing to investigate why this is the case.
Maoni0 commentedon Aug 2, 2022
oh, I see the problem......... you missed an 'S' in the #ifdef
is supposed to be
this change is supposed to not have any effect on Server GC because
saved_allocatedis supposed to befor Server GC.