delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/13/10:17:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <420F6F6F.6030903@iinet.net.au>
Date: Mon, 14 Feb 2005 01:17:03 +1000
From: Nick Coghlan <ncoghlan AT iinet DOT net DOT au>
Reply-To: ncoghlan AT email DOT com
User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
MIME-Version: 1.0
To: Cygwin List <cygwin AT cygwin DOT com>
Subject: Re: hyperthreading fix try #2
References: <20050211223119 DOT GA29168 AT trixie DOT casa DOT cgf DOT cx> <420F626A DOT 9030409 AT iinet DOT net DOT au>
In-Reply-To: <420F626A.9030409@iinet.net.au>

Nick Coghlan wrote:
> Christopher Faylor wrote:
> Of course, I don't actually know if this is a related problem or not. 
> I'm hoping Chris can check it easily, since it happens with the standard 
> Cygwin Python, not just with the version I built from Python's current CVS.

I took the obvious step of running that test script directly, playing with the 
number of threads spawned, and the number of files created by each thread, as 
well as adding some more print statements to the script to see where it was hanging.

Command lines looked like (with thread and file counts filled in):
$ python /lib/python2.4/test/test_threadedtempfile.py -t <threads> -f <files>

The results weren't particularly deterministic, beyond a general 'more threads, 
more files' -> 'more likely to hang'. 10 & 10 seemed to do it fairly effectively 
although even that would occasionally succeed (the default is 20 & 20).

When it *did* hang, it was with a number of threads successfully opening their 
files on an iteration, with the remainder of the threads locking up attempting 
to open a new temporary file. The next time around, the remaining threads would 
hang while attempting to open the temporary file.

The main script hangs because it is waiting for the threads to terminate.

Regards,
Nick.

-- 
Nick Coghlan   |   ncoghlan AT email DOT com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.skystorm.net

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019