You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jeff Ambrosino <jb...@gmail.com> on 2005/10/27 23:37:36 UTC

mp2 shared vs. static build - pros & cons?

In anticipation of upgrading my mp2 build to the latest/greatest, I
would like to consider switching from a DSO build to a static build. 
Could folks here offer their opinions on pros/cons in terms of
performance/memory, etc?  FYI my environment is httpd 2.0.55, prefork
MPM, Perl 5.8.6 (w/threads), on Linux 2.6 kernel.

thanks
JB

Re: mp2 shared vs. static build - pros & cons?

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Frank Wiles wrote:
>   While in mp1 DSO had some stability issues, I believe current wisdom
>   is that there is very little difference between DSO and static. So
>   I would go with DSO. 
> 
>   If you're looking for a performance gain, recompile your Perl to not
>   use threads and you'll see a boost. 
Ditto.


-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com

Re: mp2 shared vs. static build - pros & cons?

Posted by Jeff Ambrosino <jb...@gmail.com>.
That's helpful information...  I guess I'll stick with the DSO.

At one point I did benchmark mod_perl2 with vs. without threads, and
without threads was marginally faster.  I've since started using some
new CPAN modules, so I'll have to double-check that none of them use
Perl threads.

thanks!
JB

>   If you're looking for a performance gain, recompile your Perl to not
>   use threads and you'll see a boost.

Re: mp2 shared vs. static build - pros & cons?

Posted by Frank Wiles <fr...@wiles.org>.
On Thu, 27 Oct 2005 17:37:36 -0400
Jeff Ambrosino <jb...@gmail.com> wrote:

> In anticipation of upgrading my mp2 build to the latest/greatest, I
> would like to consider switching from a DSO build to a static build. 
> Could folks here offer their opinions on pros/cons in terms of
> performance/memory, etc?  FYI my environment is httpd 2.0.55, prefork
> MPM, Perl 5.8.6 (w/threads), on Linux 2.6 kernel.

  While in mp1 DSO had some stability issues, I believe current wisdom
  is that there is very little difference between DSO and static. So
  I would go with DSO. 

  If you're looking for a performance gain, recompile your Perl to not
  use threads and you'll see a boost. 

 ---------------------------------
   Frank Wiles <fr...@wiles.org>
   http://www.wiles.org
 ---------------------------------