Shared libraries are not necessary

Masataka Ohta mohta at necom830.cc.titech.ac.jp
Wed May 22 14:14:16 AEST 1991


In article <1991May21.170435.22610 at kithrup.COM>
	sef at kithrup.COM (Sean Eric Fagan) writes:

>>If you have 13+ people, you have very few merit (if any) with shared
>>libraries. As text of a binary is shared and most are using xterm, the
>>same binary is shared. The total amount of extra memory is still 1.5MB,
>>which is much more negligible compared to the total amount of memory
>>which is large enough (perhaps 32~64MB) to hold data area of 13+
>>people.

>Note that I also said "development with X."  Guess what:

Oh, I don't want to guess. So, give us usable data.

You even don't show how much memory the system has.

>those libraries
>aren't shared, it works out to about 1.5Mbytes *per X application*, and,
>with a dozen or so people doing that, that *is* a considerable amount of
>memory.

1.5Mbyte per X application? The code segment size of fully linked xterm
(a rather large application) is less than 600KB on SONY NWS3860 (the
machine, on which I measured FACTS and post the result with sufficient
figures). On sun4 (SunOS3.2), it is about 450KB.

So far, What I write is fact.

Below is mere guess.

I guess the sharable part of the code of xterm is less than 250K on Sun4.

I also guess that your 1.5MB is the sum of code sizes of all referred
libraries (if you don't use shared libraries, you don't have to link
unreferenced part of the library).

Then, you can't save memory unless you have at least 7 kinds of binaries
(processes withas the same binary share text) running at once.

						Masataka Ohta



More information about the Comp.unix.internals mailing list