SUMMARY: Size of Processes on SS20 running Solaris 2.4

From: Jamie Bubenicek (jab@nrg.com)
Date: Sat Jun 10 1995 - 02:16:01 CDT


Hey Managers,

  My first SUMMARY, here it goes....

Thank you, all who responded:

<mshon@sunrock.East.Sun.COM>
<kevin@uniq.com.au>
<dav@aladdin.litronic.com>
<sdr@rdga3.att.com>

I know I have missed some, but I have a new way of keeping track of who
responded and it won't happen again.

***************************************************************************
RE: Size of Processes on SS20 running Solaris 2.4

SZ - physical memory or total process image?
---------------------------------------------

SZ is the total process image size, not just the amount in physical
memory. It _includes_ any shared memory and dynamically linked libraries.

Libraries and process address space.
------------------------------------

Firstly, Solaris 2 emphasises shared libraries much more than SunOS or
HP-UX. In Solaris 2, when you use a shared library the entire library
gets mapped into the process space even though only the parts you use ever
get paged into physical memory.

If a program is statically linked, roughly speaking, only those bits of
the library that are needed appear in the process's address space. If
it's dynamically linked on Solaris 2, the whole library is counted in the
process space for each process.

Suppose you run a dynamically linked executable on Solaris 2. The
process's SZ will be the data and stack of the process PLUS the ENTIRE
sizes of the shared libraries that the process uses PLUS any shared
memory it uses. It is misleading because it won't ever be used, but it
is still counted as part of the process space. And if you run a second
instance of the process, it will also look really big but will use even
less physical RAM because it is sharing libraries and shared data.
 --
%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%
                                              
        |Jamie Bubenicek | :::/ .::./ ::::::/
        |Los Angeles, CA 90036 | :::/ .::::::./ :::/ ::/
        |E-Mail: jab@nrg.com | :::/ :::/ :::/ ::::::/
        | \o/ \ / \o/ \ / \o/ \ / \o/ | :::/ :::/ ::::::::/ ::::::/
        | | | | | | | | | ::::::::/ :::/ :::/ :::/ ::/
        | / \ /o\ / \ /o\ / \ /o\ / \ | ::::::/ :: :::/ :::/ :: ::::::/

%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:26 CDT