Skip to content

Add GC.GetConfigVariable API, and support more GC settings in runtimeconfig - #162

Closed
ghost wants to merge 1 commit into
masterfrom
unknown repository
Closed

ghost wants to merge 1 commit into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Nov 20, 2019

Copy link
Copy Markdown

Currently, a few GC settings are only available as environment variables.
This adds support for a few more as runtimeconfig settings.
They are:

  • "System.GC.CpuGroup": Same as COMPlus_GCCpuGroup
  • "System.GC.HighMemoryPercent": Same as COMPlus_GCHighMemPercent
  • "System.GC.LargePages": Same as COMPlus_GCLargePages
  • "System.GC.HeapAffinitizeRnages": Same as COMPlus_GCHeapAffinitizeRanges

This is similar to dotnet/coreclr#25574,
which did this for "System.GC.HeapHardLimit" and "System.GC.HeapHardLimitPercent".

This PR also adds a new API described in dotnet/corefx#42499 .

…config

Currently, a few GC settings are only available as environment variables.
This adds support for a few more as runtimeconfig settings.
They are:

* "System.GC.CpuGroup": Same as `COMPlus_GCCpuGroup`
* "System.GC.HighMemoryPercent": Same as `COMPlus_GCHighMemPercent`
* "System.GC.LargePages": Same as `COMPlus_GCLargePages`
* "System.GC.HeapAffinitizeRnages": Same as `COMPlus_GCHeapAffinitizeRanges`

This is similar to dotnet/coreclr#25574,
which did this for "System.GC.HeapHardLimit" and "System.GC.HeapHardLimitPercent".

This PR also adds a new API described in dotnet/corefx#42499 .
@stephentoub

stephentoub commented Nov 21, 2019 •

Copy link
Copy Markdown
Member

Have the associated APIs been approved yet?

@ghost

ghost commented Nov 21, 2019

Copy link
Copy Markdown
Author

Not yet. Presume this should be tagged api-suggestion then?

@stephentoub

Copy link
Copy Markdown
Member

Presume this should be tagged api-suggestion then?

We generally avoid putting up PRs at all for APIs that haven't been approved. If the goal is just to get feedback as part of the issue discussion, or to sure the progress you've made, that can be done by just linking to the relevant commit in your fork from the relevant issues.

Thanks

@ghost ghost closed this Nov 21, 2019
@stephentoub

Copy link
Copy Markdown
Member

cc: @terrajobst

@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2020
radical pushed a commit to radical/runtime that referenced this pull request Jul 7, 2022
I guess this is thanks to the sudo launchctl we are doing. However, I won't waste energy on finding the cause and will just fix this symptom since we will move to Arcade soon.

Fixes: dotnet#162
Fixes: dotnet#117
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants