You might have seen this already but another user posted this to the Python group, this is exactly what I am seeing in my testing
http://groups.google.com/group/google-appengine-python/browse_thread/thread/5748848a85cec2e2/35568c4e44135383#35568c4e44135383 http://www.google.com/url?sa=D&q=https://docs.google.com/document/d/1cbiFN7ONeubDW-qDaRFuK4mtyO3kEfA9qhGEDUVdJ4w/edit%3Fpli%3D1&usg=AFQjCNEoVyzVirccwqGOcNu0blXt1jUB1Q cheers brian On Nov 5, 10:01 am, bFlood <[email protected]> wrote: > thanks Anand, good to know you guys are on the case. Brandon's comment > gave me hope so I looked into my code a little deeper. Here are a > couple of comments (I'm by no means a Python expert so I'm unsure > about a GIL details) > > 1) I still see the issue above, random delays between calls under > load. For example, a call to memcache takes a few ms on one request > but then takes 200-300ms on another. Under no load it always quick > > 2) access from the native appspot.com domain seems faster then a > custom one (I can't remember if this is an issue with the existing > runtime too) > > 3) on one of my larger tests involving existing code that was running > horribly in the threaded runtime , the main culprit turned out to be > the xml minidom. I'm assuming it's not threadsafe so I'll need to move > to lxml > > 4) I use a lot of static class methods, I'm not sure if the class def > is locked by the GIL (I had thought not) > > Is this threadsafe with the GIL? > class Util(): > @staticmethod > def DoSomething(): > pass > > 5) I'm using webapp2, are there any know issues there? > > 6) Are async RPC calls necessary to get the threadsafe benefits (ex > async urlfetch)? or can we use the standard sync calls as well? > > thanks, python27 is going to be great > brian > > On Nov 4, 9:42 pm, Anand Mistry <[email protected]> wrote: > > > > > > > > > Although I can't get into any details, we are aware of these issues in the > > python27 runtime. Like you noted, the runtime is experimental (hey, we've > > only been live for one release cycle), and improvements are still coming. > > > On a more general note, the python27 runtime is implemented using the > > CPython interpreter from python.org and hence is open to issues related to > > the GIL. I suggest > > readinghttp://wiki.python.org/moin/GlobalInterpreterLocktoget some > > background > > into multi-threading performance issues in Python. -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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/google-appengine?hl=en.
