Debugging parallel nose tests?

Roy Smith roy at panix.com
Fri May 24 07:47:45 EDT 2013


On May 24, 2013, at 5:05 AM, Jean-Michel Pichavant wrote:

> ----- Original Message -----
>> In article <mailman.2027.1369333910.3114.python-list at python.org>,
>> Dave Angel <davea at davea.name> wrote:
>> 
>>> On 05/23/2013 09:09 AM, Roy Smith wrote:
>>>> 
>>>>     <SNIP>
>>>> 
>>>> nosetests --process-timeout=60 --processes=40 test_api.py
>>>> 
>>> 
>>> Do you have a 40-processor system?
>> 
>> No, but many of the tests are I/O bound.
> 
> Sorry to hijack your thread but what do you mean by that ? 

That means that a lot of time running the test is spent waiting for I/O (in this case, network reads), as opposed to actually running on a CPU.

> I have a lot of tests myself that spend most of their time writing and reading files. Should I try to multiprocess  them ?

Maybe :-)

--
Roy Smith
roy at panix.com




More information about the Python-list mailing list