Subject: Re: xorg and shared libraries
To: None <netbsd-users@NetBSD.org>
From: Matthias Scheler <tron@zhadum.de>
List: netbsd-users
Date: 01/13/2005 18:32:56
In article <200501091740.RAA14334@sopwith.solgatos.com>,
	Dieter <netbsd@sopwith.solgatos.com> writes:
> Wouldn't static linking solve many (maybe all?) of these problems
> and be faster as well?
> 
> See
> 	http://www.feyrer.de/NetBSD/gmcgarry/
> 
> for the "faster" bit.

While "static" binaries are faster on operations as exec() and fork()
they are bad for overall system performance simply because they
require much memory. If three processes run different applications use
the same shared library it will be in system memory once (except for
pages with library local data which has been modified). If these
process would instead run three binaries which were statically
linked with the same library the library would be in memory three
times. These effects can of course not be measured that easily.
But I guess running a dynamically and statically linked KDE 3
on a machine with only 128MB memory will demonstrate the effect.

	Kind regards

-- 
Matthias Scheler                                  http://scheler.de/~matthias/