x86, gentoo linux, perl-5.12.4, glibc-2.13, kernel-3.1.5:
# 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
x86_64, gentoo linux, perl-5.12.4, glibc-2.13, kernel-3.2.2:
# 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!
Anyone knows why the hell perl require SO much memory on 64-bit system? 6MB vs 21MB sounds just crazy.

In reply to memory usage on x86_64 by powerman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.