From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2Dq4-0002ah-QQ for qemu-devel@nongnu.org; Sun, 25 Oct 2009 20:53:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2Dpz-0002WQ-Mr for qemu-devel@nongnu.org; Sun, 25 Oct 2009 20:53:36 -0400 Received: from [199.232.76.173] (port=51830 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2Dpz-0002WK-HC for qemu-devel@nongnu.org; Sun, 25 Oct 2009 20:53:31 -0400 Received: from mail2.shareable.org ([80.68.89.115]:36731) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N2Dpz-0006nX-3h for qemu-devel@nongnu.org; Sun, 25 Oct 2009 20:53:31 -0400 Date: Mon, 26 Oct 2009 00:53:28 +0000 From: Jamie Lokier Subject: Re: [Qemu-devel] [Patch] Make usermode stacksize (-s) configurable at compile-time Message-ID: <20091026005328.GA22702@shareable.org> References: <200910251622.07800.dl9pf@gmx.de> <761ea48b0910250854g2aa96a49w65eb5ede77c38f51@mail.gmail.com> <200910251841.25045.dl9pf@gmx.de> <200910251849.44301.dl9pf@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200910251849.44301.dl9pf@gmx.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan-Simon =?iso-8859-1?Q?M=F6ller?= Cc: qemu-devel@nongnu.org Jan-Simon Möller wrote: > We encontered problems with the low default value for the stacksize in usermode (ok, whats "low"). > For environments like scratchbox, its hard to use "-s" as qemu is called by binfmt mechanism. > The attached patch makes this configurable at compile-time. Note, this will only change the stack size for the main thread, at least with LinuxThreads. Other thread stacks are allocated by the pthread (LinuxThreads or NPTL), and their stack size is changed by pthread_attr_setstacksize instead. -- Jamie