Overcoming python performance penalty for multicore CPU

alex23 wuwei23 at gmail.com
Tue Feb 2 21:02:09 EST 2010


On Feb 3, 9:02 am, John Nagle <na... at animats.com> wrote:
>     I know there's a performance penalty for running Python on a
> multicore CPU, but how bad is it?  I've read the key paper
> ("www.dabeaz.com/python/GIL.pdf"), of course.

It's a shame that Python 3.x is dead to you, otherwise you'd be able
to enjoy the new GIL implementation in 3.2: http://www.dabeaz.com/python/NewGIL.pdf

Actually, it looks like you probably still can:
 + patch for 2.5.4: http://thread.gmane.org/gmane.comp.python.devel/109929
 + patch for 2.7? http://bugs.python.org/issue7753

(Can't comment on affinity, though, sorry)



More information about the Python-list mailing list