From: Jiri Slaby <jirislaby@gmail.com>
To: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>,
Shaun Savage <savages@savages.net>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: How do you allocate huge pages.
Date: Wed, 20 Jun 2007 09:32:24 +0200 [thread overview]
Message-ID: <4678D808.6030804@gmail.com> (raw)
In-Reply-To: <20070619123803.GD22468@traven>
Matthias Kaehlcke napsal(a):
> 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.
sparc64 can have pages up to 4M in size. This changes nothing in the fact, that
you should use vmalloc for such big spaces. Esp. when you allocate it after some
time from boot, otherwise fragmentation disallows you to alloc physically
contiguous memory due to fragmentation.
regards,
--
http://www.fi.muni.cz/~xslaby/ Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E
prev parent reply other threads:[~2007-06-20 7:32 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
2007-06-20 7:32 ` Jiri Slaby [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=4678D808.6030804@gmail.com \
--to=jirislaby@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matthias.kaehlcke@gmail.com \
--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.