Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Split heap configuration example

If the Heap Analyzer logs show that 80% of the heap nodes are below 8KB, and collectively take up only 20% of the total heap space, the following initial configuration would be a good starting point:

  • CS_KHEAP_SMALL_THRESHOLD set to 8 KB
  • CS_HEAP_SMALL_SIZE set to 30% of the total available heap
  • Soft split (allowing spillover) is always the more conservative option, so it should be enabled first.

    Allowing spillover does not provide resistance to fragmentation once a partition becomes full, but will prevent allocation failures (and likely improve stability in applications that do not handle allocation requests that return a NULL pointer).