This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Deadly embrace between pthread_cond_wait and pthread_cond_signal
- To: Norman Vine <nhv at cape dot com>
- Subject: Re: Deadly embrace between pthread_cond_wait and pthread_cond_signal
- From: Jason Tishler <Jason dot Tishler at dothill dot com>
- Date: Thu, 28 Jun 2001 13:16:33 -0400
- Cc: cygwin-patches at cygwin dot com
- Organization: Dot Hill Systems Corp.
Norman,
On Wed, Jun 27, 2001 at 11:10:13AM -0400, Norman Vine wrote:
> Christopher Faylor writes:
> >I bet it would improve even more if we replaced the VirtualQuery
> >in path.cc, too.
>
> With Rob's new patch that does this,
> there actually isn't very much difference
>
> real 7m10.729s
> user 2m50.963s
> sys 1m11.721s
Using Cygwin CVS from this morning, with Rob's latest pthreads patch
(i.e., virtualquery.patch) as committed by Chris very early this morning
(or very, very late last night), I get the following with threads:
real 4m11.221s
user 2m8.634s
sys 0m43.902s
versus the following without threads:
real 2m16.416s
user 1m27.465s
sys 0m8.210s
FWIW, the above timings are for the full Python 2.1 regression test (sans
test_poll) running on Windows NT 4.0 SP5, PIII 500 MHz, and 256 MB RAM.
Unfortunately, the following additional regression tests fail with the
threaded version of Python:
test___all__
test_popen2
test_socket
test_sundry
See attached for details. Are you getting the same or similar failures?
And finally, I'm still getting the same hangs that I previously reported
during the Distutils part of the build. The workaround was to use a
non-threaded version of Python:
$ PYTHONPATH= /usr/bin/python ../setup.py build
...
Are you sure that your environment is a *stock* Python 2.1?
Thanks,
Jason
--
Jason Tishler
Director, Software Engineering Phone: 732.264.8770 x235
Dot Hill Systems Corp. Fax: 732.264.8798
82 Bethany Road, Suite 7 Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA WWW: http://www.dothill.com
test_grammar
test_opcodes
test_operations
test_builtin
test_exceptions
test_types
test_MimeWriter
test_StringIO
test___all__
test test___all__ crashed -- exceptions.AttributeError: 'socket' module has no attribute 'AF_INET'
test___future__
test_al
test test_al skipped -- No module named al
test_array
test_asynchat
test test_asynchat skipped -- No module named FCNTL
test_atexit
test_audioop
test_augassign
test_bastion
test_binascii
test_binhex
test_bisect
test_bsddb
test test_bsddb skipped -- No module named bsddb
test_bufio
test_capi
test_cd
test test_cd skipped -- No module named cd
test_cfgparser
test_cgi
test_charmapcodec
test_cl
test test_cl skipped -- No module named cl
test_class
test_cmath
test_coercion
test_compare
test_compile
test_complex
test_contains
test_cookie
test_copy_reg
test_cpickle
test_crypt
test_dbm
test test_dbm skipped -- No module named dbm
test_difflib
test_dl
test test_dl skipped -- No module named dl
test_doctest
test_dospath
test_dumbdbm
test_errno
test_extcall
test_fcntl
test test_fcntl skipped -- No module named FCNTL
test_file
test_fnmatch
test_fork1
test_format
test_funcattrs
test_future
test_gc
test_gdbm
test_getopt
test_gettext
test_gl
test test_gl skipped -- No module named gl
test_global
test_grp
test_gzip
test_hash
test_httplib
test_imageop
test_imgfile
test test_imgfile skipped -- No module named imgfile
test_import
test_inspect
test_largefile
test test_largefile skipped -- platform does not have largefile support
test_linuxaudiodev
test test_linuxaudiodev skipped -- No module named linuxaudiodev
test_locale
test test_locale skipped -- test locale en_US not supported
test_long
test_longexp
test_mailbox
test_math
test_md5
test_mimetools
test_minidom
test test_minidom skipped -- No module named pyexpat
test_mmap
test_new
test_nis
test test_nis skipped -- No module named nis
test_ntpath
test_openpty
test test_openpty skipped -- No openpty() available.
test_operator
test_parser
test_pickle
test_pkg
test_popen2
D:\home\jt\src\Python-2.1\threads\python.exe: *** couldn't release memory 0x1A02B000(5079040) for 'D:\home\jt\src\Python-2.1\threads\build\lib.cygwin_nt-4.0-1.3.3-i686-2.1\gdbm.dll' alignment, Win32 error 487
0 [main] python 348 sync_with_child: child 177(0x278) died before initialization with status code 0x1
207 [main] python 348 sync_with_child: *** child state child loading dlls
The actual stdout doesn't match the expected stdout.
This much did match (between asterisk lines):
**********************************************************************
test_strftime
**********************************************************************
Then ...
We expected (repr): ''
But instead we got: 'Conflict for %W (week number of the year (Mon 1st)):'
test test_popen2 crashed -- exceptions.OSError: [Errno 11] Resource temporarily unavailable
test_posixpath
test_pow
test_pty
test test_pty skipped -- No module named FCNTL
test_pwd
test_pyexpat
test test_pyexpat skipped -- cannot import name expat
test_re
test_regex
test_rfc822
test_rgbimg
test_richcmp
test_rotor
test_sax
test test_sax skipped -- no XML parsers available
test_scope
test_select
test_sha
test_signal
test_socket
test test_socket crashed -- exceptions.AttributeError: 'socket' module has no attribute 'error'
test_sre
test_strftime
test test_strftime failed -- Writing: 'Conflict for %W (week number of the year (Mon 1st)):', expected: ''
test_string
test_strop
test_struct
test_sunaudiodev
test test_sunaudiodev skipped -- No module named sunaudiodev
test_sundry
test test_sundry crashed -- exceptions.AttributeError: 'BaseHTTPServer' module has no attribute 'BaseHTTPRequestHandler'
test_symtable
test_thread
test_threadedtempfile
test_time
test_timing
test_tokenize
test_traceback
test_ucn
test_unicode
test_unicodedata
test_unpack
test_urllib
test_urlparse
test_userdict
test_userlist
test_userstring
test_wave
test_weakref
test_winreg
test test_winreg skipped -- No module named _winreg
test_winsound
test test_winsound skipped -- No module named winsound
test_xmllib
test_xreadline
test_zipfile
test_zlib
109 tests OK.
5 tests failed: test___all__ test_popen2 test_socket test_strftime test_sundry
22 tests skipped: test_al test_asynchat test_bsddb test_cd test_cl test_dbm test_dl test_fcntl test_gl test_imgfile test_largefile test_linuxaudiodev test_locale test_minidom test_nis test_openpty test_pty test_pyexpat test_sax test_sunaudiodev test_winreg test_winsound