Skip to content

Too much Gen0 memory usage on Region GC #82416

@InCerryGit

Description

@InCerryGit

Description

I want to experience region GC on .NET6.0, I just tried this libclrgc.so in my test environment and .NET6.0 is able to use it. But it has a very high memory usage.

image

Use dotMemory analyze the dump, gen0 has 173 heaps.
image

Reproduction Steps

Create a .NET6 project, place the following *.so in the same directory as coreclr.so

https://github.com/Maoni0/clrgc/tree/main/issues/80073/demotion_fix/v2/linux

Configure environment variables:

DOTNET_GCName=libclrgc.so

Run the program。

Expected behavior

There shouldn't be so much memory usage。

Actual behavior

Memory usage is several times higher than SegmentGC

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

cc @Maoni0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions