in reply to Memory needed for perl process

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