From: Christoph Lameter <cl@linux.com>
To: Pintu Agarwal <pintu_agarwal@yahoo.com>
Cc: "mgorman@suse.de" <mgorman@suse.de>,
"linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: Re: Tracking page allocation in Zone/Node
Date: Mon, 15 Aug 2011 08:58:07 -0500 (CDT) [thread overview]
Message-ID: <alpine.DEB.2.00.1108150855580.22335@router.home> (raw)
In-Reply-To: <1313384511.62052.YahooMailNeo@web162020.mail.bf1.yahoo.com>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 898 bytes --]
On Sun, 14 Aug 2011, Pintu Agarwal wrote:
> Thanks Christoph for your reply :)
>
> > Weird system. One would expect it to only have NORMAL zones. Is this an
> > ARM system?
>
> Yes this is an ARM based system for linux mobile phone.
Ok.Maybe The memory setup is broken. Make the DMA zones into NORMAL
zones?
> Yes, I tried exactly like this, but since I have only one zone (DMA), it always returns me the data from the first Node 0.
> This will only work, if I have 3 separate zones (DMA, Normal, HighMem)
Well yes that is the way its designed. DMA is an exceptional zone.
> In "__alloc_pages_nodemask", before the actual allocation happens, how to find out the allocation is going to happen from which zone and which Node.?
> (The _preferred_zone_ info is not enough, I need to know the Node number as well)
You can get the node number from a zone. Use zone_to_nid().
prev parent reply other threads:[~2011-08-15 13:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-12 11:00 Pintu Agarwal
2011-08-12 16:08 ` Christoph Lameter
2011-08-15 5:01 ` Pintu Agarwal
2011-08-15 8:06 ` Bob Liu
2011-08-15 13:58 ` Christoph Lameter [this message]
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.1108150855580.22335@router.home \
--to=cl@linux.com \
--cc=linux-mm@kvack.org \
--cc=mgorman@suse.de \
--cc=pintu_agarwal@yahoo.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