Hi, if you compile the perl as a shared executable, you will get a perl executable of 15920 bytes and a libperl.so of 2125160 bytes. The ldd for perl involves a few shared libraries, but not many.
# ldd perl_shared linux-vdso.so.1 libperl.so => /usr/lib/perl5/5.24.1/x86_64-linux-thread-multi- +ld/CORE/libperl.so libpthread.so.0 => /lib64/libpthread.so.0 libnsl.so.1 => /lib64/libnsl.so.1 libdl.so.2 => /lib64/libdl.so.2 libm.so.6 => /lib64/libm.so.6 libcrypt.so.1 => /lib64/libcrypt.so.1 libutil.so.1 => /lib64/libutil.so.1 libc.so.6 => /lib64/libc.so.6 /lib64/ld-linux-x86-64.so.2

For a static perl, the executable size is 1956240 bytes, and it's ld dependencies are same as above with the exception of libperl.so.

This is on my Slackware system, and the Perl version is 5.24.1 .

So the minimum Perl footprint would be the static build at 1.9 Megs. Alot of power in what is a size less than most electronic photos.

If I run a simple perl script, waiting for input on STDIN, this is it's process info:

zentara 1981 0.0 0.0 22820 3712 pts/1 S+ 07:27 0:00 /usr/ +bin/perl ./STDIN-input
thats shows 22820. But remember, that didn't load any modules or do any other memory aquisition like declaring large variables.

I'm not really a human, but I play one on earth. ..... an animated JAPH

In reply to Re: Memory needed for perl process by zentara
in thread Memory needed for perl process by bsshetty17

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.