Currently the memory slice that holds the process stack is always initialized
to hold small pages. This patch defines the weak function that is declared
in the previos patch to convert the stack slice to hugetlb pages.
Signed-off-by: Eric Munson <[EMAIL PROTECTED]>
---
Based on 2.6.26-r
up the
ability to control this behavior by specifying flags for private inodes
and page reservations.
Signed-off-by: Eric Munson <[EMAIL PROTECTED]>
---
Based on 2.6.26-rc8-mm1
Changes from V1:
Add creat_flags to struct hugetlbfs_inode_info
Check if space should be reserved in hugetlbfs_fil
. unmapping a stack that
was setup at 64 bit TASK_SIZE for a 32 bit process) __do_munmap should
be called directly. do_munmap will continue to do the boundary checking
and will call __do_munmap as appropriate.
Signed-off-by: Eric Munson <[EMAIL PROTECTED]>
---
Based on 2.6.26-rc8-mm1
include
Whitcroft <[EMAIL PROTECTED]>
Signed-off-by: Eric Munson <[EMAIL PROTECTED]>
---
Based on 2.6.26-rc8-mm1
Changes from V1:
Rebase to 2.6.26-rc8-mm1
fs/exec.c | 15 ++-
include/linux/hugetlb.h |3 +++
include/linux/personality.h |3 +++
3 files
is mmapped.
Signed-off-by: Eric Munson <[EMAIL PROTECTED]>
---
Based on 2.6.26-rc8-mm1
Changes from V1:
Add comment about not padding huge stacks
Break personality_page_align helper and personality flag into separate patch
Add move_to_huge_pages function that moves the stack onto huge pag
be backed by
hugetlb pages.
Eric Munson (5):
Align stack boundaries based on personality
Add shared and reservation control to hugetlb_file_setup
Split boundary checking from body of do_munmap
Build hugetlb backed process stacks
[PPC] Setup stack memory segment for hugetlb pages
arch
Currently when a 32 bit process is exec'd on a powerpc 64 bit host the value
in the top three bytes of the personality is clobbered. This patch adds a
check in the SET_PERSONALITY macro that will carry all the values in the top
three bytes across the exec.
These three bytes currently carry flags