linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
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:59:12 -0700	[thread overview]
Message-ID: <152710000.1031255952@flay> (raw)
In-Reply-To: <150940000.1031255679@flay>

>>    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 ...

Hmmm .... looking at a little of the code, seems like MAX_ORDER is
just really badly named, and it's the maximum order + 1. 
Turn it to 11 ... that should fix it.

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/

      reply	other threads:[~2002-09-05 19:59 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
2002-09-05 19:59   ` Martin J. Bligh [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=152710000.1031255952@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