From: Ian Campbell Subject: Re: [PATCH] xenstore: set READ_THREAD_STACKSIZE to a sane value Date: Tue, 11 Mar 2014 13:24:14 +0000 Message-ID: <1394544254.18366.68.camel@kazak.uk.xensource.com> References: <1394194978-20200-1-git-send-email-roger.pau@citrix.com> <21277.62094.517108.207924@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21277.62094.517108.207924@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: xen-devel@lists.xen.org, Roger Pau Monne List-Id: xen-devel@lists.xenproject.org On Mon, 2014-03-10 at 17:12 +0000, Ian Jackson wrote: > Roger Pau Monne writes ("[PATCH] xenstore: set READ_THREAD_STACKSIZE to a sane value"): > > On FreeBSD PTHREAD_STACK_MIN is 2048 by default, which is obviously > > too low. How does this manifest itself? (I suppose this may be answered as part of answering Ian J) > Set the default back to the previous value (16 * 1024), or if > > that's too low set it to PTHREAD_STACK_MIN. > > The "previous value" is 16K, which was used before > 35e874b1d5d56dd2098313364b879c637fa56844. In that commit, Ian C > wrote: > > Consindered setting a lower bound but the stack requirements of > the watcher thread are pretty minimal (tens of bytes from the > looks of it) and unlikely to blow PTHREAD_STACK_MIN on any useful > platform. > > I've just re-reviewed the read_thread code and I concur with Ian > Campbell's assessment. > > So I don't understand why PTHREAD_STACK_MIN isn't sufficient. Is > (nearly) that whole amount used by the C runtime system somehow ? > > Thanks, > Ian.