Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 77742 invoked from network); 8 Jan 2005 15:28:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Jan 2005 15:28:01 -0000 Received: (qmail 69484 invoked by uid 500); 8 Jan 2005 15:27:49 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 69425 invoked by uid 500); 8 Jan 2005 15:27:49 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 69411 invoked by uid 99); 8 Jan 2005 15:27:48 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from lerdorf.com (HELO colo.lerdorf.com) (66.198.51.121) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 08 Jan 2005 07:27:48 -0800 Received: from [192.168.2.102] (c-24-6-109-102.client.comcast.net [24.6.109.102]) (authenticated bits=0) by colo.lerdorf.com (8.13.2/8.13.2/Debian-1) with ESMTP id j08FRjEN004532 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 8 Jan 2005 07:27:46 -0800 Message-ID: <41DFFBF2.10603@apache.org> Date: Sat, 08 Jan 2005 07:27:46 -0800 From: Rasmus Lerdorf User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: Dumb APR_BUCKET_BUFF_SIZE question References: <41DF6163.2040509@apache.org> <41DF7F17.902@apache.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Cliff Woolley wrote: > It might be. We've considered having it be configurable before. There > are just a lot of implications in changing the value; for example, it > affects the memory footprint of the server, it affects how much data gets > read in to memory per read() call on a file bucket (which might alter the > decision of whether read() or mmap() is preferable, for example), it > affects how well the data fits into memory pages, and it affects how much > data is buffered in one block for the scenarios you described. There are > probably others I'm not thinking of right now, too. Lots of different > axes that must be considered when trying to pick an optimal value. But > still, if you want to make it configurable, go right ahead. :) Right, I saw all the things it affected which was precisely why I wondered why it wasn't made configurable. I can see perhaps protecting users from themselves, but other parts of Apache2 doesn't really follow that. The WindowSize config option in mod_deflate would be a very bad idea to change away from the default of 15, for example. Anyway, I will go play a bit with the bucket size on 64-bit boxes. -Rasmus