Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 71894 invoked from network); 2 Aug 2004 12:46:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Aug 2004 12:46:15 -0000 Received: (qmail 34248 invoked by uid 500); 2 Aug 2004 12:46:08 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 34190 invoked by uid 500); 2 Aug 2004 12:46:08 -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 34176 invoked by uid 99); 2 Aug 2004 12:46:08 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [64.236.240.190] (HELO web.turner.com) (64.236.240.190) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 02 Aug 2004 05:46:07 -0700 Received: from [192.168.1.100] (atl-vpn-124-47.turner.com [10.188.124.47]) by web.turner.com (8.12.9/8.12.9) with ESMTP id i72Ck4g0012590 for ; Mon, 2 Aug 2004 08:46:05 -0400 (EDT) Message-ID: <410E378F.1020305@web.turner.com> Date: Mon, 02 Aug 2004 08:46:07 -0400 From: Brian Akins User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.1) Gecko/20040715 Debian/1.7.1-1 X-Accept-Language: en MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: [PATCH] mod_cache fixes: #8 References: <40B25DBF8F84D316162D79F8@[10.0.1.74]> <410D0B83.9040100@wstoddard.com> <413520F52887259736D5D43B@[10.0.1.76]> In-Reply-To: <413520F52887259736D5D43B@[10.0.1.76]> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Justin Erenkrantz wrote: > - > static void mkdir_structure(disk_cache_conf *conf, char *file, > apr_pool_t *pool) Another big speed-up may be to pre-make all of the directories. A simple script could use CacheRoot, |CacheDirLength|, and |CacheDirLevels to create them all. Just require that this script be ran before starting a mod_disk_cache server. Or if you wanted, you could generate/check the directories in post_config. The Squid proxy cache requires you to create all the directories beforehand by running it with a specific switch. This save a ton of checking for and/or making directories. Trust me, it does speed things up a bit.... |-- Brian Akins Senior Systems Engineer CNN Internet Technologies