On 12 April 2010 20:43, Andy <[email protected]> wrote:
> My understanding is that it's beneficial to run mod_wsgi in multi-
> threaded mode despite of Python's GIL because database wrappers like
> MySQLdb release the GIL before it calls the underlying C driver.
>
> Recently I was told that pylibmc, the python wrapper for libmemcached,
> doesn't release the GIL.

I'd suggest you look at the code for pylibmc rather than rely on what
someone has said. If they aren't releasing the GIL around potentially
blocking calls then it is a major blunder. I would be very surprised
if they had made such a mistake and I have never heard anything to
suggest there is a problem.

> Does anyone know if python-memcached (a pure python memcached client)
> release the GIL or not?
>
> And in generally, are there any other commonly used drivers that don't
> release the GIL that users of multi-threaded mod_wsgi should be aware
> of?

Never heard of any. People usually get it right.

If you find out any further information about pylibmc please let us know.

Graham

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to