Limit on size of System.Alloc
Posted: 25 January 2008, 6:27 AM
In my "manytask2.bas" stress test I tried to allocate a single heap area for all of the task stacks but System.Alloc returned a zero.
After some further work I then tried allocating an area of memory for counters where each counter used 2 bytes (instead of the original 1). I found that the maximum number of integer counters I could allocate was 1791. If you include two bytes for the allocation size, the maximum is 3584 bytes (or 3.5K exactly).
This maximum of 3582 bytes appears to be undocumented.
Naturally I would like to see this limit increased (to 64768 if possible). Then the maximum tasks can be raised from 2021 to 2156
After some further work I then tried allocating an area of memory for counters where each counter used 2 bytes (instead of the original 1). I found that the maximum number of integer counters I could allocate was 1791. If you include two bytes for the allocation size, the maximum is 3584 bytes (or 3.5K exactly).
This maximum of 3582 bytes appears to be undocumented.
Naturally I would like to see this limit increased (to 64768 if possible). Then the maximum tasks can be raised from 2021 to 2156