From: "H. Peter Anvin" <hpa@zytor.com>
To: Parav Pandit <paravpandit@yahoo.com>
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: virtually and physically (page) aligned allocation
Date: Mon, 23 Feb 2009 22:32:41 -0800 [thread overview]
Message-ID: <49A39489.3090202@zytor.com> (raw)
In-Reply-To: <389971.28411.qm@web30104.mail.mud.yahoo.com>
Parav Pandit wrote:
> Hi,
>
> Can user space application allocate memory which is virtually and physically aligned to the system's page boundary in the Linux 2.6.x?
> Such as using posix_memalign().
>
> In other way,
> If user space application allocates memory which is aligned to page boundary for say 4 pages using posix_memalign(), will is ensure that it corresponds to exactly 4 physical pages in kernel which can be pinned down?
>
You can use hugetlbfs to allocate a 2 MB page, otherwise no.
-hpa
next prev parent reply other threads:[~2009-02-24 6:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-24 4:55 virtually and physically (page) aligned allocation Parav Pandit
2009-02-24 6:32 ` H. Peter Anvin [this message]
2009-02-24 23:48 ` Arnd Bergmann
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=49A39489.3090202@zytor.com \
--to=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paravpandit@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 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.