On Sat Dec 5 00:12:53 EST 2009, lyn...@orthanc.ca wrote: > > Where FD passing is useful is to avoid that fork/exec overhead. > > Sorry -- brain in neutral. Where FD passing wins BIG is that the front-end > process doesn't have to do copy-through of all the data between the > network and the back-end process.
if you don't need to modify the data futher, then exec the guy who does. by the way, during some recent testing, i was able to move ~100k packets-per-second and create 25 million new processes / day with a load of 0 on a lowly 1.6ghz woodcrest. if you were to get 25m http requests/day and each did only 4k of i/o that's 97gb/day which is > 10mbit. i think for many net-facing applications, you'll easily be able to fork/exec fast enough and eliminating the fork/exec would be a premature optimization that would cost tons in development, debugging and maintence time. - erik