MESSAGE
DATE | 2022-01-02 |
FROM | Ruben Safir
|
SUBJECT | Re: [Hangout - NYLXS] Embperl and threaded mpm?
|
From hangout-bounces-at-nylxs.com Sun Jul 10 20:11:17 2022 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www2.mrbrklyn.com (www2.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id CC8DC16405F; Sun, 10 Jul 2022 20:11:16 -0400 (EDT) X-Original-To: hangout-at-www2.mrbrklyn.com Delivered-To: hangout-at-www2.mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 1000) id C4545164059; Sun, 10 Jul 2022 20:11:14 -0400 (EDT) Resent-From: Ruben Safir Resent-Date: Sun, 10 Jul 2022 20:11:14 -0400 Resent-Message-ID: <20220711001114.GF16801-at-www2.mrbrklyn.com> Resent-To: hangout-at-mrbrklyn.com X-Original-To: ruben-at-mrbrklyn.com Delivered-To: ruben-at-mrbrklyn.com Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by mrbrklyn.com (Postfix) with ESMTP id 56068163FB8 for ; Sun, 2 Jan 2022 09:10:47 -0500 (EST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id 0A3743F0E8 for ; Sun, 2 Jan 2022 14:10:46 +0000 (UTC) Received: (qmail 75257 invoked by uid 500); 2 Jan 2022 14:10:45 -0000 Mailing-List: contact embperl-help-at-perl.apache.org; run by ezmlm Precedence: bulk Delivered-To: mailing list embperl-at-perl.apache.org Received: (qmail 75246 invoked by uid 99); 2 Jan 2022 14:10:45 -0000 Received: from spamproc1-he-fi.apache.org (HELO spamproc1-he-fi.apache.org) (95.217.134.168) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jan 2022 14:10:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamproc1-he-fi.apache.org (ASF Mail Server at spamproc1-he-fi.apache.org) with ESMTP id 9F3A1C0549 for ; Sun, 2 Jan 2022 14:10:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamproc1-he-fi.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-he-de.apache.org ([116.203.227.195]) by localhost (spamproc1-he-fi.apache.org [95.217.134.168]) (amavisd-new, port 10024) with ESMTP id XAYJI4Vmfwju for ; Sun, 2 Jan 2022 14:10:43 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=96.57.23.82; helo=mrbrklyn.com; envelope-from=ruben-at-mrbrklyn.com; receiver= Received: from mrbrklyn.com (www2.mrbrklyn.com [96.57.23.82]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTP id 9B50A7EA67 for ; Sun, 2 Jan 2022 14:10:43 +0000 (UTC) Received: by mrbrklyn.com (Postfix, from userid 1000) id 7AC7C163FBE; Sun, 2 Jan 2022 09:10:37 -0500 (EST) Date: Sun, 2 Jan 2022 09:10:37 -0500 From: Ruben Safir To: Neil Gunton Cc: "embperl-at-perl.apache.org" Message-ID: <20220102141037.GA28619-at-www2.mrbrklyn.com> References: <59500A1A.5040505-at-nilspace.com> <59519E0F.8060807-at-nilspace.com> <40faf6e6-67ec-b21d-ef0d-7a636863e84c-at-mrbrklyn.com> <5951F95A.3070806-at-nilspace.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <5951F95A.3070806-at-nilspace.com> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [Hangout - NYLXS] Embperl and threaded mpm? X-BeenThere: hangout-at-nylxs.com X-Mailman-Version: 2.1.30rc1 List-Id: NYLXS Tech Talk and Politics List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: hangout-bounces-at-nylxs.com Sender: "Hangout"
Is it a good idea to adopt this package and update it?
It wil likely die otherwise
On Mon, Jun 26, 2017 at 11:21:14PM -0700, Neil Gunton wrote: > Ruben Safir wrote: > >On 06/26/2017 07:51 PM, Neil Gunton wrote: > >>richter-at-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} = \-at-preload_files; > >>} > >> > >>The preload_dirs() simply traverses my code tree and calls this for each > >>file: > >> > >>push (-at-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 > > Ok, but I'm wondering if there is something else I should be doing > to execute the actual preload. It seems that all I do here is give > Embperl an array, but when I enable the preload, it just goes > through everything suspiciously quickly. I don't think it's actually > executing anything at preload time, though I could be wrong. I'm > thinking there's something else I need to do to tell Embperl "ok, > now actually load all those files"... > > Neil > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: embperl-unsubscribe-at-perl.apache.org > For additional commands, e-mail: embperl-help-at-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 extermination camps, but incompatible with living as a free human being. -RI Safir 2013
--------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe-at-perl.apache.org For additional commands, e-mail: embperl-help-at-perl.apache.org _______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout
|
|