From owner-freebsd-questions Wed Sep 11 12:20:38 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C95137B400 for ; Wed, 11 Sep 2002 12:20:34 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id A884743E42 for ; Wed, 11 Sep 2002 12:20:33 -0700 (PDT) (envelope-from sschwarzer@sschwarzer.net) Received: from [212.227.126.155] (helo=mrelayng1.kundenserver.de) by moutng1.kundenserver.de with esmtp (Exim 3.35 #1) id 17pD2L-0006vw-00 for freebsd-questions@freebsd.org; Wed, 11 Sep 2002 21:20:29 +0200 Received: from p508e41e6.dip0.t-ipconnect.de ([80.142.65.230] helo=sschwarzer.net) by mrelayng1.kundenserver.de with asmtp (Exim 3.35 #1) id 17pD2L-0000u2-00; Wed, 11 Sep 2002 21:20:29 +0200 Message-ID: <3D7F97E9.3060706@sschwarzer.net> Date: Wed, 11 Sep 2002 21:22:17 +0200 From: Stefan Schwarzer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20020901 X-Accept-Language: de-de, en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Strange threads/stack size interaction with Python/FreeBSD Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Recently, I started a thread on comp.lang.python. The discussion is here: http://groups.google.de/groups?hl=de&lr=&ie=UTF-8&oe=UTF-8&th=67e0ddce22b34a21&rnum=1 To summarize: The system is an Athlon two processor machine with 1 GB of RAM, running FreeBSD 4.6.2 (output from uname -a is: "FreeBSD purpurea.rz.tu-clausthal.de 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #8: Sun Aug 25 17:57:20 CEST 2002 svss@purpurea.rz.tu-clausthal.de:/usr/obj/usr/src/sys/PURPUREA i386"). I use Python 2.2.1 as built from the ports collection. When I increase the stack size in the kernel configuration from 256 MB to 512 MB, and build and install the kernel, thread operations that ran with the smaller stack size without problems now block. My settings in the kernel configuration are: options MAXDSIZ="(2048*1024*1024)" options DFLDSIZ="(256*1024*1024)" options MAXSSIZ="(512*1024*1024)" I did some tests, including with ktrace, and it seems to me that the problem is rather with FreeBSD than with Python. Or can even someone tell from the Google discussion thread linked above what may be wrong? (Could my shared memory and semaphore settings for PostgreSQL also have an effect?) The mentioned discussion contains are more thourough problem description including a small test script. I also added parts of the ktrace dumps there. Thanks for any help! Stefan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message