Re: [Qemu-devel] [PATCH] linux-user: bigger default stack

2011-03-04 Thread Riku Voipio
On Thu, Mar 03, 2011 at 08:46:40AM -0800, Nathan Froyd wrote: > On Thu, Mar 03, 2011 at 06:15:49PM +0200, Riku Voipio wrote: > > 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 a

Re: [Qemu-devel] [PATCH] linux-user: bigger default stack

2011-03-03 Thread Nathan Froyd
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 defaul

Re: [Qemu-devel] [PATCH] linux-user: bigger default stack

2011-03-03 Thread Riku Voipio
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 wh

Re: [Qemu-devel] [PATCH] linux-user: bigger default stack

2011-03-03 Thread Peter Maydell
On 3 March 2011 15:46, 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

Re: [Qemu-devel] [PATCH] linux-user: bigger default stack

2011-03-03 Thread Nathan Froyd
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

[Qemu-devel] [PATCH] linux-user: bigger default stack

2011-03-03 Thread Riku Voipio
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. Signed-off-by: Riku Voipio --- linux-user/syscall.c | 28 +--- 1 files changed, 21 insertions(+), 7 deletions(-) diff