Thread (14 messages) 14 messages, 6 authors, 2011-02-14

Re: [mmotm] BUG: Bad page state in process khugepaged ?

From: Andrea Arcangeli <hidden>
Date: 2011-02-09 20:08:27
Also in: lkml

On Wed, Feb 09, 2011 at 03:52:46PM +0900, KAMEZAWA Hiroyuki wrote:
On Wed, 9 Feb 2011 15:50:01 +0900
Daisuke Nishimura [off-list ref] wrote:
quoted
quoted
In hex, pc->flags was 7A00000000004 and this means PCG_USED bit is set.
This implies page_remove_rmap() may not be called but ->mapping is NULL. Hmm?
(7A is encoding of section number.)
Sigh.. it seems another freed-but-not-uncharged problem..
Ah, ok, this is maybe caused by this. I'm sorry that I missed this.
==
static inline int free_pages_check(struct page *page)
{
        if (unlikely(page_mapcount(page) |
                (page->mapping != NULL)  |
                (atomic_read(&page->_count) != 0) |
                (page->flags & PAGE_FLAGS_CHECK_AT_FREE) |
                (mem_cgroup_bad_page_check(page)))) {    <==========(*)
                bad_page(page);
                return 1;
==

Then, ok, this is a memcgroup and hugepage issue.

I'll look into.
Yes, the rest of the info on the page looked ok and shouldn't have
triggered a bad_page call. Thanks so much for looking into it.

Andrea

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help