From: Nishanth Aravamudan <nacc@us.ibm.com>
To: Christoph Lameter <clameter@sgi.com>
Cc: anton@samba.org, wli@holomorphy.com, agl@us.ibm.com,
lee.schermerhorn@hp.com, linux-mm@kvack.org
Subject: Re: [PATCH 2/4] hugetlb: fix pool allocation with empty nodes
Date: Tue, 2 Oct 2007 15:47:19 -0700 [thread overview]
Message-ID: <20071002224719.GB13137@us.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0709141152250.17038@schroedinger.engr.sgi.com>
On 14.09.2007 [11:53:25 -0700], Christoph Lameter wrote:
> On Thu, 6 Sep 2007, Nishanth Aravamudan wrote:
>
> > if (nid < 0)
> > - nid = first_node(node_online_map);
> > + nid = first_node(node_states[N_HIGH_MEMORY]);
> > start_nid = nid;
>
> Can huge pages live in high memory? Otherwise I think we could use
> N_REGULAR_MEMORY here. There may be issues on 32 bit NUMA if we
> attempt to allocate memory from the highmem nodes.
hugepages are allocated with:
htlb_alloc_mask|__GFP_COMP|__GFP_THISNODE|__GFP_NOWARN
where
static gfp_t htlb_alloc_mask = GFP_HIGHUSER;
which, in turn, is:
#define GFP_HIGHUSER \
(__GFP_WAIT | __GFP_IO | __GFP_FS | __GFP_HARDWALL | __GFP_HIGHMEM)
So, yes, they can come from HIGHMEM, AFAICT. And I've tested this
patchset (at some point in the past admittedly) on NUMA-Q.
But I'm confused by your question altogether now. Looking at
2.6.23-rc8-mm2:
memoryless-nodes-introduce-mask-of-nodes-with-memory
(74a0f5ea5609629a07fd73d59bde255a56a57fa5):
A node has its bit in N_HIGH_MEMORY set if it has any memory regardless
of t type of memory. If a node has memory then it has at least one zone
defined in its pgdat structure that is located in the pgdat itself.
And, indeed, if CONFIG_HIGHMEM is off, N_HIGH_MEMORY == N_NORMAL_MEMORY.
So I think I'm ok?
I'll make sure to test on 32-bit NUMA (well, if 2.6.23-rc8-mm2 works on
it, of course. Looks like -mm1 did and -mm2 is still pending.)
Thanks,
Nish
--
Nishanth Aravamudan <nacc@us.ibm.com>
IBM Linux Technology Center
--
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:[~2007-10-02 22:47 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-06 18:21 [PATCH 1/4] hugetlb: search harder for memory in alloc_fresh_huge_page() Nishanth Aravamudan
2007-09-06 18:24 ` [PATCH 2/4] hugetlb: fix pool allocation with empty nodes Nishanth Aravamudan
2007-09-06 18:27 ` [PATCH 3/4] hugetlb: interleave dequeueing of huge pages Nishanth Aravamudan
2007-09-06 18:28 ` [PATCH 4/4] hugetlb: add per-node nr_hugepages sysfs attribute Nishanth Aravamudan
2007-09-14 18:56 ` Christoph Lameter
2007-09-14 18:54 ` [PATCH 3/4] hugetlb: interleave dequeueing of huge pages Christoph Lameter
2007-09-14 19:03 ` Lee Schermerhorn
2007-09-14 19:42 ` Christoph Lameter
2007-09-14 20:09 ` Lee Schermerhorn
2007-09-14 20:16 ` Christoph Lameter
2007-09-14 20:33 ` Lee Schermerhorn
2007-09-24 23:23 ` Nishanth Aravamudan
2007-09-24 23:29 ` Nishanth Aravamudan
2007-09-14 18:53 ` [PATCH 2/4] hugetlb: fix pool allocation with empty nodes Christoph Lameter
2007-09-14 18:57 ` Christoph Lameter
2007-10-02 22:47 ` Nishanth Aravamudan [this message]
2007-10-02 23:39 ` Christoph Lameter
2007-09-14 17:26 ` [PATCH 1/4] hugetlb: search harder for memory in alloc_fresh_huge_page() Nishanth Aravamudan
2007-09-14 17:43 ` Christoph Lameter
2007-09-14 18:20 ` Lee Schermerhorn
2007-09-24 16:22 ` Nishanth Aravamudan
2007-09-24 19:07 ` Christoph Lameter
2007-09-14 18:51 ` Christoph Lameter
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=20071002224719.GB13137@us.ibm.com \
--to=nacc@us.ibm.com \
--cc=agl@us.ibm.com \
--cc=anton@samba.org \
--cc=clameter@sgi.com \
--cc=lee.schermerhorn@hp.com \
--cc=linux-mm@kvack.org \
--cc=wli@holomorphy.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;
as well as URLs for NNTP newsgroup(s).