Re: [PHP-DEV] PHP scalability problem

2009-05-26 Thread Eddie Drapkin
nginx and php-fpm is the fastest setup I could find, after spending almost 2 weeks trying different combinations. Apache pre-fork model: 1900 reqs/second (this is with running queries per pageload) nginx w/ fpm: 3400 reqs/second And nginx's doc setup is awesome. Like Michael said, scaling PHP it

Re: [PHP-DEV] PHP scalability problem

2009-05-26 Thread Michael Shadle
Succinct and great reply. Better webserver: nginx :) #3 is probably the most important piece. I'd like to also note scaling php is pretty simple. Scaling out typically provides better results as opposed to scaling up. Scaling your datastore will always be your pain point. Adding new data no

Re: [PHP-DEV] PHP scalability problem

2009-05-26 Thread Marco Tabini
On 26-May-09, at 11:10 PM, tRace DOliveira wrote: What I am trying to achieve is to have the server do less processing. Like I said PHP is a server side scripting language and each time a request is made a process is spawned and processes are heavy weight as compared to a thread which is a

[PHP-DEV] PHP scalability problem

2009-05-26 Thread tRace DOliveira
What I am trying to achieve is to have the server do less processing. Like I said PHP is a server side scripting language and each time a request is made a process is spawned and processes are heavy weight as compared to a thread which is a light weight process. So I want to take away much proce

Re: [PHP-DEV] PHP scalability problem

2009-05-26 Thread Eddie Drapkin
1) PHP is Rarely The Bottleneck: http://talks.php.net/show/drupal08/ 2) Invest in an opcode cache 3) DB I/O is always the most restrictive part of your application, read the mysql performance blog (a lot applies for postgres too) 4) If you're serious about scal

[PHP-DEV] PHP scalability problem

2009-05-26 Thread tRace DOliveira
PHP is a server side scripting language, so that means that the server will have to do the bulk of the processing if not most. I was thinking about shifting the processing to the client. Kinda like how java does it. I don't know really know how java does it but it would be interesting if it cou

Re: [PHP-DEV] Removing zend_hash_func in PHP 6.0

2009-05-26 Thread shire
Antony Dovgal wrote: On 26.05.2009 16:13, David Soria Parra wrote: Hi List, I recently discovered that zend_hash_func is equal to zend_get_hash_value. To clean this up, I would like to remove zend_hash_func in favor of zend_get_hash in HEAD. If there are no objections I would commit a patch in

Re: [PHP-DEV] [PHP] Question about Olivier's method

2009-05-26 Thread Paul Biggar
On Tue, May 26, 2009 at 7:31 PM, Hannes Magnusson wrote: > On Tue, May 26, 2009 at 20:21, Paul Biggar wrote: >> "The link below to the Oliver document appears to be broken. Here is >> one that works: http://citeseer.ist.psu.edu/oliver93decision.html"; > > That link is broken to, but archive.org h

Re: [PHP-DEV] [PHP] Question about Olivier's method

2009-05-26 Thread Paul Biggar
On Tue, May 26, 2009 at 7:31 PM, Hannes Magnusson wrote: > On Tue, May 26, 2009 at 20:21, Paul Biggar wrote: >> "The link below to the Oliver document appears to be broken. Here is >> one that works: http://citeseer.ist.psu.edu/oliver93decision.html"; > > That link is broken to, but archive.org h

Re: [PHP-DEV] [PHP] Question about Olivier's method

2009-05-26 Thread Hannes Magnusson
On Tue, May 26, 2009 at 20:21, Paul Biggar wrote: > On Tue, May 26, 2009 at 7:06 PM, Hannes Magnusson > wrote: >> On Tue, May 26, 2009 at 16:17, paul (aka: azmodai) > >> So, who is this Oliver - and where is that description/pseudo code? :) > > A note on that page (from brad dot fish at gmail dot

Re: [PHP-DEV] [PHP] Question about Olivier's method

2009-05-26 Thread Paul Biggar
On Tue, May 26, 2009 at 7:06 PM, Hannes Magnusson wrote: > On Tue, May 26, 2009 at 16:17, paul (aka: azmodai) > So, who is this Oliver - and where is that description/pseudo code? :) A note on that page (from brad dot fish at gmail dot com on 24-Feb-2006 10:30) says: "The link below to the Oliv

Re: [PHP-DEV] [PHP] Question about Olivier's method

2009-05-26 Thread Hannes Magnusson
On Tue, May 26, 2009 at 16:17, paul (aka: azmodai) wrote: > Hello, > > I'm looking for information about Olivier's method in order to supplement a > talk. I spent a lot of time on engine searchers and I didn't find something > documented enough to make me understand the way of working of such a me

[PHP-DEV] [PHP] Question about Olivier's method

2009-05-26 Thread paul (aka: azmodai)
Hello, I'm looking for information about Olivier's method in order to supplement a talk. I spent a lot of time on engine searchers and I didn't find something documented enough to make me understand the way of working of such a method. Then I decided to contact you directly. Because I use the php

Re: [PHP-DEV] Removing zend_hash_func in PHP 6.0

2009-05-26 Thread Antony Dovgal
On 26.05.2009 16:13, David Soria Parra wrote: > Hi List, > > I recently discovered that zend_hash_func is equal to > zend_get_hash_value. To clean this up, I would like to remove > zend_hash_func in favor of zend_get_hash in HEAD. If there are no > objections I would commit a patch in a few day

Re: [PHP-DEV] Removing zend_hash_func in PHP 6.0

2009-05-26 Thread David Coallier
2009/5/26 David Soria Parra : > Hi List, > > I recently discovered that zend_hash_func is equal to zend_get_hash_value. > To clean this up, I would like to remove zend_hash_func in favor of > zend_get_hash in HEAD. If there are no objections I would commit a patch in > a few days. Did you grep thr

[PHP-DEV] Removing zend_hash_func in PHP 6.0

2009-05-26 Thread David Soria Parra
Hi List, I recently discovered that zend_hash_func is equal to zend_get_hash_value. To clean this up, I would like to remove zend_hash_func in favor of zend_get_hash in HEAD. If there are no objections I would commit a patch in a few days. David -- PHP Internals - PHP Runtime Development Ma