Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 49001 invoked by uid 500); 5 Jul 2001 20:47:20 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 48986 invoked from network); 5 Jul 2001 20:47:18 -0000 Date: Thu, 05 Jul 2001 13:45:37 -0700 From: Brian Pane Subject: Re: Extraneous socket read? To: new-httpd@apache.org Message-id: <3B44D1F1.2040405@pacbell.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010628 References: X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N dean gaudet wrote: >On Mon, 2 Jul 2001, Brian Pane wrote: > >>Here's a patch that disables the read before the select, but only for >>the HTTP client socket. Can somebody with a decent benchmark lab >>test it out to see if the throughput change is significant? >> > >you can make some reasonable performance measurements with a pair of >machines and a crossover 100baseT segment. assuming you're able to max >out the 100baseT (shouldn't be hard) then you want to use "idle CPU" as >your metric. vmstat can help you there. > From a CPU consumption perspective, I'm seeing about a 3% reduction in system CPU utilization and a 0.5% increase in throughput (when sending a 10KB file to ab over the loopback). No reduction in user CPU (which makes sense in this case). These numbers are in the range that I'd have expected, given the elimination of the extra read call. However, they're also small enough to be within the normal variation of measurement error. Thus, while my initial results indicate that the patch will yield a speedup in the real world, a 3rd party benchmark wouldn't hurt. --Brian