Date: Sat, 11 Nov 2000 02:48:24 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: Peter Wemm <peter@netplex.com.au> Cc: Alfred Perlstein <bright@wintelcom.net>, Mike Smith <msmith@FreeBSD.ORG>, Matt Dillon <dillon@earth.backplane.com>, Warner Losh <imp@village.org>, arch@FreeBSD.ORG Subject: Re: The shared /bin and /sbin bikeshed Message-ID: <Pine.BSF.4.21.0011110234190.822-100000@besplex.bde.org> In-Reply-To: <200011101318.eAADImW34016@mobile.wemm.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 10 Nov 2000, Peter Wemm wrote: > Besides, having a shared libc is a win for memory because you get the same > physical pages mapped in over and over again, rather than having many many > seperate copies of libc mapped into different processes with no sharing. This depends on the process mix. For processes that have a few forked copies running concurrently, static linkage takes more memory because the process text is shared and the process data and mapping overheads are much smaller than for shared linkage (libc has poor locality...). I used to use shared linkage for everything until I understood this point. Now I use static linkage for everything except perl and ports. This is faster, and seems to take about the same amount of memory for my process mix. It takes slightly more than 2 cents worth of disk space. Bruce 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?Pine.BSF.4.21.0011110234190.822-100000>