PHP processes & children

Igor Clark igor at
Tue May 20 18:28:01 MSD 2008

Hi there

Not strictly an nginx question but don't know where else to ask and I  
think some of you will have valuable opinions on this!

nginx <-- fastcgi --> php

Is it better to have 1 PHP master process on 1 port re-spawning many  
children, or many PHP masters on many ports spawning fewer children?

E.g.  one master with e.g. 32 worker children on 1 port, or 4 masters  
with 8 children each on 4 ports?

Initial thoughts would be more masters as it's a multi-core box, but  
not sure, if all cores are switching and respawning could that get  

Many thanks for any input ...

Igor Clark • POKE • 10 Redchurch Street • E2 7DD • +44 (0)20 7749 5355  

More information about the nginx mailing list