diff options
author | Kurt Miller <kurt@cvs.openbsd.org> | 2008-08-22 10:41:38 +0000 |
---|---|---|
committer | Kurt Miller <kurt@cvs.openbsd.org> | 2008-08-22 10:41:38 +0000 |
commit | e364aeeaa92456126da89cd19096f18f388d1c76 (patch) | |
tree | c7cd01c3b7ccae7aced8b751375df5b9e3a94e93 /sys/arch/mips64 | |
parent | 36694beb0abb8a4ac82dee69e4672a1ef73d5ec3 (diff) |
Set PIE address range to avoid or minimize mmap pressure due to limited
address space. The space between PAGE_SIZE and the non-pie fixed link
address creates no mmap pressure so use that space for PIE. However on
hppa the non-pie fixed link address is PAGE_SIZE so just use a small range
for PIE to minimize mmap pressure.
okay miod@
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r-- | sys/arch/mips64/include/vmparam.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/mips64/include/vmparam.h b/sys/arch/mips64/include/vmparam.h index 354421b5b16..17f75734fc8 100644 --- a/sys/arch/mips64/include/vmparam.h +++ b/sys/arch/mips64/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.15 2008/07/25 21:25:25 miod Exp $ */ +/* $OpenBSD: vmparam.h,v 1.16 2008/08/22 10:41:37 kurt Exp $ */ /* $NetBSD: vmparam.h,v 1.5 1994/10/26 21:10:10 cgd Exp $ */ /* @@ -101,6 +101,10 @@ #define VM_MIN_KERNEL_ADDRESS ((vaddr_t)0xffffffffc0000000L) #define VM_MAX_KERNEL_ADDRESS ((vaddr_t)0xfffffffffffff000L) +/* map PIE below 256MB (non-pie link address) to avoid mmap pressure */ +#define VM_PIE_MIN_ADDR PAGE_SIZE +#define VM_PIE_MAX_ADDR 0x10000000UL + #ifndef VM_NFREELIST #define VM_NFREELIST 1 #endif |