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

Re: [Xen-devel] [PATCH V2] xs: set read_thread stacksize



On Fri, 2012-06-01 at 19:05 +0100, Ian Jackson wrote:
> Simon Rowe writes ("[Xen-devel] [PATCH V2] xs: set read_thread stacksize"):
> > xs_watch() creates a thread to wake watchers using default attributes. The
> > stacksize can be quite large (8 MB on Linux), applications that link against
> > xenstore end up having a larger memory footprint than necessary.
> 
> Thanks.  This seems like a genuine bug but I have one comments about
> your fix.  The effect of your patch is to make the stacksize of the
> libxenstore private thread be small.
> 
> However, we do not take any care to avoid signals being delivered to
> this thread.  This is bad enough at the moment, but with your patch
> these signals may now be delivered to a thread with a small stack.
> 
> Can I request that you provide another patch too, which would probably
> come before this one, which uses pthread_sigprocmask to block all
> signals on the private thread ?  This is done by changing the signal
> mask to all signals blocked and then restoring it afterwards.

Do you mean pthread_sigmask or sigprocmask rather than the hybrid
pthread_sigprocmask (which appears not to exist).

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®.