• Joonsoo Kim's avatar
    mm/page_owner: correct owner information for early allocated pages · 61cf5feb
    Joonsoo Kim authored
    Extended memory to store page owner information is initialized some time
    later than that page allocator starts.  Until initialization, many pages
    can be allocated and they have no owner information.  This make debugging
    using page owner harder, so some fixup will be helpful.
    
    This patch fixes up this situation by setting fake owner information
    immediately after page extension is initialized.  Information doesn't tell
    the right owner, but, at least, it can tell whether page is allocated or
    not, more correctly.
    
    On my testing, this patch catches 13343 early allocated pages, although
    they are mostly allocated from page extension feature.  Anyway, after
    then, there is no page left that it is allocated and has no page owner
    flag.
    Signed-off-by: default avatarJoonsoo Kim <iamjoonsoo.kim@lge.com>
    Cc: Mel Gorman <mgorman@suse.de>
    Cc: Johannes Weiner <hannes@cmpxchg.org>
    Cc: Minchan Kim <minchan@kernel.org>
    Cc: Dave Hansen <dave@sr71.net>
    Cc: Michal Nazarewicz <mina86@mina86.com>
    Cc: Jungsoo Son <jungsoo.son@lge.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    61cf5feb
page_owner.c 6.88 KB