From: David Rientjes <rientjes@google.com>
To: Hugh Dickins <hughd@google.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Andrea Arcangeli <aarcange@redhat.com>,
Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Michel Lespinasse <walken@google.com>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
stable@vger.kernel.org
Subject: Re: [patch for-3.6] mm, thp: fix mapped pages avoiding unevictable list on mlock
Date: Wed, 26 Sep 2012 18:40:04 -0700 (PDT) [thread overview]
Message-ID: <alpine.DEB.2.00.1209261821380.7745@chino.kir.corp.google.com> (raw)
In-Reply-To: <alpine.LSU.2.00.1209192021270.28543@eggly.anvils>
On Wed, 19 Sep 2012, Hugh Dickins wrote:
> Good catch, and the patch looks right to me, as far as it goes:
> but does it go far enough?
>
> I hesitate because it looks as if the NR_MLOCK zone page state is
> maintained (with incs and decs) in ignorance of THP; so although
> you will be correcting the Unevictable kB with your mlock_vma_page(),
> the Mlocked kB just above it in /proc/meminfo would still be wrong?
>
Indeed, NR_MLOCK is a separate problem with regard to thp and it's
currently incremented once for every hugepage rather than HPAGE_PMD_NR.
mlock_vma_page() needs to increment by hpage_nr_pages(page) like
add_page_to_lru_list() does.
> I suppose I'm not sure whether this is material for late-3.6:
> surely it's not a fix for a recent regression?
>
Ok, sounds good. If there's no objection, I'd like to ask Andrew to apply
this to -mm and remove the cc to stable@vger.kernel.org since the
mlock_vma_page() problem above is separate and doesn't conflict with this
code, so I'll send a followup patch to address that.
Thanks!
--
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:[~2012-09-27 1:40 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-20 1:19 David Rientjes
2012-09-20 4:01 ` Hugh Dickins
2012-09-27 1:40 ` David Rientjes [this message]
2012-09-27 1:54 ` Hugh Dickins
2012-09-27 2:29 ` [patch] mm, thp: fix mlock statistics David Rientjes
2012-09-28 1:32 ` Hugh Dickins
2012-10-03 20:10 ` Andrew Morton
2012-10-03 21:10 ` [patch -mm] mm, thp: fix mlock statistics fix David Rientjes
2012-10-03 21:25 ` Andrew Morton
2012-10-03 21:46 ` Hugh Dickins
2012-10-03 21:29 ` Hugh Dickins
2012-09-28 13:51 ` [patch] mm, thp: fix mlock statistics Andrea Arcangeli
2012-09-29 0:11 ` Michel Lespinasse
2012-10-01 15:22 ` [patch for-3.6] mm, thp: fix mapped pages avoiding unevictable list on mlock Linus Torvalds
2012-09-28 13:30 ` Andrea Arcangeli
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.DEB.2.00.1209261821380.7745@chino.kir.corp.google.com \
--to=rientjes@google.com \
--cc=aarcange@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=hughd@google.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=n-horiguchi@ah.jp.nec.com \
--cc=stable@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=walken@google.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