Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 73322 invoked from network); 27 Sep 2010 17:56:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Sep 2010 17:56:59 -0000 Received: (qmail 10289 invoked by uid 500); 27 Sep 2010 17:56:58 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 10216 invoked by uid 500); 27 Sep 2010 17:56:58 -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 10204 invoked by uid 99); 27 Sep 2010 17:56:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Sep 2010 17:56:58 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 76.96.30.80 is neither permitted nor denied by domain of jim@jagunet.com) Received: from [76.96.30.80] (HELO qmta08.emeryville.ca.mail.comcast.net) (76.96.30.80) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Sep 2010 17:56:48 +0000 Received: from omta15.emeryville.ca.mail.comcast.net ([76.96.30.71]) by qmta08.emeryville.ca.mail.comcast.net with comcast id BoZH1f0031Y3wxoA8twTXP; Mon, 27 Sep 2010 17:56:27 +0000 Received: from [192.168.199.10] ([69.251.84.64]) by omta15.emeryville.ca.mail.comcast.net with comcast id BtwR1f0021PGofZ8btwSui; Mon, 27 Sep 2010 17:56:26 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1081) Subject: Re: memory leak in mod_slotmem_shm From: Jim Jagielski In-Reply-To: <201009271919.29125.sf@sfritsch.de> Date: Mon, 27 Sep 2010 13:56:24 -0400 Content-Transfer-Encoding: 7bit Message-Id: References: <201009261813.27244.sf@sfritsch.de> <201009271628.01835.sf@sfritsch.de> <201009271919.29125.sf@sfritsch.de> To: dev@httpd.apache.org X-Mailer: Apple Mail (2.1081) X-Virus-Checked: Checked by ClamAV on apache.org On Sep 27, 2010, at 1:19 PM, Stefan Fritsch wrote: > On Monday 27 September 2010, Jim Jagielski wrote: >>> BTW, it is not that obvious that the shm is supposed to be >>> cleaned up and re-created on graceful restarts. This should be >>> documented in the code. >>> >>> >> >> That's an interesting point. I always assumed that it should be, >> since one use for it would be as a scoreboard-like replacement >> (and the pain for the scoreboard is that it's a set size)... >> But I can also see reasons for it to NOT be cleaned/recreated... >> How best to handle that?? > > If it would be used for e.g. storing mod_proxy_balancer's worker > configuration/state, one would want the data to survive a graceful > restart, wouldn't one? But from a consumer's perspective, it doesn't > matter if this achieved by not destroying the shm segment or by saving > the data to disk and reloading it after recreating the shm segment. > So it seems to me that the current functionality is enough. > But it *does* persist the data... it just clears up the sh mem.