Re: [Twisted-Python] Twisted webserver performance issues

2009-11-08 Thread sstein...@gmail.com
On Nov 7, 2009, at 11:26 PM, James Y Knight wrote: > When I last looked into the performance issues, I found that sometimes > trac appears to block for long periods of time without releasing the > GIL. That seems to be the core of the performance issues, Any Earthly idea which part of trak is re

Re: [Twisted-Python] Twisted webserver performance issues

2009-11-08 Thread exarkun
On 06:26 am, ley...@ihug.co.nz wrote: >Neither of the below issues will be a problem > >Jean-Paul >Logged in users have a cookie set (I imagine). by default Varnish will >not present cached results to users with a cookie, nor will it cache >their results for others to see. So the 10% of hits (tot

Re: [Twisted-Python] Twisted webserver performance issues

2009-11-08 Thread exarkun
On 04:26 am, f...@fuhm.net wrote: >When I last looked into the performance issues, I found that sometimes >trac appears to block for long periods of time without releasing the >GIL. That seems to be the core of the performance issues, currently. >When it's responding normally, it's perfectly snappy

Re: [Twisted-Python] Twisted webserver performance issues

2009-11-08 Thread Maarten ter Huurne
On Sunday 08 November 2009, James Y Knight wrote: > When I last looked into the performance issues, I found that sometimes > trac appears to block for long periods of time without releasing the > GIL. That seems to be the core of the performance issues, currently. > When it's responding normally,

Re: [Twisted-Python] Daemon processes on windows

2009-11-08 Thread Žiga Seilnacht
Brian Granger wrote: Fantastic, thanks for sharing this code. I will definitely have a look. If it turns out to work for us, would you mind releasing this under a BSD license so we can include it in IPython (BSD open source project)? In either case, the ideas will be very helpful to us. Cheer

Re: [Twisted-Python] Daemon processes on windows

2009-11-08 Thread Brian Granger
Sure, you can find a slightly updated version of the code in the attachment, licensed under the two clause BSD license and without the syntax error. Thank you very much for being willing to share this code under the BSD license. I will try this out and see if it does the job for us. > It would

Re: [Twisted-Python] Twisted webserver performance issues

2009-11-08 Thread Nitro
Am 08.11.2009, 15:54 Uhr, schrieb Maarten ter Huurne : > On Sunday 08 November 2009, James Y Knight wrote: > >> When I last looked into the performance issues, I found that sometimes >> trac appears to block for long periods of time without releasing the >> GIL. That seems to be the core of the

Re: [Twisted-Python] Twisted webserver performance issues

2009-11-08 Thread James Y Knight
On Nov 8, 2009, at 9:02 AM, exar...@twistedmatrix.com wrote: > On 04:26 am, f...@fuhm.net wrote: >> When I last looked into the performance issues, I found that >> sometimes >> trac appears to block for long periods of time without releasing the >> GIL. That seems to be the core of the performa

Re: [Twisted-Python] Twisted 9, do you want it

2009-11-08 Thread Glyph Lefkowitz
On Nov 5, 2009, at 11:00 PM, Christopher Armstrong wrote: > I'm working on it. The core NEWS file is done I think. NEWS for other > projects will be worked on tomorrow. How's this coming along? ___ Twisted-Python mailing list Twisted-Python@twistedmat

Re: [Twisted-Python] Daemon processes on windows

2009-11-08 Thread David Bolen
Žiga Seilnacht writes: > It is possible to daemonize a process on Windows. I experimented with > adding that support to the twistd script, but got swamped with other > work and couldn't finish it. Below is the code that I have so far. You > can save it in a module and call the daemonize() func

Re: [Twisted-Python] Twisted 9, do you want it

2009-11-08 Thread Christopher Armstrong
On Sun, Nov 8, 2009 at 7:57 PM, Glyph Lefkowitz wrote: > On Nov 5, 2009, at 11:00 PM, Christopher Armstrong wrote: > >> I'm working on it. The core NEWS file is done I think. NEWS for other >> projects will be worked on tomorrow. > > How's this coming along? Hi! I've done the web NEWS file as wel

Re: [Twisted-Python] Daemon processes on windows

2009-11-08 Thread Brian Granger
David, While this process is certainly doable, I'll also point out that on > Windows, the more "natural" approach to this is to implement the > process as a service. That also buys you some regular Windows > approaches to management (net stop/start from command line, services > UI from the contr

Re: [Twisted-Python] Daemon processes on windows

2009-11-08 Thread James Y Knight
On Nov 8, 2009, at 10:54 PM, Brian Granger wrote: Bummer, then I can't use this approach. My "server" uses reactor.spawnProcess which needs the signal handlers to be installed (SIGCHLD specifically) to work properly... do you know if it can be done without the dual thread trick. ...On win

Re: [Twisted-Python] Daemon processes on windows

2009-11-08 Thread Brian Granger
Bummer, then I can't use this approach. My "server" uses reactor.spawnProcess > which needs the signal handlers to be installed (SIGCHLD specifically) to > work > properly... do you know if it can be done without the dual thread trick. > > > ...On windows? I don't think Windows has SIGCHLD. > > Y

[Twisted-Python] Twisted web

2009-11-08 Thread Simon Pickles
Hi all, I am returning to twisted after an extended absence, and was wondering what the status is with twisted's web framework? Is this an active area of development? Also looking forward to Twisted9. :) Many thanks Simon ___ Twisted-Python ma