Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E6E2D200CC5 for ; Tue, 27 Jun 2017 07:55:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E57AA160BDE; Tue, 27 Jun 2017 05:55:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3706B160BDA for ; Tue, 27 Jun 2017 07:55:02 +0200 (CEST) Received: (qmail 49025 invoked by uid 500); 27 Jun 2017 05:55:01 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 49015 invoked by uid 99); 27 Jun 2017 05:55:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jun 2017 05:55:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A3257C061B for ; Tue, 27 Jun 2017 05:55:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.002 X-Spam-Level: X-Spam-Status: No, score=-0.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id K6YyT0-lV3vl for ; Tue, 27 Jun 2017 05:54:57 +0000 (UTC) Received: from mrbrklyn.com (www.mrbrklyn.com [96.57.23.82]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E69C25F30C for ; Tue, 27 Jun 2017 05:54:56 +0000 (UTC) Received: from [10.0.0.62] (flatbush.mrbrklyn.com [10.0.0.62]) by mrbrklyn.com (Postfix) with ESMTP id B329C160876 for ; Tue, 27 Jun 2017 01:54:49 -0400 (EDT) Subject: Re: AW: Embperl and threaded mpm? To: embperl@perl.apache.org References: <59500A1A.5040505@nilspace.com> <59519E0F.8060807@nilspace.com> From: Ruben Safir Message-ID: <40faf6e6-67ec-b21d-ef0d-7a636863e84c@mrbrklyn.com> Date: Tue, 27 Jun 2017 01:54:49 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <59519E0F.8060807@nilspace.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit archived-at: Tue, 27 Jun 2017 05:55:03 -0000 On 06/26/2017 07:51 PM, Neil Gunton wrote: > richter@ecos.de wrote: >> Hi Neil, >> >> Embperl is not working with threaded mpm. >> >> Preloading all your perl code saves a lot of memory due to code sharing. >> >> The main issue is, that you have to make sure, not to open any file or >> database connection or similar in the preload code, because that will >> be shared too, which does not work > > Thanks, Gerald. So, just to be clear, what my preload routine in > startup.pl does is the following. Maybe you can confirm that I'm doing > it right. > > if (Apache2::ServerUtil::restart_count() == 1) > { > preload_dirs(); > $Embperl::initparam{preloadfiles} = \@preload_files; > } > > The preload_dirs() simply traverses my code tree and calls this for each > file: > > push (@preload_files, {inputfile => $filename, path => $path, import => > 0, input_escmode => 0, options => 16, debug => 0x7fffffff}); > > Does that look about right? If as you say it's worthwhile in terms of > memory then I might look at re-enabling it again. I think I disabled it > originally because it made restarting the server quite slow, but it > would be useful to have it as an option should I need it. > looks right to me although I never did this. You are just setting up the global parameters > Thanks! > > Neil > > --------------------------------------------------------------------- > To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org > For additional commands, e-mail: embperl-help@perl.apache.org > -- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com Being so tracked is for FARM ANIMALS and and extermination camps, but incompatible with living as a free human being. -RI Safir 2013 --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org