Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 66846 invoked from network); 18 Mar 2005 18:34:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Mar 2005 18:34:54 -0000 Received: (qmail 727 invoked by uid 500); 18 Mar 2005 18:34:46 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 669 invoked by uid 500); 18 Mar 2005 18:34:46 -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 642 invoked by uid 99); 18 Mar 2005 18:34:46 -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 scotch.ics.uci.edu (HELO scotch.ics.uci.edu) (128.195.24.168) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 18 Mar 2005 10:34:44 -0800 Received: from [10.0.1.54] (pv106211.reshsg.uci.edu [128.195.106.211]) (authenticated bits=0) by scotch.ics.uci.edu (8.12.11/8.12.11) with ESMTP id j2IIYUrv004746 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 18 Mar 2005 10:34:36 -0800 (PST) Date: Fri, 18 Mar 2005 10:34:36 -0800 From: Justin Erenkrantz To: colm@stdlib.net, dev@httpd.apache.org cc: dev@apr.apache.org Subject: Re: do we still want sendfile enabled with our default conf files? Message-ID: <89A562E993DB0B79130F4B3D@[10.0.1.81]> In-Reply-To: <20050318171817.GA5562@castlerea.stdlib.net.> References: <20050317141250.GA28555@castlerea.stdlib.net.> <20050317152754.GI5790@scotch.ics.uci.edu> <20050318013331.GO5790@scotch.ics.uci.edu> <1f1d98205031808126698802b@mail.gmail.com> <6A59038878FF133648C83BDC@[10.0.1.81]> <20050318163408.GA5352@castlerea.stdlib.net.> <91AF42FAD9551FF95D46DE21@[10.0.1.81]> <20050318171817.GA5562@castlerea.stdlib.net.> X-Mailer: Mulberry/3.1.5 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=no version=3.1.0-r156655 X-Spam-Checker-Version: SpamAssassin 3.1.0-r156655 (2005-03-09) on scotch.ics.uci.edu X-Virus-Scanned: ClamAV 0.80/645/Mon Dec 27 14:56:20 2004 clamav-milter version 0.80j on scotch.ics.uci.edu X-Virus-Status: Clean X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --On Friday, March 18, 2005 5:18 PM +0000 Colm MacCarthaigh wrote: > I think it's just one of those cases where it would be highly > non-trivial and inefficient to put all of the checks in APR, simply due > to the real-world nature of the bugs, but that at the same time there is > a clear benefit available to those willing to take the time to read the > manual and decide for themselves if it will work in their situation. For those OSes that have a large number of cases where sendfile() doesn't work, then we can disable sendfile() rather than checking for these cases. However, your position mandates that the admins must do a lot of legwork to understand if their OS has issues or not. It's not always obvious what the corner cases are here: I'm in favor of placing that work in APR - where there are people willing to produce appropriate patches to relax the restrictions on that OS. One fstatfs call will allow us to detect the FS issues we've seen: either blacklist or whitelist fstypes per OS, I don't much care. And, we can check for IPv6 sockets on Linux. Ideally, we'd have some way of minimizing the need for fstatfs calls, but even without a cache of some sort (I don't know how slow or fast fstatfs tends to be), that's a fair price to pay for correctness and a viable attempt to maintain zero-copy performance. Yet, I believe most of these are outright OS or driver bugs that will, over the long run, be fixed upstream. If your OS or driver maintainers don't fix problems with their software, then you have other issues. -- justin