On Thu, Mar 03, 2011 at 06:15:49PM +0200, Riku Voipio wrote: > On Thu, Mar 03, 2011 at 07:46:27AM -0800, Nathan Froyd wrote: > > On Thu, Mar 03, 2011 at 05:37:37PM +0200, Riku Voipio wrote: > > > PTHREAD_STACK_MIN (16KB) is somewhat inadequate for a new stack. follow > > > the pthread_create defaults, ie setting to RLIMIT_STACK or if unlimited > > > to 2MB. > > > For what sort oof cases is it inadequate? This stack is just for QEMU's > > usage and QEMU shouldn't be using very much. > > QEMU linux-user calls glibc functions which, while usually very conservative > with memory usage, are not guaranteed not take less than 10KB (at do_syscall > we are already around 5 functions deep).
Bleh. OK, so it needs to be increased. Could we get by with somewhat less (256K?), to try and maximize the number of threads we can potentially run? Maybe it doesn't matter (people creating thousands of simultaneous threads inside QEMU have other problems...), but not gratuitously wasting memory would be good. -Nathan