[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] xenstore: set READ_THREAD_STACKSIZE to a sane value



On Tue, 2014-03-11 at 16:25 +0000, Ian Jackson wrote:
> Ian Campbell writes ("Re: [PATCH] xenstore: set READ_THREAD_STACKSIZE to a 
> sane value"):
> > On Tue, 2014-03-11 at 17:18 +0100, Roger Pau Monnà wrote:
> > > Another question to ask would be why FreeBSD sets PTHREAD_STACK_MIN to
> > > 2048 when even a simple malloc call is going to blow that up,
> > 
> > It does seem rather aggressive, but I suppose it is "min" not
> > "sensible_min".
> 
> Well, actually, a malloc works, doesn't it ?  The problem is that we
> have about another 2-3 stack frames with a few more words, on top of
> that.

Yes.

> How about we set it to PTHREAD_STACK_MIN+1024 or something ?

I was thinking of suggesting clamping to a minimum of 4K (a page), but
this seems better.

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.