[ZODB-Dev] Re: ZEO and time.sleep

Jim Fulton jim at zope.com
Thu Mar 29 10:21:54 EDT 2007


On Mar 29, 2007, at 10:11 AM, Jürgen Kartnaller wrote:

>
>
> Jim Fulton wrote:
>> On Mar 29, 2007, at 3:51 AM, Jürgen Kartnaller wrote:
>>>
>>>
>>> Jim Fulton wrote:
>>>> On Mar 28, 2007, at 6:37 PM, Benji York wrote:
>>>>> Jim Fulton wrote:
>>>>>> On Mar 28, 2007, at 6:28 PM, Benji York wrote:
>>>>>>
>>>>>>> threading.Connection
>>>>>> threading.Condition :)
>>>>>
>>>>> Yeah, that. :)
>>>>>
>>>>>> What was the time to return the first request after the fix?
>>>>>
>>>>> I didn't stick around for the post-Linux-kernel-recompile  
>>>>> testing, but when we hacked the Python standard library to use  
>>>>> sleep(0) all the time (emulating an infinite granularity  
>>>>> timer), it went down to about 10 seconds.  A pretty nice  
>>>>> improvement. ;)
>>>> And the original time was 15 minutes! :)
>>>
>>> My test environment on MAC OS-X is loading my frontpage in 2:50  
>>> min after restarting zope.
>>> with your fix and the one I made in a ZODB branch using nanosleep  
>>> is went down to 27 sec.
>> I'm confused.   Was the 27 seconds with both changes together? Or  
>> did each change individually lead to a 27 second time?
>
> Each canche individual.
> Both have the same result.

Cool. They both address the same problem individually, at least in  
theory, but I'st nice to know the 2 changes were tested separately.

Jim

--
Jim Fulton			mailto:jim at zope.com		Python Powered!
CTO 				(540) 361-1714			http://www.python.org
Zope Corporation	http://www.zope.com		http://www.zope.org





More information about the ZODB-Dev mailing list