From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 6 Dec 2009 01:22:34 +1100 From: Sam Watkins To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20091205142234.GC5649@nipl.net> References: <> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) Subject: Re: [9fans] ideas for helpful system io functions Topicbox-Message-UUID: a85e0930-ead5-11e9-9d60-3106f5b1d025 On Sat, Dec 05, 2009 at 08:26:20AM -0500, erik quanstrom wrote: > if you don't need to modify the data futher, then exec the guy who > does. This is my issue - when I want to exec, too much of the request data has already been read. I don't want to be calling read(fd, buf, 1) in a loop. I would like to pass the extra buffered data to the guy I am execing then let him read the rest directly from the socket, but I see no existing way to do that. hence my suggestions for alternative ways. my "join" suggestion is the most versatile so probably the best. > 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. nice. Sam