Re: [PATCH 2/3] Add MAP_LARGEPAGE for mmaping pseudo-anonymous huge page regions

From
Eric B Munson <hidden>
Date
2009-08-12 09:08:18
Also in
linux-mm
Reply to
Michael Kerrisk, 2009-08-12
On Wed, 12 Aug 2009, Michael Kerrisk wrote:
Eric,

On Wed, Aug 12, 2009 at 12:13 AM, Eric B Munson[off-list ref] wrote:
quoted
This patch adds a flag for mmap that will be used to request a huge
page region that will look like anonymous memory to user space.  This
is accomplished by using a file on the internal vfsmount.  MAP_LARGEPAGE
is a modifier of MAP_ANONYMOUS and so must be specified with it.  The
region will behave the same as a MAP_ANONYMOUS region using small pages.
Does this flag provide functionality analogous to shmget(SHM_HUGETLB)?
If so, would iot not make sense to name it similarly (i.e.,
MAP_HUGETLB)?

Cheers,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Watch my Linux system programming book progress to publication!
http://blog.man7.org/
I have no particular attachment to MAP_LARGEPAGE, I will make this chage for V2.

-- 
Eric B Munson
IBM Linux Technology Center
ebmunson@us.ibm.com

Attachments

Thread (7 messages) 7 messages, 3 authors, last reply 2009-08-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help