Search code examples
clinuxheap-memoryglibc

Startup default heap size in Linux?


ulimit -s shows the default stack size limit.

Is there a startup default heap size ?


Solution

  • no

    in 32-bit Linux, every process see a continuous 4GB space. most of it isn't mapped to real RAM, but gets mapped on usage.

    in 64-bit it's similar but much bigger.