Event Timeline
Comment Actions
Try the following hack to separate the file mappings from anonymous memory allocations.
Index: vm/vm_mmap.c =================================================================== --- vm/vm_mmap.c (revision 336559) +++ vm/vm_mmap.c (working copy) @@ -307,6 +307,9 @@ * There should really be a pmap call to determine a reasonable * location. */ + if (addr == 0 && (flags & (MAP_ANON | MAP_GUARD)) == MAP_ANON) + addr = round_page((vm_offset_t)vms->vm_daddr + + 2 * lim_max(td, RLIMIT_DATA)); if (addr == 0 || (addr >= round_page((vm_offset_t)vms->vm_taddr) && addr < round_page((vm_offset_t)vms->vm_daddr +