Re: [PHP-DEV] [RFC] Socket activation support for PHP-FPM

2012-10-18 Thread David Strauss
On Thu, Oct 18, 2012 at 4:35 PM, Rasmus Lerdorf wrote: > Note though that in order for pools to share an opcode cache they must > be forked from the same parent process. There are ways to work around > that, but it requires some fancy fd passing footwork in APC and I guess > in many instances you

Re: [PHP-DEV] [RFC] Socket activation support for PHP-FPM

2012-10-18 Thread Rasmus Lerdorf
On 10/18/2012 04:16 PM, David Strauss wrote: > On Thu, Oct 18, 2012 at 4:06 PM, David Muir wrote: >> Upstart support would be good to have too. > > I'm aware of Upstart having some basic socket activation support, and > I'm happy to provide advice on the PHP-FPM/Linux side for integrating > it in

Re: [PHP-DEV] [RFC] Socket activation support for PHP-FPM

2012-10-18 Thread David Strauss
On Thu, Oct 18, 2012 at 4:06 PM, David Muir wrote: > Upstart support would be good to have too. I'm aware of Upstart having some basic socket activation support, and I'm happy to provide advice on the PHP-FPM/Linux side for integrating it in follow-up work. All socket activation basically works

Re: [PHP-DEV] [RFC] Socket activation support for PHP-FPM

2012-10-18 Thread David Muir
On 19/10/12 07:41, David Strauss wrote: > The full RFC, including initial patches, is here: > https://wiki.php.net/rfc/socketactivation > > In short, this allows spawning a PHP-FPM pool on-demand with systemd > initializing the main socket. > Upstart support would be good to have too. I take it t

Re: [PHP-DEV] [RFC] Socket activation support for PHP-FPM

2012-10-18 Thread David Strauss
On Thu, Oct 18, 2012 at 2:03 PM, Reinis Rozitis wrote: > What would be the advantage on using systemd instead of using FPMs native > 'ondemand' process manager? The ondemand process manager still keeps considerable memory allocated, and PHP-FPM currently has some idle CPU load (<1% per service, b

Re: [PHP-DEV] [RFC] Socket activation support for PHP-FPM

2012-10-18 Thread Reinis Rozitis
In short, this allows spawning a PHP-FPM pool on-demand with systemd initializing the main socket. What would be the advantage on using systemd instead of using FPMs native 'ondemand' process manager? rr -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http:/

[PHP-DEV] [RFC] Socket activation support for PHP-FPM

2012-10-18 Thread David Strauss
The full RFC, including initial patches, is here: https://wiki.php.net/rfc/socketactivation In short, this allows spawning a PHP-FPM pool on-demand with systemd initializing the main socket. -- David Strauss | da...@davidstrauss.net -- PHP Internals - PHP Runtime Development Mailing List To