Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 32412 invoked from network); 26 Oct 2006 05:18:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 05:18:13 -0000 Received: (qmail 26359 invoked by uid 500); 24 Oct 2006 17:06:24 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 26310 invoked by uid 500); 24 Oct 2006 17:06:24 -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: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 26299 invoked by uid 99); 24 Oct 2006 17:06:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Oct 2006 10:06:24 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of chip@force-elite.com designates 72.232.80.58 as permitted sender) Received: from [72.232.80.58] (HELO constant.northnitch.com) (72.232.80.58) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Oct 2006 10:06:12 -0700 Received: from localhost (localhost.layeredtech.com [127.0.0.1]) by constant.northnitch.com (Postfix) with ESMTP id E9D735CE1 for ; Tue, 24 Oct 2006 12:05:51 -0500 (CDT) Received: from constant.northnitch.com ([127.0.0.1]) by localhost (constant.northnitch.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10752-02 for ; Tue, 24 Oct 2006 12:05:51 -0500 (CDT) Received: from [192.168.2.101] (c-24-5-139-163.hsd1.ca.comcast.net [24.5.139.163]) by constant.northnitch.com (Postfix) with ESMTP id 50E205CD6 for ; Tue, 24 Oct 2006 12:05:51 -0500 (CDT) Message-ID: <453E47F2.6010905@force-elite.com> Date: Tue, 24 Oct 2006 10:05:54 -0700 From: Paul Querna User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: dev@httpd.apache.org Subject: mod_disk_cache in trunk, was Re: mod_disk_cache summarization References: <453D1694.1010203@turner.com> <453D220E.3000706@sharp.fm> <453D2508.5060902@haxent.com.br> <453D2766.5090108@sharp.fm> <453DC13A.10105@force-elite.com> <56966.196.8.104.27.1161678044.squirrel@www.sharp.fm> In-Reply-To: <56966.196.8.104.27.1161678044.squirrel@www.sharp.fm> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at constant.northnitch.com X-Virus-Checked: Checked by ClamAV on apache.org Graham Leggett wrote: > On Tue, October 24, 2006 9:31 am, Paul Querna wrote: > >>> The prerequisite is that APR needs to be taught about this scheme, and >>> it has to work portably across all platforms. >> No it doesn't. mod_disk_cache makes many assumptions about the >> underlying OS, like how moving a file on the same file system is atomic, >> and how you can move files that have open file descriptors, both of >> which aren't true with some file systems or operating systems (like uh.. >> windows). > > As I understand, there is no more file moving inside mod_disk_cache, so > this is no longer true. Well, yes, you are right, I finally had time to read some of the changes in trunk, and r450105 is freaking crazy: http://svn.apache.org/viewvc?view=rev&revision=450105 It replaced a cheap atomic operation, with copying the entire file off disk in chunks. How could that ever make sense? The final MOVE of the temp file to the cache file should of had NOTHING to do with making it safe for large files. It seems the patch (and CHANGES entry) did way more than what was described. >> mod_disk_cache is a high performance part, lets make it work great on >> most unixy/POSIX type platforms, and come back to making it portable >> later. > > I'd rather not do a whole lot of work coming up with a works-for-me cache, > and then have to field a whole lot of bug reports (like, say from Windows > users ;) ) and then have to fix all the problems that come up by rewriting > everything again. > > mod_disk_cache needs to be high performance yes, but not to the point > where that means it's broken on half the platforms. If it works on FreeBSD, Linux, and Solaris on Fridays, its good enough for me. -Paul