dotnet / corert

This repo contains CoreRT, an experimental .NET Core runtime optimized for AOT (ahead of time compilation) scenarios, with the accompanying compiler toolchain.
http://dot.net
MIT License
2.91k stars 508 forks source link

Proposal: Adding more GC config settings to rhconfig.ini #8286

Open RalfKornmannEnvision opened 4 years ago

RalfKornmannEnvision commented 4 years ago

Based on the code only a few of the GC settings can currently be configurated with the rhconfig.ini file. While someone can make changes in gcconfig it fells like a bad hack for me. In the long run I assume it's not the plan to compile a new run time for every project. 

I am not sure how much improvements you can be get by tweaking some GC settings on a desktop system but at least on some game consoles I noticed significant performance improvements by using GCLargePages and GCHeapHardLimit. And with a fixed size memory pool it makes sense to limit the size of the memory the GC can use anyway.

Any objections to support more settings in rhconfig.ini?

MichalStrehovsky commented 4 years ago

I think the list of settings that are currently available were exposed ad hoc; adding more ad hoc settings to the list should be fine.