Re: python ports broken (sem_destroy: Resource temporarily

From: Julian Elischer <julian_at_elischer.org>
Date: Fri, 6 Feb 2004 13:21:30 -0800 (PST)
 unavailable)
In-Reply-To: <Pine.GSO.4.10.10402061515230.6349-100000_at_pcnet5.pcnet.com>
Message-ID: <Pine.BSF.4.21.0402061321030.24800-100000_at_InterJet.elischer.org>
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_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 
Received on Fri Feb 06 2004 - 12:21:47 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:42 UTC