From: "Martin J. Bligh" <Martin.Bligh@us.ibm.com>
To: vyas niranjan <vyas_nir@yahoo.com>, linux-mm@kvack.org
Subject: Re: 4MB of physical contiguous memory allocation in Linux
Date: Thu, 05 Sep 2002 12:54:39 -0700 [thread overview]
Message-ID: <150940000.1031255679@flay> (raw)
In-Reply-To: <20020905194735.79408.qmail@web14504.mail.yahoo.com>
> I am writing a driver whereI am trying to allocate
> 4MB of Physical contiguous memory. Using
> __get_free_pages, I can allocate maximum of 512 pages
> in Linux. Is there any way of allocating 4MB of
> Physical contiguous memory in Linux??
If MAX_ORDER is 10, which it is by default, I think, you should
be able to get 2^10 = 1024 pages = 4Mb. What happens if you
do an order 10 allocation? Or turn MAX_ORDER up a little, and
see what happens ...
M.
--
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/
next prev parent reply other threads:[~2002-09-05 19:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-05 19:47 vyas niranjan
2002-09-05 19:54 ` Martin J. Bligh [this message]
2002-09-05 19:59 ` Martin J. Bligh
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=150940000.1031255679@flay \
--to=martin.bligh@us.ibm.com \
--cc=linux-mm@kvack.org \
--cc=vyas_nir@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