Class MemoryPoolOptions
Configuration options for memory pools.
public sealed class MemoryPoolOptions
- Inheritance
-
MemoryPoolOptions
- Inherited Members
Properties
DefaultPerTypeLimit
Gets or sets the default memory limit per type in bytes. Default is 512MB.
public long DefaultPerTypeLimit { get; set; }
Property Value
EnableMemoryPressureMonitoring
Gets or sets whether to enable memory pressure monitoring. Default is true.
public bool EnableMemoryPressureMonitoring { get; set; }
Property Value
MaxPooledBuffersPerType
Gets or sets the maximum number of pooled buffers per type. Default is 100.
public int MaxPooledBuffersPerType { get; set; }
Property Value
MaxTotalMemoryBytes
Gets or sets the maximum total memory in bytes across all pools. Default is 4GB.
public long MaxTotalMemoryBytes { get; set; }
Property Value
MemoryPressureThresholdPercent
Gets or sets the memory pressure threshold percentage (0-100). Default is 80%.
public double MemoryPressureThresholdPercent { get; set; }
Property Value
PerTypeMemoryLimits
Gets the per-type memory limits for specific element types.
public Dictionary<Type, long> PerTypeMemoryLimits { get; }