<GCCpuGroup> Element

.NET Framework (current version)
 

Specifies whether garbage collection supports multiple CPU groups.

<configuration>
<runtime>
<GCCpuGroup>

<GCCpuGroup    
   enabled="true|false"/>  

The following sections describe attributes, child elements, and parent elements.

Attributes

AttributeDescription
enabledRequired attribute.

Specifies whether garbage collection supports multiple CPU groups.
ValueDescription
falseGarbage collection does not support multiple CPU groups. This is the default.
trueGarbage collection supports multiple CPU groups, if server garbage collection is enabled.

Child Elements

None.

Parent Elements

ElementDescription
configurationThe root element in every configuration file used by the common language runtime and .NET Framework applications.
runtimeContains information about assembly binding and garbage collection.

When a computer has multiple CPU groups and server garbage collection is enabled (see the <gcServer> element), enabling this element extends garbage collection across all CPU groups and takes all cores into account when creating and balancing heaps.

System_CAPS_ICON_note.jpg Note

This element applies only to garbage collection threads. To enable the runtime to distribute user threads across all CPU groups, you must also enable the <Thread_UseAllCpuGroups> element.

The following example shows how to enable garbage collection for multiple CPU groups.

<configuration>  
   <runtime>  
      <GCCpuGroup enabled="true"/>  
      <gcServer enabled="true"/>  
   </runtime>  
</configuration>  

Runtime Settings Schema
Configuration File Schema
How to: Disable Concurrent Garbage Collection
Workstation and server garbage collection

Show: