From owner-freebsd-current@FreeBSD.ORG Fri Feb 6 13:21:47 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4949616A4CE for ; Fri, 6 Feb 2004 13:21:47 -0800 (PST) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 933A843D39 for ; Fri, 6 Feb 2004 13:21:34 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (sccrmhc12) with ESMTP id <200402062121320120083g41e>; Fri, 6 Feb 2004 21:21:33 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id NAA32194; Fri, 6 Feb 2004 13:21:31 -0800 (PST) Message-Id: <200402062121.NAA32194@InterJet.elischer.org> Date: Fri, 6 Feb 2004 13:21:30 -0800 (PST) From: Julian Elischer To: Daniel Eischen cc: Kris Kennaway cc: Hye-Shik Chang cc: current@FreeBSD.org Subject: Re: python ports broken (sem_destroy: Resource temporarily X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2004 21:21:47 -0000 unavailable) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 6 Feb 2004, Daniel Eischen wrote: > On Fri, 6 Feb 2004, Daniel Eischen wrote: > > > On Sat, 7 Feb 2004, Hye-Shik Chang wrote: > > > > > > Thank you very much! > > > py-bsddb unittest is successfully passed with your fixes. And almost > > > all of python regression test set is okay except test_threaded_import. > > > > > > alice(perky):/usr/local/lib/python2.3/test% sudo python test_threaded_import.py > > > Trying 20 threads ... OK. > > > Trying 50 threads ... > > > Traceback (most recent call last): > > > File "test_threaded_import.py", line 56, in ? > > > test_main() > > > File "test_threaded_import.py", line 50, in test_main > > > thread.start_new_thread(task, ()) > > > thread.error: can't start new thread > > > > > > FYI, python's thread creation routine is located on > > > work/Python-2.3.3/Python/thread_pthread.h:188. > > > > How many threads does it try after "Trying 50 threads..."? You > > may have to increase kern.threads.max_threads_per_proc. > > Arghh. It's creating system scope threads, so you have > to adjust kern.threads.max_groups_per_proc. Why? > > $ sudo sysctl kern.threads.max_groups_per_proc=100 > kern.threads.max_groups_per_proc: 50 -> 100 > $ pwd > /usr/local/lib/python2.3/test > $ sudo python test_threaded_import.py > Trying 20 threads ... OK. > Trying 50 threads ... OK. > Trying 20 threads ... OK. > Trying 50 threads ... OK. > Trying 20 threads ... OK. > Trying 50 threads ... OK. > > -- > Dan Eischen > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >