lkml.org 
[lkml]   [2009]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: virtually and physically (page) aligned allocation
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



\
 
 \ /
  Last update: 2009-02-24 07:35    [W:0.040 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site