On 4/27/10 6:50 PM, Myles Watson wrote:
For suspend/resume I think we like to keep RAMTOP-RAMBASE = 1M. Last
checked, some of the fam10 boards are using RAMBASE=2M and RAMTOP=16M.
Once you start allowing 48 cores and you want page tables on all of
stacks, it gets big quickly.
How can we determine the real stack consumption? Even with a stack of only 16kb and 16 cores we spend 1/4 (256k) of the 1MB we want to spend for stacks.. that sounds incredibly wasteful.
In general that sounds like a very hard problem to solve. There are probably some tools that will help you determine stack consumption, but they probably don't like recursion or lots of the other things our code does.
If you serialize the initialization of the cores, you should only need one core0 stack and one AP stack.