From: Hugh Dickins <hughd@google.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Bob Liu <lliubbo@gmail.com>, Mel Gorman <mgorman@suse.de>,
Linux-MM <linux-mm@kvack.org>, Rik van Riel <riel@redhat.com>,
Sasha Levin <sasha.levin@oracle.com>,
Bob Liu <bob.liu@oracle.com>
Subject: Re: [PATCH] mm: rmap: don't try to add an unevictable page to lru list
Date: Wed, 23 Apr 2014 20:08:46 -0700 (PDT) [thread overview]
Message-ID: <alpine.LSU.2.11.1404231957060.975@eggly.anvils> (raw)
In-Reply-To: <CAA_GA1fj=OXeK44NYPt205TqB8OKxOeevOpDorMoytZJebXA=Q@mail.gmail.com>
On Tue, 8 Apr 2014, Bob Liu wrote:
> On Sat, Apr 5, 2014 at 5:04 PM, Hugh Dickins <hughd@google.com> wrote:
> > On Mon, 31 Mar 2014, Bob Liu wrote:
> >
> >> VM_BUG_ON_PAGE(PageActive(page) && PageUnevictable(page), page) in
> >> lru_cache_add() was triggered during migrate_misplaced_transhuge_page.
> >>...
> >> From vmscan.c:
> >> * Reasons page might not be evictable:
> >> * (1) page's mapping marked unevictable
> >> * (2) page is part of an mlocked VMA
> >>
> >> But page_add_new_anon_rmap() only checks reason (2), we may hit this
> >> VM_BUG_ON_PAGE() if PageUnevictable(old_page) was originally set by reason (1).
> >
> > But (1) always reports evictable on an anon page, doesn't it?
> >
> >>
> >> Reported-by: Sasha Levin <sasha.levin@oracle.com>
> >> Signed-off-by: Bob Liu <bob.liu@oracle.com>
> >
> > I can't quite assert NAK, but I suspect this is not the proper fix.
...
> >
> > (Yet now I'm wavering again: if down_write mmap_sem is needed to
> > munlock() the vma, and migrate_misplaced_transhuge_page() is only
> > migrating a singly-mapped THP under down_read mmap_sem, how could
> > VM_LOCKED have changed during the migration? I've lost sight of
>
> I think you are right, I'll do more investigation about why this BUG
> was triggered.
Andrew, if Bob agrees, please drop
mm-rmap-dont-try-to-add-an-unevictable-page-to-lru-list.patch
from mmotm now. We have not heard any such report yet on 3.15-rc,
and neither Bob nor I have yet come up with a convincing explanation
for how it came about. It's tempting to suppose it was a side-effect
of something temporarily wrong on a 3.14-next, and now okay; but we'll
learn more quickly whether that's so if mmotm stops working around it.
Thanks,
Hugh
--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2014-04-24 3:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-31 3:07 Bob Liu
2014-04-05 9:04 ` Hugh Dickins
2014-04-08 8:58 ` Bob Liu
2014-04-24 3:08 ` Hugh Dickins [this message]
2014-04-24 3:23 ` Bob Liu
2014-04-24 15:39 ` [PATCH] mm: numa: Add migrated transhuge pages to LRU the same way as base pages Mel Gorman
2014-04-24 19:48 ` Hugh Dickins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LSU.2.11.1404231957060.975@eggly.anvils \
--to=hughd@google.com \
--cc=akpm@linux-foundation.org \
--cc=bob.liu@oracle.com \
--cc=linux-mm@kvack.org \
--cc=lliubbo@gmail.com \
--cc=mgorman@suse.de \
--cc=riel@redhat.com \
--cc=sasha.levin@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox