Marc Gracia (Oasyssoft) wrote:
Opps.. Sorry after all gdb an strace I forgot to send the perl -V

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
[...]

Thanks.

Have you tried a more recent 5.8.x perl? 5.8.4 is out for quite some time already. I'm not sure if it's going to be of help, since it seems to be a glibc bug, but if you are already building from scratch, why not go with the best available version.

The staticaly linked perl it's a good idea... but will this hit the
memory space of the running httpd proceses? There will be a lot on those
machines....

You mean you will have several independent Apache/mod_perl instances running on the same machine? If so, yes, then you will use more memory as there will be no perl's libperl.so sharing. Though I'm thinking - if you use a static perl's libperl.a, but dynamic modperl's libperl.so (which is confusingly called in the same way in mp1), you may not be affected at all. I guess that doesn't work, since modperl's shared lib gets loaded by Apache, and not through ld.so, so the system will not know to reuse the already loaded instance.


There something else you can try though. Force an early resolution of all symbols when the program loads (which is a default behavior for MacOSX and a few other platforms). For perl xs modules you do that by setting env var RTLD_NOW=1. Though that won't work for perl itself. For perl itself (or any other app that links to shared libs) you will need to set env var LD_BIND_NOW=1. Let us know whether that trick has worked.

Also this seems to be an interesting util, which I haven't tried yet.
http://www.linuxforum.com/man/prelink.8.php

--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to