From: Nishanth Aravamudan <nacc@us.ibm.com>
To: Mel Gorman <mel@csn.ul.ie>
Cc: linuxppc-dev@ozlabs.org, Jon Tollefson <kniht@linux.vnet.ibm.com>,
libhugetlbfs-devel@lists.sourceforge.net
Subject: Re: [Libhugetlbfs-devel] Buglet in 16G page handling
Date: Tue, 2 Sep 2008 09:25:17 -0700 [thread overview]
Message-ID: <20080902162517.GC6753@us.ibm.com> (raw)
In-Reply-To: <20080902124442.GD29766@csn.ul.ie>
On 02.09.2008 [13:44:42 +0100], Mel Gorman wrote:
> On (02/09/08 15:05), David Gibson didst pronounce:
> > When BenH and I were looking at the new code for handling 16G pages,
> > we noticed a small bug. It doesn't actually break anything user
> > visible, but it's certainly not the way things are supposed to be.
> > The 16G patches didn't update the huge_pte_offset() and
> > huge_pte_alloc() functions, which means that the hugepte tables for
> > 16G pages will be allocated much further down the page table tree than
> > they should be - allocating several levels of page table with a single
> > entry in them along the way.
> >
> > The patch below is supposed to fix this, cleaning up the existing
> > handling of 64k vs 16M pages while its at it. However, it needs some
> > testing.
> >
>
> Actually, Jon has been hitting an occasional pagetable lock related
> problem. The last theory was that it might be some sort of race but it's
> vaguely possible that this is the issue. Jon?
>
> > I've checked that it doesn't break existing 16M support, either with
> > 4k or 64k base pages. I haven't figured out how to test with 64k
> > pages yet, at least until the multisize support goes into
> > libhugetlbfs.
>
> Mount a 64K point yourself and then set HUGETLB_PATH?
I don't think this will work, because we don't use fstatfs() to figure
out the pagesize, but instead assume meminfo and the fs are the same
hugepage size (but on power it will always be 16M in meminfo).
Thanks,
Nish
next prev parent reply other threads:[~2008-09-02 16:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-02 5:05 Buglet in 16G page handling David Gibson
2008-09-02 12:44 ` [Libhugetlbfs-devel] " Mel Gorman
2008-09-02 16:25 ` Nishanth Aravamudan [this message]
2008-09-02 21:05 ` Benjamin Herrenschmidt
2008-09-02 22:16 ` Jon Tollefson
2008-09-02 22:53 ` Benjamin Herrenschmidt
2008-09-03 14:11 ` Jon Tollefson
2008-09-02 17:12 ` Jon Tollefson
2008-09-03 0:20 ` [Libhugetlbfs-devel] " David Gibson
2008-09-03 22:19 ` Jon Tollefson
2008-09-04 6:22 ` David Gibson
2008-09-04 21:08 ` Jon Tollefson
2008-09-05 1:36 ` David Gibson
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=20080902162517.GC6753@us.ibm.com \
--to=nacc@us.ibm.com \
--cc=kniht@linux.vnet.ibm.com \
--cc=libhugetlbfs-devel@lists.sourceforge.net \
--cc=linuxppc-dev@ozlabs.org \
--cc=mel@csn.ul.ie \
/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;
as well as URLs for NNTP newsgroup(s).