Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 94570 invoked from network); 18 Sep 2005 22:27:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Sep 2005 22:27:38 -0000 Received: (qmail 71778 invoked by uid 500); 18 Sep 2005 22:27:37 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 71717 invoked by uid 500); 18 Sep 2005 22:27:37 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 71703 invoked by uid 99); 18 Sep 2005 22:27:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Sep 2005 15:27:37 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [82.195.144.76] (HELO loughan.stdlib.net) (82.195.144.76) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Sep 2005 15:27:45 -0700 Received: from colmmacc by loughan.stdlib.net with local (Exim 4.50) id 1EH7dE-0007AQ-Rd for dev@apr.apache.org; Sun, 18 Sep 2005 23:27:32 +0100 Date: Sun, 18 Sep 2005 23:27:32 +0100 From: Colm MacCarthaigh To: dev@apr.apache.org Subject: Re: [PATCH] Configurable read/write buffer sizes Message-ID: <20050918222732.GA27486@stdlib.net> Reply-To: colm@stdlib.net References: <20050906204911.GA5989@stdlib.net> <20050907083808.GC4636@redhat.com> <20050907092208.GA10137@stdlib.net> <20050909135740.GA2739@stdlib.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20050909135740.GA2739@stdlib.net> User-Agent: Mutt/1.5.9i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Anyone had a change to look at any of the below? (Thanks for committing the docs nit Garrett). 01-flags-stdio.patch is the one I actually have a dependency on right now, and is also relatively simple. I'd really appreciate some feedback on that. I can live with arguing a case for variable buffer sizes. If benchmarks will help; I can run a tonne. I've seeing some pretty nifty speed-ups when I apply large buffer sizes to parts of httpd (and sometimes even suprising places, like rotatelogs). If it helps, I'm usually in #apr, feel free to bug me there. On Fri, Sep 09, 2005 at 02:57:40PM +0100, Colm MacCarthaigh wrote: > O.k., I've done some new patches and a few read throughs to think the > implications of a large buffer size out, and implemented a flags-capable > variant of the stdin/out/err openers. > > I believe apr_size_t is safe, apart from the circumstance where someone > tries to assign a vlue to the buffer size that would overflow an > apr_size_t anyway, so not worth worrying about. > > The patches are all at; > > http://people.apache.org/~colm/apr-IO-patches/ > > They are all against trunk, but can be applied in sequence, there's only > one slight offset change that patch has to figure out. > > 001-flags-stdio.patch Implement apr_file_open_flags_std(err|out|in) > Nothing major, but I've also set APR_READ > or APR_WRITE as appropriate, purely for the > sake of apr_file_flags_get(); > > 002-set-buffer.patch APR-wide changes to implement > apr_file_set_buffer() and apr_file_buffer_size_get(), > includes a testcase > > 003-set-buffer-unix.patch Unix implementation of same, tested on Ubuntu > > 004-set-buffer-win32.patch Win32 implementation, tested w2k3. I didn't include > the changes to the dsp files, because VS2005 to behave. > > 005-set-buffer-netware.patch Netware header changes neccessary, untested > > 006-set-buffer-os2.patch OS implementation, untested, based on inspection > > -- > Colm MacC�rthaigh Public Key: colm+pgp@stdlib.net > -- Colm MacC�rthaigh Public Key: colm+pgp@stdlib.net