From: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
To: Shaun Savage <savages@savages.net>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: How do you allocate huge pages.
Date: Tue, 19 Jun 2007 14:38:03 +0200 [thread overview]
Message-ID: <20070619123803.GD22468@traven> (raw)
In-Reply-To: <4677C702.6050102@savages.net>
El Tue, Jun 19, 2007 at 05:07:30AM -0700 Shaun Savage ha dit:
> I am trying to allocate very large memory within the kernel. I want to
> start by allocating one huge (4M) page and using that as buffer space.
possibly vmalloc() is what you're looking for, if it isn't really a
*page* of 4M, what afaik is impossible with a standard kernel.
vmalloc() allocates virtually contiguous memory, as opposed to
kmalloc() which allocates physically contiguous memory.
--
Matthias Kaehlcke
Linux Application Developer
Barcelona
La libertad es como la mañana. Hay quienes esperan dormidos a que
llegue, pero hay quienes desvelan y caminan la noche para alcanzarla
(Subcomandante Marcos)
.''`.
using free software / Debian GNU/Linux | http://debian.org : :' :
`. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4 `-
next prev parent reply other threads:[~2007-06-19 12:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-19 12:07 How do you allocate huge pages Shaun Savage
2007-06-19 12:38 ` Matthias Kaehlcke [this message]
2007-06-20 7:32 ` Jiri Slaby
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=20070619123803.GD22468@traven \
--to=matthias.kaehlcke@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=savages@savages.net \
/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.