Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Nov 2000 09:28:09 -0800 (PST)
From:      Matt Dillon <dillon@earth.backplane.com>
To:        Randell Jesup <rjesup@wgate.com>
Cc:        Alfred Perlstein <bright@wintelcom.net>, arch@FreeBSD.ORG
Subject:   Re: The shared /bin and /sbin bikeshed
Message-ID:  <200011101728.eAAHS9418733@earth.backplane.com>
References:  <200011091223.eA9CNQW26294@mobile.wemm.org> <200011091909.eA9J9wM10639@earth.backplane.com> <20001109112328.T5112@fw.wintelcom.net> <200011091944.eA9JiSN30771@vashon.polstra.com> <20001109115022.Y5112@fw.wintelcom.net> <200011100326.eAA3Q6015450@earth.backplane.com> <ybupuk3pxoo.fsf@jesup.eng.tvol.net.jesup.eng.tvol.net>

next in thread | previous in thread | raw e-mail | index | archive | help
:        If I have saw 20 instances of an executable with 100 shared
:libraries, or 20 instances of an executable with 5 (much larger) shared
:libraries, or 20 instances of a very large mostly static executable,
:what is the relative memory hit?  Or swap hit?  My test may have been
:too simple....  How different would the answer be in Linux?
:
:        (This is for working on figuring out how much of a win it is in
:Mozilla to combine shared libs, which some people are working on.)
:
:-- 
:Randell Jesup, Worldgate Communications, ex-Scala, ex-Amiga OS team ('88-94)
:rjesup@wgate.com

    However, I would say that for something like Mozilla linking static is
    going to be a definite win since nearly all the libraries referenced
    by Mozilla are special purpose - going to be used primarily by
    Mozilla and not much by anything else.  If libX11.  There isn't much
    there that would be shared enough to make it worthwhile vs the memory
    overhead of the dynamic linking.

    Having lots of tiny shared libraries is a definite lose, but once a
    shared library gets over a few hundred K continuing to merge it with
    other shared libraries isn't going to buy you much vs what you would
    get with static.  One might as well just link static.

						-Matt




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011101728.eAAHS9418733>