Bug 752137

Summary: memcg: catch memcg page accounting leaks in debug kernel
Product: Red Hat Enterprise Linux 6 Reporter: Johannes Weiner <jweiner>
Component: kernelAssignee: Johannes Weiner <jweiner>
Status: CLOSED ERRATA QA Contact: Caspar Zhang <czhang>
Severity: low Docs Contact:
Priority: medium    
Version: 6.3CC: czhang, lwang, qcai, tgummels
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-2.6.32-241.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 08:02:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 767187, 787811    

Description Johannes Weiner 2011-11-08 16:17:54 UTC
The following patch has been helpful to find incorrect page accounting which results in problems ranging from unremovable cgroups to kernel warnings.

commit f212ad7cf9c73f8a7fa160e223dcb3f074441a72
Author: Daisuke Nishimura <nishimura.nec.co.jp>
Date:   Wed Mar 23 16:42:25 2011 -0700

    memcg: add memcg sanity checks at allocating and freeing pages
    
    Add checks at allocating or freeing a page whether the page is used (iow,
    charged) from the view point of memcg.
    
    This check may be useful in debugging a problem and we did similar checks
    before the commit 52d4b9ac(memcg: allocate all page_cgroup at boot).
    
    This patch adds some overheads at allocating or freeing memory, so it's
    enabled only when CONFIG_DEBUG_VM is enabled.
    
    Signed-off-by: Daisuke Nishimura <nishimura.nec.co.jp>
    Signed-off-by: Johannes Weiner <hannes>
    Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu.com>
    Cc: Balbir Singh <balbir.ibm.com>
    Cc: Minchan Kim <minchan.kim>
    Signed-off-by: Andrew Morton <akpm>
    Signed-off-by: Linus Torvalds <torvalds>

Comment 1 Travis Gummels 2011-11-08 18:48:43 UTC
*** Bug 751855 has been marked as a duplicate of this bug. ***

Comment 2 RHEL Program Management 2011-12-13 04:42:58 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 3 Aristeu Rozanski 2012-02-28 17:02:54 UTC
Patch(es) available on kernel-2.6.32-241.el6

Comment 8 errata-xmlrpc 2012-06-20 08:02:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-0862.html