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 b686a10 commit c32acc0Copy full SHA for c32acc0
container/libcontainer/handler.go
@@ -742,8 +742,13 @@ func setMemoryStats(s *cgroups.Stats, ret *info.ContainerStats) {
742
ret.Memory.HierarchicalData.Pgmajfault = v
743
}
744
745
+ inactiveFileKeyName := "total_inactive_file"
746
+ if cgroups.IsCgroup2UnifiedMode() {
747
+ inactiveFileKeyName = "inactive_file"
748
+ }
749
+
750
workingSet := ret.Memory.Usage
- if v, ok := s.MemoryStats.Stats["total_inactive_file"]; ok {
751
+ if v, ok := s.MemoryStats.Stats[inactiveFileKeyName]; ok {
752
if workingSet < v {
753
workingSet = 0
754
} else {
0 commit comments