Subject: Re: shared library support
To: None <tech-kern@NetBSD.ORG>
From: None <jiho@postal.c-zone.net>
List: tech-kern
Date: 03/19/1998 10:34:17
On 18-Mar-98 Wolfgang Solfrank wrote:

>> I welcome your comments on my own test.
>
> I've had a look at your test program, and it's pretty clear that with this
> program multiple copies of the shared-lib-version need quite a few pages
> per copy, while multiple copies of the static-lib-version require only one
> page per copy (user pages that is, kernel space needs some additional pages
> per copy, but those are (more or less?) the same on both versions).
  .
  .
> This all (together with the unshared stack that you also have in the static
> case) should pretty much add up to the amount of memory required per copy
> of your program running at the same time.

Exactly:  it should, but it doesn't.

If you look at the results (recently posted in my second go at this) you'll see
my test program generates some 8 pages (64K) for each new instance of the
shared library case, where the static case generates only 2 (8K).  Which is
what you'd expect if the runtime linker (ld.so) and the small amount of shared
library code being used were copied for each instance, in addition to what you
describe.


--Jim Howard  <jiho@mail.c-zone.net>


----------------------------------
E-Mail: jiho@mail.c-zone.net
Date: 19-Mar-98
Time: 10:34:18

This message was sent by XFMail
----------------------------------