From: Pintu Agarwal <pintu_agarwal@yahoo.com>
To: Linux-MM <linux-mm@kvack.org>, LKML <linux-kernel@vger.kernel.org>
Subject: Memory allocation from ZONE_HIGHMEM ???
Date: Wed, 13 Jul 2011 23:45:25 -0700 (PDT) [thread overview]
Message-ID: <1310625925.65469.YahooMailNeo@web162002.mail.bf1.yahoo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1020 bytes --]
Hi,
I have a question regarding kernel memory allocation(using kmalloc) from ZONE_HIGHMEM zone.
I have a custom linux kernel2.6.36 running on linux mobile (arm cortexA9)
I have two zones on my system as shown by buddyinfo.
=====================================================
/opt/home/root # cat /proc/buddyinfo
Node 0, zone Normal 2 32 22 14 12 4 12 3 0 1 23
Node 0, zone HighMem 529 243 114 43 25 23 19 19 16 14 27
=====================================================
When I do memory allocation using kmalloc, the pages are allocated from Normal zone.
My allocation size is for order-10 pages = 23 * 1024 * PAGE_SIZE = 80MB
If I use more than that my allocation will fail which is obvious.
But I want to specifically allocate pages from ZONE_HIGHMEM instead of Normal zone.
How to explicitly do that in kernel?
If somebody have tried this please let me know.
Thanks, Regards,
Pintu
[-- Attachment #2: Type: text/html, Size: 2537 bytes --]
next reply other threads:[~2011-07-14 6:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-14 6:45 Pintu Agarwal [this message]
2011-07-14 19:34 ` 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=1310625925.65469.YahooMailNeo@web162002.mail.bf1.yahoo.com \
--to=pintu_agarwal@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/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