On Sun, Sep 02, 2012 at 07:24:40PM +0300, Ilmari Karonen wrote:
vyznev@willow:~$ perl -e 'system "uname -a; ps -o comm,vsz -p $$"' SunOS willow 5.10 Generic_147441-19 i86pc i386 i86pc Solaris COMMAND VSZ perl 6632
vyznev@nightshade:~$ perl -e 'system "uname -a; ps -o comm,vsz -p $$"' Linux nightshade 2.6.32-5-amd64 #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64 GNU/Linux COMMAND VSZ perl 104364
What's going on here? It it just an accounting difference, or does a Perl process on Linux really consume over 100 megabytes more memory than on Solaris?
Not usually.
ralf@ark ~ $ perl -e 'system "uname -a; ps -o comm,vsz -p $$"' Linux ark 3.2.1-gentoo-r2 #21 SMP Tue Jul 17 11:00:26 CEST 2012 x86_64 AMD Phenom(tm) II X6 1055T Processor AuthenticAMD GNU/Linux COMMAND VSZ perl 16740
Just FYI.
ralf