Skip to content

Commit

Permalink
[S390] reduce miminum gap between stack and mmap_base
Browse files Browse the repository at this point in the history
Reduce minimum gap between stack and mmap_base to 32MB. That way there
is a bit more space for heap and mmap for tight 31 bit address spaces.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Jan 12, 2011
1 parent 9046e40 commit 9e78a13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/s390/mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ static unsigned long stack_maxrandom_size(void)
/*
* Top of mmap area (just below the process stack).
*
* Leave an at least ~128 MB hole.
* Leave at least a ~32 MB hole.
*/
#define MIN_GAP (128*1024*1024)
#define MIN_GAP (32*1024*1024)
#define MAX_GAP (STACK_TOP/6*5)

static inline unsigned long mmap_base(void)
Expand Down

0 comments on commit 9e78a13

Please sign in to comment.