From: Ian Jackson Subject: [PATCH] xenstore: set READ_THREAD_STACKSIZE to a sane value Date: Mon, 10 Mar 2014 17:12:46 +0000 Message-ID: <21277.62094.517108.207924@mariner.uk.xensource.com> References: <1394194978-20200-1-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1394194978-20200-1-git-send-email-roger.pau@citrix.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: Roger Pau Monne Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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. 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.