docs icon indicating copy to clipboard operation
docs copied to clipboard

Workstation GC for 1 logical CPU

Open glb-cblin opened this issue 1 year ago • 1 comments

Type of issue

Outdated article

Description

I'm using .NET8 in GCP Cloud run environment configured with 1 CPU and 512Mo RAM (in order to scale horizontally as needed) and with the CPU throtled when there is no incoming HTTP request

I'm having memory issues that I describe here : https://github.com/googleapis/google-cloud-dotnet/issues/11404

My intuition is that the GC behavior have changed in .NET8 to be Server GC instead of workstattion GC

And so this sentence seems outdated :

Workstation garbage collection is always used on a computer that has only one logical CPU, regardless of the configuration setting.

You can see in the linked github issue that with .NET8, the GC is waiting the threshold of 75% to be triggered whereas with .NET6 it was clearing memory more often

Page URL

https://learn.microsoft.com/en-us/dotnet/standard/garbage-collection/workstation-server-gc#workstation-gc

Content source URL

https://github.com/dotnet/docs/blob/main/docs/standard/garbage-collection/workstation-server-gc.md

Document Version Independent Id

a47c1fd9-176e-f6b3-9d87-0b75f8048523

Article author

@gewarren

Metadata

  • ID: 96231e21-39dd-96c1-8d9a-4155dfe19cec
  • Product: dotnet-fundamentals

glb-cblin avatar Dec 06 '23 13:12 glb-cblin

@Maoni0 Can you take a look at this?

gewarren avatar Dec 06 '23 16:12 gewarren