Hello, At Sunday 02 September 2012 22:12:28 DaB. wrote:
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?
it is hard to compare the memory-usage between linux and solaris, because both handle vmsize different. For linux it is the reserved memory plus the heap plus the shared libraries; that's the reason linux tells you that a simple bash- shell needs >100MB of RAM. For Solaris it is just the used space (and maybe the heap); so bash "needs" only 7MB here. If you like to know how many memory your task is "using" at the moment, RSS is a far better place to look (you have to subtract the shared libraries through). For details about the linux-memory-system see [1].
Sincerely, DaB.
[1] http://bmaurer.blogspot.de/2006/03/memory-usage-with-smaps.html