From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=36831 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvBC0-0000K8-7C for qemu-devel@nongnu.org; Thu, 03 Mar 2011 11:16:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvBBv-0001nv-Ew for qemu-devel@nongnu.org; Thu, 03 Mar 2011 11:15:56 -0500 Received: from afflict.kos.to ([92.243.29.197]:54539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvBBv-0001nn-3v for qemu-devel@nongnu.org; Thu, 03 Mar 2011 11:15:51 -0500 Date: Thu, 3 Mar 2011 18:15:49 +0200 From: Riku Voipio Subject: Re: [Qemu-devel] [PATCH] linux-user: bigger default stack Message-ID: <20110303161549.GA27102@afflict.kos.to> References: <20110303153737.GA23633@afflict.kos.to> <20110303154626.GA23686@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110303154626.GA23686@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nathan Froyd Cc: qemu-devel@nongnu.org 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 what sort oof cases is it inadequate? This stack is just for QEMU's > usage and QEMU shouldn't be using very much. 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 already around 5 functions deep). Our specific case we hit this is ugly, LD_PRELOAD library over glibc functions with lots messy string handling... Riku