> > This drops Monkey's RAM use from 56.6mb to 4.2mb. > > > > Why do you assume that the process is using 56.6MB ?, no matters how > bigger the stack is.. the kernel will not waste memory pages if they > are not required...
Yes, they aren't used, but they do consume the virtual address space, which is limited on 32bit platforms (2gb default, IIRC). I thought it'd make sense to save on that too, given the embedded focus ;) > > > > Linux defaults to 8mb stacks (one per thread), and we can quite comfortably > > drop 7.5mb off each of them. Note that this RAM is not measured by valgrind > > (it measures heap only), you can count it with "pmap -d PID". > > I think that we do not need to play with the stack size in the source > code, because most of this is up to the OS setup, otherwise we will > need to cover all specific scenarios, i would suggest just leave it as > it works now because the stack size can be adjusted from the parent > process through 'ulimit' user space program. - Lauri _______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
