[Python-Dev] "Fixing" the new GIL

Bill Janssen janssen at parc.com
Mon Mar 15 02:46:25 CET 2010


Antoine Pitrou <solipsis at pitrou.net> wrote:

> Le Sun, 14 Mar 2010 12:37:48 PDT,
> Bill Janssen <janssen at parc.com> a écrit :
> > 
> > The old GIL is causing me a great deal of grief.  My server is heavily
> > threaded, and when I get a number of Python 2.6 threads doing layout
> > analysis, my 4 and 8 core machines turn into slow thrashers.
> 
> Have you checked whether the 2.x patch improved your use case?
> It would be nice to get real-world feedback of which situations the
> new GIL helps (or doesn't help) improve.

Yes, good thought.  I'll try it and see if I can get some numbers.  I do
have a mix of I/O and CPU bound threads, and we are seeing core usage by
Python similar to that David originally discovered.

Bill


More information about the Python-Dev mailing list