We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a95c22 commit ab2da09Copy full SHA for ab2da09
container/libcontainer/handler.go
@@ -850,8 +850,13 @@ func setMemoryStats(s *cgroups.Stats, ret *info.ContainerStats) {
850
ret.Memory.HierarchicalData.Pgmajfault = v
851
}
852
853
+ inactiveFileKeyName := "total_inactive_file"
854
+ if cgroups.IsCgroup2UnifiedMode() {
855
+ inactiveFileKeyName = "inactive_file"
856
+ }
857
+
858
workingSet := ret.Memory.Usage
- if v, ok := s.MemoryStats.Stats["total_inactive_file"]; ok {
859
+ if v, ok := s.MemoryStats.Stats[inactiveFileKeyName]; ok {
860
if workingSet < v {
861
workingSet = 0
862
} else {
0 commit comments