From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Sat, 5 Dec 2009 08:26:20 -0500 To: 9fans@9fans.net Message-ID: In-Reply-To: <> References: <> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] ideas for helpful system io functions Topicbox-Message-UUID: a8434ef6-ead5-11e9-9d60-3106f5b1d025 On Sat Dec 5 00:12:53 EST 2009, lyndon@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