diff --git a/container/libcontainer/handler.go b/container/libcontainer/handler.go index 9f05a52a49..da636c2a55 100644 --- a/container/libcontainer/handler.go +++ b/container/libcontainer/handler.go @@ -848,6 +848,12 @@ func setMemoryStats(s *cgroups.Stats, ret *info.ContainerStats) { workingSet -= v } } + + // Exclude "slab_reclaimable" from workingSet + if v, ok := s.MemoryStats.Stats["slab_reclaimable"]; ok { + workingSet -= v + } + ret.Memory.WorkingSet = workingSet }