On Oct 23, 6:58 am, "Noah Kantrowitz" <[EMAIL PROTECTED]> wrote: > No, Python in general does not benefit from parallelism very much. Trac is > also not generally very CPU intensive. Postgres, on the other hand, can very > much take advantage of that so if you see your postgres workers using the > entire CPU it might help.
True, with the caveat that depending on what web hosting mechanism you use, multiple cores can still be harnessed by a Trac instance. In particular, Apache on UNIX is a multiprocess web server and if you use mod_python or mod_wsgi your Trac instance is actually running across multiple processes, so requests which end up being served by different processes can quite happily run at the same time on different CPUs or cores. If you configure FASTCGI appropriately, you can get the same benefits there as well. Also, in Apache all the network I/O handling is done at C code level by Apache with the GIL unlocked. Thus the actual I/O for concurrent requests in the same process can quite happily be running on different CPUs or cores. For more on how the GIL is not a being a problem as people make out when using Apache, see: http://blog.dscpl.com.au/2007/07/web-hosting-landscape-and-modwsgi.html Graham > > -----Original Message----- > > From: trac-users@googlegroups.com [mailto:[EMAIL PROTECTED] > > On Behalf Of TJ Yang > > Sent: Wednesday, October 22, 2008 12:24 PM > > To: Trac Users > > Subject: [Trac] Is Trac multi-threaded ? > > > Will Multi-core CPU help Trac run faster ? > > > or should I ask if Trac's python code multi-threaded ? > > > tj --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---