[Bug 861296] Re: mmap fails to allocate 2030Mb heap on ARM
Ulrich Weigand
861296 at bugs.launchpad.net
Wed Sep 28 15:31:49 UTC 2011
Note that all this is decided by the kernel's mmap area allocation
strategy; see the various "get_unmapped_area" routines in platform-
specific kernel code (e.g arch/arm/mm/mmap.c:arch_get_unmapped_area vs.
x86/kernel/sys_x86_64.c:arch_get_unmapped_area_topdown).
If any change is required here (and this behaviour *was* in fact changed
on x86; they used to behave the same way arm still does), it needs to be
done on the kernel side.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to eglibc in Ubuntu.
https://bugs.launchpad.net/bugs/861296
Title:
mmap fails to allocate 2030Mb heap on ARM
Status in Linaro Toolchain Miscellanies:
New
Status in “eglibc” package in Ubuntu:
New
Bug description:
The attached testcase pass on ia32 but fails on armel systems running oneiric.
test system got 512mb of ram and 3Gb of swap.
gcc mmap-test.c -o mmap-test
./mmap-test
on my pandaboard I hit Couldn't allocate the heap: 2025Mb
on my ac100 I hit Couldn't allocate the heap: 2027Mb
The testcase fails to allocate heap on armel in the range of
2023-2030Mb and above.
To manage notifications about this bug go to:
https://bugs.launchpad.net/linaro-toolchain-misc/+bug/861296/+subscriptions
More information about the foundations-bugs
mailing list