working set = usage - inactive
This commit is contained in:
parent
875146e396
commit
304a166d7a
@ -209,10 +209,10 @@ func libcontainerToContainerStats(s *cgroups.Stats, mi *info.MachineInfo) *info.
|
||||
ret.Memory.ContainerData.Pgmajfault = v
|
||||
ret.Memory.HierarchicalData.Pgmajfault = v
|
||||
}
|
||||
if v, ok := s.MemoryStats.Stats["active_anon"]; ok {
|
||||
ret.Memory.WorkingSet = v
|
||||
if v, ok := s.MemoryStats.Stats["active_file"]; ok {
|
||||
ret.Memory.WorkingSet += v
|
||||
if v, ok := s.MemoryStats.Stats["total_inactive_anon"]; ok {
|
||||
ret.Memory.WorkingSet = ret.Memory.Usage - v
|
||||
if v, ok := s.MemoryStats.Stats["total_active_file"]; ok {
|
||||
ret.Memory.WorkingSet -= v
|
||||
}
|
||||
}
|
||||
return ret
|
||||
|
Loading…
Reference in New Issue
Block a user