Re: Experience running mod_perl2 with mpm_event on Solaris 11

2022-08-16 Thread Joe Schaefer
See % man mallopt for ENV tunables on Linux. On the surface, glibc malloc should work as well as Solaris libc malloc re threading, but I don't have the patience to track it down since I don't run Linux in my shop. On Tue, Aug 16, 2022 at 3:50 PM wrote: > We've been plagued by endless

Re: shuffle a array

2022-08-16 Thread Jacques Deguest
I think this kind of question is not modperl specific and best suited for StackOverlow -> On 2022/08/17 10:07, pengyh wrote: in my modperl app I want to shuffle an array. such as this method in

shuffle a array

2022-08-16 Thread pengyh
in my modperl app I want to shuffle an array. such as this method in ruby, irb(main):005:0> array => [1, 2, 3, 4] irb(main):006:0> array.shuffle => [1, 4, 3, 2] do you know how to achieve it in perl? Thanks.

RE: Experience running mod_perl2 with mpm_event on Solaris 11

2022-08-16 Thread joe
We've been plagued by endless Segmentation Faults on non-Solaris systems, where the backtrace indicated the problem was in mod_perl -> Perl Code -> malloc (at the top of the frame). For a while I thought p5p fixed this in 5.30+ releases, but since nobody confirmed that suspicion I think the

unsubscribe

2022-08-16 Thread Kevin Wu
-Original Message- From: Edward J. Sabol Sent: Tuesday, August 16, 2022 2:29 PM To: j...@sunstarsys.com Cc: modperl@perl.apache.org Subject: Re: :Sealed subs for typed lexicals On Aug 16, 2022, at 11:12 AM, j...@sunstarsys.com wrote: > Here's some more fun I've been grinding out for

Re: :Sealed subs for typed lexicals

2022-08-16 Thread Edward J. Sabol
On Aug 16, 2022, at 11:12 AM, j...@sunstarsys.com wrote: > Here’s some more fun I’ve been grinding out for the mod_perl community. > Unfortunately I haven’t resolved all the issues with using this stuff in a > mod_perl+ithread runtime, but if you figure out the right incantation please > let

Re: Experience running mod_perl2 with mpm_event on Solaris 11

2022-08-16 Thread Edward J. Sabol
On Aug 16, 2022, at 12:27 PM, j...@sunstarsys.com wrote: > To the best of my knowledge, the underlying problem with mod_perl+ithread is > that it requires a reentrant malloc in libc. That's it? This is the first I'm learning this. Is there an option to compile Perl and mod_perl with a reentrant

RE: :Sealed subs for typed lexicals

2022-08-16 Thread joe
Benchmarks from last year (based on openoffice.org): https://www.youtube.com/watch?v=xr67QX6aMqU From: j...@sunstarsys.com Sent: Tuesday, August 16, 2022 12:31 PM To: modperl@perl.apache.org Subject: RE: :Sealed subs for typed lexicals The build flags for Perl that I’m using on Solaris

RE: Experience running mod_perl2 with mpm_event on Solaris 11

2022-08-16 Thread joe
Some HTTP/2 benchmarks from last year: https://www.youtube.com/watch?v=gf19vVF-G9E From: j...@sunstarsys.com Sent: Tuesday, August 16, 2022 12:28 PM To: modperl@perl.apache.org Subject: RE: Experience running mod_perl2 with mpm_event on Solaris 11 To the best of my knowledge, the

RE: :Sealed subs for typed lexicals

2022-08-16 Thread joe
The build flags for Perl that I’m using on Solaris 11 are documented in the sealed.pm source code linked to from that webpage. From: j...@sunstarsys.com Sent: Tuesday, August 16, 2022 11:13 AM To: modperl@perl.apache.org Subject: :Sealed subs for typed lexicals Here’s some more fun I’ve

RE: Experience running mod_perl2 with mpm_event on Solaris 11

2022-08-16 Thread joe
To the best of my knowledge, the underlying problem with mod_perl+ithread is that it requires a reentrant malloc in libc. I haven’t tested modern Perl releases against Linux/FreeBSD, but Solaris 11 is rock solid with ithreads and event_mpm. From: Joe Schaefer Sent: Tuesday, August 16,

:Sealed subs for typed lexicals

2022-08-16 Thread joe
Here’s some more fun I’ve been grinding out for the mod_perl community. Unfortunately I haven’t resolved all the issues with using this stuff in a mod_perl+ithread runtime, but if you figure out the right incantation please let me know: https://sunstarsys.com/essays/perl7-sealed-lexicals

RE: Experience running mod_perl2 with mpm_event on Solaris 11

2022-08-16 Thread joe
The build system for the CMS is on GitHub here: https://github.com/SunStarSys/cms. Full site builds clock in at around 500 MB/s on modern hardware (NVMe + 8 cores). But the real beauty is the Incremental Build Support in the product itself, so you only build what you changed. From: Joe