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

Doug Barton dougb at FreeBSD.org
Tue Sep 27 22:15:36 UTC 2011


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/



More information about the cvs-ports mailing list