1 write to GuaranteedMemoryInBytes
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
SystemResources.cs (1)
59GuaranteedMemoryInBytes = Throw.IfLessThan(guaranteedMemoryInBytes, 1UL);
11 references to GuaranteedMemoryInBytes
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
ResourceUtilization.cs (2)
31/// This percentage is calculated relative to the <see cref="SystemResources.GuaranteedMemoryInBytes"/>. 68MemoryUsedPercentage = Math.Min(Hundred, (double)MemoryUsedInBytes / systemResources.GuaranteedMemoryInBytes * Hundred);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (9)
CalculatorTests.cs (4)
55Assert.Equal(1000UL, record.SystemResources.GuaranteedMemoryInBytes); 111Assert.Equal(1000UL, record.SystemResources.GuaranteedMemoryInBytes); 162Assert.Equal(1000UL, record.SystemResources.GuaranteedMemoryInBytes); 196Assert.Equal(1000UL, record.SystemResources.GuaranteedMemoryInBytes);
IResourceUtilizationSnapshotProviderTests.cs (1)
17Assert.Equal(DummyProvider.MemoryTotalInBytes, provider.Resources.GuaranteedMemoryInBytes);
IResourceUtilizationTrackerTests.cs (1)
20Assert.Equal(DummyTracker.MemoryTotal, utilization.SystemResources.GuaranteedMemoryInBytes);
Linux\AcceptanceTest.cs (2)
134Assert.Equal(100_000UL, provider.Resources.GuaranteedMemoryInBytes); // read from memory.limit_in_bytes 182Assert.Equal(100_000UL, provider.Resources.GuaranteedMemoryInBytes); // read from memory.max
SystemResourcesTests.cs (1)
21Assert.Equal(MemoryTotalInBytes, systemResources.GuaranteedMemoryInBytes);