From owner-cvs-all@FreeBSD.ORG Tue Sep 27 22:15:36 2011 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id B8B4F106564A; Tue, 27 Sep 2011 22:15:36 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-198-245.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id B13871519F4; Tue, 27 Sep 2011 22:15:35 +0000 (UTC) Message-ID: <4E824B07.8080703@FreeBSD.org> Date: Tue, 27 Sep 2011 15:15:35 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.2) Gecko/20110912 Thunderbird/6.0.2 MIME-Version: 1.0 To: Li-Wen Hsu References: <201109251505.p8PF5ILo082611@repoman.freebsd.org> <4E7F84F0.7030107@FreeBSD.org> <20110927031238.GA27471@FreeBSD.cs.nctu.edu.tw> In-Reply-To: <20110927031238.GA27471@FreeBSD.cs.nctu.edu.tw> X-Enigmail-Version: undefined OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org Subject: Re: cvs commit: ports UPDATING ports/lang/python24 Makefile ports/lang/python25 Makefile ports/lang/python26 Makefile ports/lang/python27 Makefile ports/lang/python31 Makefile ports/lang/python32 Makefile X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 22:15:36 -0000 Ok, thanks. :) On 09/26/2011 20:12, Li-Wen Hsu wrote: > It's the default stack size of the system it runs on. If you don't set > THREAD_STACK_SIZE while building python, it will be defined to 0. When > running, python will skip calling pthread_attr_setstacksize(), and > pthread_create() will use the system's default value: 2MB on amd64 and > 1MB on i386. > > But in python27+, if there is no THREAD_STACK_SIZE defined by user when > building, it will be hard-coded to 0x400000 (4MB) on FreeBSD. It is > because our default stack size for new threads is too small. [1] > > Anyway, now all the values are larger or equal than the original size > we defined in ports: 128K or 1MB (with HUGE_STACK_SIZE). I think > it is right way for nowadays. There are some users reported about small > stack size causes problems for complex applications like Django. [2] > > [1] http://bugs.python.org/issue9670 > [2] http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/158679 > > Li-Wen > > On Sun, Sep 25, 2011 at 12:45:52 -0700, Doug Barton wrote: >> Since I don't know that much about python it is not clear to me if this >> is using the default stack size of the system it's built on, or the >> system it's running on. Can you clarify? >> >> >> Doug >> >> >> On 09/25/2011 08:05, Li-Wen Hsu wrote: >>> lwhsu 2011-09-25 15:05:18 UTC >>> >>> FreeBSD ports repository >>> >>> Modified files: >>> . UPDATING >>> lang/python24 Makefile >>> lang/python25 Makefile >>> lang/python26 Makefile >>> lang/python27 Makefile >>> lang/python31 Makefile >>> lang/python32 Makefile >>> Log: >>> - Remove the HUGE_STACK_SIZE option, now Python will use default >>> thread stack size of the system. >>> >>> Revision Changes Path >>> 1.1146 +9 -1 ports/UPDATING >>> 1.174 +1 -7 ports/lang/python24/Makefile >>> 1.165 +1 -6 ports/lang/python25/Makefile >>> 1.176 +1 -6 ports/lang/python26/Makefile >>> 1.179 +1 -7 ports/lang/python27/Makefile >>> 1.174 +1 -6 ports/lang/python31/Makefile >>> 1.179 +1 -6 ports/lang/python32/Makefile >>> >>> http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/UPDATING.diff?&r1=1.1145&r2=1.1146&f=h >>> http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/lang/python24/Makefile.diff?&r1=1.173&r2=1.174&f=h >>> http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/lang/python25/Makefile.diff?&r1=1.164&r2=1.165&f=h >>> http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/lang/python26/Makefile.diff?&r1=1.175&r2=1.176&f=h >>> http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/lang/python27/Makefile.diff?&r1=1.178&r2=1.179&f=h >>> http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/lang/python31/Makefile.diff?&r1=1.173&r2=1.174&f=h >>> http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/lang/python32/Makefile.diff?&r1=1.178&r2=1.179&f=h -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/