Hi, thanks for research this.
On Sun, May 6, 2012 at 7:53 AM, Lauri Kasanen <[email protected]> wrote: > Hi > > 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... > On a 64-bit system, I measured the max stack use at 132kb. > Setting it to 512kb leaves plenty of headroom, and 32-bit systems will > use even less. > > > 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. regards, > > - Lauri > > _______________________________________________ > Monkey mailing list > [email protected] > http://lists.monkey-project.com/listinfo/monkey > -- Eduardo Silva http://edsiper.linuxchile.cl http://www.monkey-project.com _______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
