All of lore.kernel.org
 help / color / mirror / Atom feed
From: j.neuschaefer@gmx.net (Jonathan Neuschäfer)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Can i allocate 4GB virtual addresses (more than a certain limit) using vmalloc?
Date: Tue, 23 Aug 2011 00:27:38 +0200	[thread overview]
Message-ID: <20110822222738.GA29752@debian.debian> (raw)
In-Reply-To: <CAKRO8zJQXOdH=mgMfZmCgNvxJnRqnGo_vT-xArGSTx0yX01TLg@mail.gmail.com>

On Mon, Aug 22, 2011 at 04:43:55PM -0500, subin gangadharan wrote:
> Hi Dave,
> 
> >Also keep in mind that when you vmalloc stuff you're allocating in
> >units of pages, and there is a guard page between each allocation. So
> >if you had 512 Mb of virtual space (which is 131,072 pages), you'll be
> >able to vmalloc a maximum of 65536 objects or 1 page each. Fewer
> >objects if they're bigger than a page.
> 
> A quick question, Suppose if I alloc 1MB of memory using vmalloc,Is there a
> guard page between each page or is it after the 1MB.

If you do it one vmalloc call your 1MiB should be continuous, i.e. if
there's a guard page it will be after your megabyte.

HTH,
	Jonathan Neusch?fer

  reply	other threads:[~2011-08-22 22:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-31  5:54 Can i allocate 4GB virtual addresses (more than a certain limit) using vmalloc? sandeep kumar
2011-05-31  7:02 ` Mulyadi Santosa
2011-05-31  8:09   ` sandeep kumar
2011-05-31 15:19 ` Dave Hylands
2011-08-22 21:43   ` subin gangadharan
2011-08-22 22:27     ` Jonathan Neuschäfer [this message]
2011-05-31 15:27 ` Peter Teoh
2011-06-01  4:24   ` sandeep kumar

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=20110822222738.GA29752@debian.debian \
    --to=j.neuschaefer@gmx.net \
    --cc=kernelnewbies@lists.kernelnewbies.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.