x86_64, gentoo linux, perl-5.12.4, glibc-2.13, kernel-3.2.2:# softlimit -m 6000000 perl -le 'use version; print $version::VERSION' 0.96 # softlimit -m 5000000 perl -le 'use version; print $version::VERSION' perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_NUMERIC = "C", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). 0.96 # softlimit -m 3000000 perl -le 'use version; print $version::VERSION' perl: error while loading shared libraries: libc.so.6: failed to map s +egment from shared object: Cannot allocate memory
Anyone knows why the hell perl require SO much memory on 64-bit system? 6MB vs 21MB sounds just crazy.# softlimit -m 21000000 perl -le 'use version; print $version::VERSION +' 0.96 # softlimit -m 20000000 perl -le 'use version; print $version::VERSION +' Can't locate version/vpp.pm in @INC (@INC contains: /etc/perl /usr/lib +64/perl5/site_perl/5.12.4/x86_64-linux /usr/lib64/perl5/site_perl/5.1 +2.4 /usr/lib64/perl5/vendor_perl/5.12.4/x86_64-linux /usr/lib64/perl5 +/vendor_perl/5.12.4 /usr/lib64/perl5/site_perl /usr/lib64/perl5/vendo +r_perl /usr/lib64/perl5/5.12.4/x86_64-linux /usr/lib64/perl5/5.12.4 / +usr/local/lib/site_perl .) at (eval 2) line 2. BEGIN failed--compilation aborted at (eval 2) line 2. Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. # softlimit -m 19000000 perl -le 'use version; print $version::VERSION +' Out of memory!
In reply to memory usage on x86_64 by powerman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |