From owner-freebsd-hackers Fri Aug 29 11:34:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA20130 for hackers-outgoing; Fri, 29 Aug 1997 11:34:10 -0700 (PDT) Received: from iafnl.es.iaf.nl (uucp@iafnl.es.iaf.nl [195.108.17.20]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id LAA20124 for ; Fri, 29 Aug 1997 11:34:04 -0700 (PDT) Received: by iafnl.es.iaf.nl with UUCP id AA17786 (5.67b/IDA-1.5 for hackers@FreeBSD.ORG); Fri, 29 Aug 1997 20:33:38 +0200 Received: (from wilko@localhost) by yedi.iaf.nl (8.8.5/8.6.12) id XAA02694; Thu, 28 Aug 1997 23:10:17 +0200 (MET DST) From: Wilko Bulte Message-Id: <199708282110.XAA02694@yedi.iaf.nl> Subject: Re: shared libraries? To: andrew@zeta.org.au (Andrew Reilly) Date: Thu, 28 Aug 1997 23:10:17 +0200 (MET DST) Cc: toor@dyson.iquest.net, perlsta@sunyit.edu, hackers@FreeBSD.ORG In-Reply-To: <199708280638.QAA18886@gurney.reilly.home> from "Andrew Reilly" at Aug 28, 97 04:38:48 pm X-Organisation: Private FreeBSD site - Arnhem, The Netherlands X-Pgp-Info: PGP public key at 'finger wilko@freefall.freebsd.org' X-Mailer: ELM [version 2.4 PL24 ME8a] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Andrew Reilly wrote... > On 28 Aug, John S. Dyson wrote: > > Believe it or not, shared libs often hurt more than help. Even with an > > ideal scheme that is prelinked, a program can take MORE memory, not less. > > We share the .text of programs even without using shared libs. In the > > case of shells, shared libs are usually a loose. A rule of thumb that I use > > is (These are only my opinions): > [list elided] [del] > Has anyone considered building a shared library use-analysis > tool, to attempt to optimise the ordering of objects within > the various shared libraries, so that the "most used" core > of modules were concatenated, probably at the front, with > less commonly used functions falling to the tail, so they > would mostly not be paged in? I think the SVR3 Unix libc_s was built using a reordering process like this. _ ____________________________________________________________________ | / o / / _ Bulte email: wilko@yedi.iaf.nl http://www.tcja.nl/~wilko |/|/ / / /( (_) Arnhem, The Netherlands - Do, or do not. There is no 'try' ----------------------------------------------------------------------Yoda