Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 55430 invoked from network); 19 Mar 2006 00:55:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Mar 2006 00:55:44 -0000 Received: (qmail 9801 invoked by uid 500); 19 Mar 2006 00:55:39 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 9779 invoked by uid 500); 19 Mar 2006 00:55:38 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 9768 invoked by uid 99); 19 Mar 2006 00:55:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Mar 2006 16:55:38 -0800 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 [66.33.198.201] (HELO jareth.dreamhost.com) (66.33.198.201) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Mar 2006 16:55:37 -0800 Received: from [192.168.1.100] (user-10876ld.cable.mindspring.com [64.131.154.173]) by jareth.dreamhost.com (Postfix) with ESMTP id E7D3F191014; Sat, 18 Mar 2006 16:55:16 -0800 (PST) In-Reply-To: <200603181626.12293.mod_perl@whohasit.com> References: <200603181626.12293.mod_perl@whohasit.com> Mime-Version: 1.0 (Apple Message framework v746.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <4362F432-AC2E-4DC1-B552-1A62944923F3@2xlp.com> Cc: modperl@perl.apache.org Content-Transfer-Encoding: 7bit From: Jonathan Vanasco Subject: Re: Semaphores Date: Sat, 18 Mar 2006 19:55:14 -0500 To: Bill Whillers X-Mailer: Apple Mail (2.746.3) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N i asked something like that once before (though not in terms of mod_perl) , and was told this: if the disk doesn't have a lot of read/writes already, the the OS should optimize a bunch of the filechecking into memory and won't touch the disk if it does have a lot of use ( uploads/ shred use as email/imap/ etc ) then use either memcached or another in-memory system / daemon / socket connection that never touches the disk i know little of how the kernel handles that sort of stuff the one thing i'd note about your plan is this: if you're updating a large hash, then on update that hash will be copied into each child -- it won't be shared among the apache children. i'm not sure how the memory mapping works - will all of the hash be replaced with per-child memory, will only parts. someone w/more knowledge of the internals would be better off answering that. but the point is that you end up losing a lot of shared memory space, which (i think) defeats the point of having a large hash of data in the first place. personally, i do a stop/start whenever i need to handle a data change