Bug 752137 - memcg: catch memcg page accounting leaks in debug kernel
Summary: memcg: catch memcg page accounting leaks in debug kernel
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.3
Hardware: Unspecified
OS: Linux
medium
low
Target Milestone: rc
: ---
Assignee: Johannes Weiner
QA Contact: Caspar Zhang
URL:
Whiteboard:
: 751855 (view as bug list)
Depends On:
Blocks: 767187 787811
TreeView+ depends on / blocked
 
Reported: 2011-11-08 16:17 UTC by Johannes Weiner
Modified: 2018-11-29 21:41 UTC (History)
4 users (show)

Fixed In Version: kernel-2.6.32-241.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 08:02:07 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:0862 0 normal SHIPPED_LIVE Moderate: Red Hat Enterprise Linux 6 kernel security, bug fix and enhancement update 2012-06-20 12:55:00 UTC

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


Note You need to log in before you can comment on or make changes to this bug.