MESSAGE
DATE | 2022-01-02 |
FROM | Jim Tappe
|
SUBJECT | Re: [Hangout - NYLXS] Embperl and threaded mpm?
|
From hangout-bounces-at-nylxs.com Sun Jul 10 20:11:40 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 EAA5C164063; Sun, 10 Jul 2022 20:11:39 -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 26045164059; Sun, 10 Jul 2022 20:11:37 -0400 (EDT) Resent-From: Ruben Safir Resent-Date: Sun, 10 Jul 2022 20:11:37 -0400 Resent-Message-ID: <20220711001137.GH16801-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-he-de.apache.org (mxout1-he-de.apache.org [95.216.194.37]) by mrbrklyn.com (Postfix) with ESMTP id C3775163FB8 for ; Sun, 2 Jan 2022 15:32:07 -0500 (EST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-he-de.apache.org (ASF Mail Server at mxout1-he-de.apache.org) with SMTP id 9122A60C49 for ; Sun, 2 Jan 2022 20:32:06 +0000 (UTC) Received: (qmail 60938 invoked by uid 500); 2 Jan 2022 20:32:06 -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 60927 invoked by uid 99); 2 Jan 2022 20:32:05 -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 20:32:05 +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 07176C0549 for ; Sun, 2 Jan 2022 20:32:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamproc1-he-fi.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamproc1-he-fi.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-ec2-va.apache.org ([116.203.227.195]) by localhost (spamproc1-he-fi.apache.org [95.217.134.168]) (amavisd-new, port 10024) with ESMTP id uZQxASJ7Kp3n for ; Sun, 2 Jan 2022 20:32:04 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.50; helo=mail-ed1-f50.google.com; envelope-from=jtappe-at-gmail.com; receiver= Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 8AFFDBD97D for ; Sun, 2 Jan 2022 20:32:03 +0000 (UTC) Received: by mail-ed1-f50.google.com with SMTP id m21so130036236edc.0 for ; Sun, 02 Jan 2022 12:32:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0ej73ZQmcjFQFYRka76eJ7n/yINh7ZXvD7X8byG2WD8=; b=KnE04AY2fvYh5udHum9a0zj7nzXM9/5kYf682vme/Ofb5845nt+NQXkuTGilFiuFNW tRWNvHuXxYM8JDv209/cyIOzRZDQApg3XB9XTv8tIl2D4pCKHIkt6tZvrYU3AEcSgvXO OooCRcKjrUrIjv74H1lzG5xn6wEBVugz4zZNt1/QbpN2hMBpURfbttcAm2ny1vMa6Q1Q louXxaozWRme2oS2I9SRabylwr/78PSDgcBF7Qn6XPWiITtO079TpXtzzLHFjSABb2bA FpfXKUXzde4gcB+3bM59hofLTt6EBmcDpUFtPGl59E+G/QktK1yxnOR+zZuVtcypH9w/ Q41w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0ej73ZQmcjFQFYRka76eJ7n/yINh7ZXvD7X8byG2WD8=; b=qAv39V+8bX2wFqJpryZ6Z9OjEUheyDHI0t37Loq+Q2qxiJjlER5GHhjJFywSH0jAmD ujqfiTURaGhXfEfI9vczpvOOVuwxwWLScjWc7xiUpCijL0VE8+YIoMeyYNMRyN3SduRT xJAYaOFYNr0/p4mOQIAcUQPWp+OkyLVAhDmBKjSCiRZx3wRucnUhOKP/mWEMWqn8i3PK 55CubcUF873tW05SYL7CMP2MMu7hyEOMLfse+4nJLou33V2MIV56FYvZVs6cTnaGuc7z eFtvl09QNmHTYVnV8hEawaljp6h9B5R87sHDkxm1QASsJfWcaoztWGSO9GkHv1JBKzB+ J9YA== X-Gm-Message-State: AOAM533OAQMaWgZsMjEaJMdPFKPMflQpiW1r4ihXPgfK9K1G+xnmoJDl sQFeEv6BTW7YzEUxmvJZOapFYXWkFOYgCCFzf/Ht8/gJ6JGOfw== X-Google-Smtp-Source: ABdhPJzwj/JTScwnKinC+d86GDyjCsc+MQMMlLtCyvEVzlzm4NrSedmAPfwhsnhPp1In8svtsyCl5JSqElYMix0FXSg= X-Received: by 2002:a17:907:c9f:: with SMTP id gi31mr35991640ejc.438.1641155515876; Sun, 02 Jan 2022 12:31:55 -0800 (PST) MIME-Version: 1.0 References: <59500A1A.5040505-at-nilspace.com> <59519E0F.8060807-at-nilspace.com> <40faf6e6-67ec-b21d-ef0d-7a636863e84c-at-mrbrklyn.com> <5951F95A.3070806-at-nilspace.com> <20220102141037.GA28619-at-www2.mrbrklyn.com> In-Reply-To: <20220102141037.GA28619-at-www2.mrbrklyn.com> From: Jim Tappe Date: Sun, 2 Jan 2022 12:31:44 -0800 Message-ID: To: Ruben Safir Cc: Neil Gunton , "embperl-at-perl.apache.org" 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: multipart/mixed; boundary="===============0914625767==" Errors-To: hangout-bounces-at-nylxs.com Sender: "Hangout"
--===============0914625767== Content-Type: multipart/alternative; boundary="0000000000008b8a6d05d49f4b4f"
--0000000000008b8a6d05d49f4b4f Content-Type: text/plain; charset="UTF-8"
It seems to have been adopted and is being actively maintained "downstream."
https://tracker.debian.org/pkg/libembperl-perl
On Sun, Jan 2, 2022 at 6:10 AM Ruben Safir wrote:
> 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 > >
--0000000000008b8a6d05d49f4b4f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It seems to have been adopted and is being active= ly maintained "downstream."=C2=A0 =C2=A0=C2=A0 =3D"gmail_quote"> "margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le= ft:1ex">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-e= cos.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, becaus= e that will
> >>>be shared too, which does not work
> >>
> >>Thanks, Gerald. So, just to be clear, what my preload routine = in
> >>ank">startup.pl does is the following. Maybe you can confirm that I'= ;m doing
> >>it right.
> >>
> >>if (Apache2::ServerUtil::restart_count() =3D=3D 1)
> >>{
> >>=C2=A0 =C2=A0 preload_dirs();
> >>=C2=A0 =C2=A0 $Embperl::initparam{preloadfiles} =3D \-at-preload_= files;
> >>}
> >>
> >>The preload_dirs() simply traverses my code tree and calls thi= s for each
> >>file:
> >>
> >>push (-at-preload_files, {inputfile =3D> $filename, path =3D&g= t; $path, import =3D>
> >>0, input_escmode =3D> 0, options =3D> 16, debug =3D> = 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 di= sabled it
> >>originally because it made restarting the server quite slow, b= ut it
> >>would be useful to have it as an option should I need it.
> >>
> >
> >looks right to me although I never did this.=C2=A0 You are just se= tting 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 ac= tually
> executing anything at preload time, though I could be wrong. I'mr> > thinking there's something else I need to do to tell Embperl "= ;ok,
> now actually load all those files"...
>
> Neil
>
>
> ---------------------------------------------------------------------<= br> > To unsubscribe, e-mail: che.org" target=3D"_blank">embperl-unsubscribe-at-perl.apache.org
> For additional commands, e-mail: pache.org" target=3D"_blank">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
ht= tp://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http:= //www.nylxs.com - Leadership Development in Free Software
"_blank">http://www2.mrbrklyn.com/resources - Unpublished Archive
>http://www.coinhangout.com - coins!
ank">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: rg" target=3D"_blank">embperl-unsubscribe-at-perl.apache.org
For additional commands, e-mail: .org" target=3D"_blank">embperl-help-at-perl.apache.org
--0000000000008b8a6d05d49f4b4f-- --===============0914625767== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout --===============0914625767==-- --===============0914625767== Content-Type: multipart/alternative; boundary="0000000000008b8a6d05d49f4b4f" --0000000000008b8a6d05d49f4b4f Content-Type: text/plain; charset="UTF-8" It seems to have been adopted and is being actively maintained "downstream." https://tracker.debian.org/pkg/libembperl-perl On Sun, Jan 2, 2022 at 6:10 AM Ruben Safir wrote:
> 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 > >
--0000000000008b8a6d05d49f4b4f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It seems to have been adopted and is being active= ly maintained "downstream."=C2=A0 =C2=A0=C2=A0 =3D"gmail_quote"> "margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le= ft:1ex">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-e= cos.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, becaus= e that will
> >>>be shared too, which does not work
> >>
> >>Thanks, Gerald. So, just to be clear, what my preload routine = in
> >>ank">startup.pl does is the following. Maybe you can confirm that I'= ;m doing
> >>it right.
> >>
> >>if (Apache2::ServerUtil::restart_count() =3D=3D 1)
> >>{
> >>=C2=A0 =C2=A0 preload_dirs();
> >>=C2=A0 =C2=A0 $Embperl::initparam{preloadfiles} =3D \-at-preload_= files;
> >>}
> >>
> >>The preload_dirs() simply traverses my code tree and calls thi= s for each
> >>file:
> >>
> >>push (-at-preload_files, {inputfile =3D> $filename, path =3D&g= t; $path, import =3D>
> >>0, input_escmode =3D> 0, options =3D> 16, debug =3D> = 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 di= sabled it
> >>originally because it made restarting the server quite slow, b= ut it
> >>would be useful to have it as an option should I need it.
> >>
> >
> >looks right to me although I never did this.=C2=A0 You are just se= tting 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 ac= tually
> executing anything at preload time, though I could be wrong. I'mr> > thinking there's something else I need to do to tell Embperl "= ;ok,
> now actually load all those files"...
>
> Neil
>
>
> ---------------------------------------------------------------------<= br> > To unsubscribe, e-mail: che.org" target=3D"_blank">embperl-unsubscribe-at-perl.apache.org
> For additional commands, e-mail: pache.org" target=3D"_blank">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
ht= tp://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http:= //www.nylxs.com - Leadership Development in Free Software
"_blank">http://www2.mrbrklyn.com/resources - Unpublished Archive
>http://www.coinhangout.com - coins!
ank">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: rg" target=3D"_blank">embperl-unsubscribe-at-perl.apache.org
For additional commands, e-mail: .org" target=3D"_blank">embperl-help-at-perl.apache.org
--0000000000008b8a6d05d49f4b4f-- --===============0914625767== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout --===============0914625767==-- |
|