[Bug 861296] Re: mmap fails to allocate 2030Mb heap on ARM

Dr. David Alan Gilbert 861296 at bugs.launchpad.net
Wed Sep 28 10:56:53 UTC 2011


This is an artefact of a different in where the libraries are mapped on
the two architectures.

On ARM we have;
   executable
   heap
                        <---- ~1GB
   libs
                        <---- ~3GB
  stack            


So there isn't one big 2GB chunk to allocate.

On x86 they have:
   executable
   heap
                       <--- ~3GB
   libs
   
I don't know why ARM does it this way however and whether it's changeable.

Dave

-- 
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