Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jun 2012 09:31:15 -0700
From:      Kevin Oberman <kob6558@gmail.com>
To:        Michael Scheidell <scheidell@freebsd.org>
Cc:        ports@freebsd.org
Subject:   Re: Anyone using perl-5.12 and WITH_PERL_MALLOC?
Message-ID:  <CAN6yY1uuefD0iQngPJpsHT=O103DkKC5_CH4tLmOySeMSV%2B49A@mail.gmail.com>
In-Reply-To: <4FE5EA8E.1020302@FreeBSD.org>
References:  <4FE5EA8E.1020302@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 23, 2012 at 9:10 AM, Michael Scheidell
<scheidell@freebsd.org> wrote:
> I have tried it a couple of times, hearing that is increases the performa=
nce
> of security/amavisd-new, but each time I tried it:
>
> on 7.3, and 7.4 amd64, I get 'bus error'
>
> on 7.4 I386, I get 'Segmentation fault'
>
> Not ready (yet) to diagnose this.
>
> but, here were build options:
>
> ---Begin OPTIONS List---
> =3D=3D=3D> =C2=A0The following configuration options are available for pe=
rl-5.12.4_4:
> =C2=A0 =C2=A0 DEBUGGING=3Doff: Build with debugging support
> =C2=A0 =C2=A0 GDBM=3Doff: Build GDBM_File extension
> =C2=A0 =C2=A0 PERL_MALLOC=3Don: Use Perl malloc
> =C2=A0 =C2=A0 PERL_64BITINT=3Don: Use 64 bit integers (on i386)
> =C2=A0 =C2=A0 THREADS=3Doff: Build threaded perl
> =C2=A0 =C2=A0 PTHREAD=3Don: Build with -pthread
> =C2=A0 =C2=A0 MULTIPLICITY=3Doff: Use multiplicity
> =C2=A0 =C2=A0 SITECUSTOMIZE=3Doff: Run-time customization of @INC
> =C2=A0 =C2=A0 USE_PERL=3Don: Rewrite links in /usr/bin
> =3D=3D=3D> =C2=A0Use 'make config' to modify these settings
> ---End OPTIONS List---
>
>
> (I noticed in the Makefile, if you have WITH_THREADS && WITH_PERL_MALLOC,
> .if defined(WITH_THREADS)
> #XXX .if ${ARCH} =3D=3D "amd64"
> #XXX IGNORE=3D =C2=A0 =C2=A0Threaded perl does not pass tests on ${ARCH}
> #XXX .endif
> CONFIGURE_ARGS+=3D =C2=A0 =C2=A0 =C2=A0 =C2=A0-Dusethreads=3Dy
> PKGNAMESUFFIX=3D =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-threaded
> WITH_PTHREAD=3D =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 yes
> # it seems perl malloc has problems with threaded perl on FreeBSD
> .undef WITH_PERL_MALLOC
>
>
> I wonder if this is true for WITH_PTHREAD (which is on by default)
>
> anyone using it this way? with_perl_malloc? =C2=A0on 7.x?
>
> is it broken on 7.x?

On my 9.0-Stable (4/28/12) system I have perl-threaded installed with
PERL_MALLOC selected. 'perl5 -V' reports:
Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_A=
LL
                        USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
                        USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API
  Built under freebsd
  Compiled at Feb 16 2012 10:25:18
--=20
R. Kevin Oberman, Network Engineer
E-mail: kob6558@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1uuefD0iQngPJpsHT=O103DkKC5_CH4tLmOySeMSV%2B49A>