Comment 27 for bug 118625

Revision history for this message
Stuart Bishop (stub) wrote : Re: [Bug 118625] Re: codebrowse sometimes hangs

On Fri, Nov 20, 2009 at 5:13 AM, Robert Collins <email address hidden> wrote:

>> And yeah, due to the way Python threads work, at least on my local
>> machine I only saw loggerhead use one core of my CPU no matter how
>> loaded it was. (I've also proposed elsewhere that there be some
>> rearchitecture to improve loggerhead's scalability, we'll see how that
>> proposal goes.)
>
> So, bzr's core is starting to release the GIL at various places -
> building multiple caches will start to get concurrency with python
> threads. (Maybe not awesome concurrency, but some).

But we would still want to limit the number of concurrently building revision caches based on the number of cores available and the amount of time blocked on IO. As long as this is configurable, the admins can tweak it to maximize our cpu utilization and throughput.

--
Stuart Bishop <email address hidden>
http://www.stuartbishop.net/