From owner-freebsd-questions@FreeBSD.ORG Tue Aug 31 16:19:17 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56AE310656B5 for ; Tue, 31 Aug 2010 16:19:17 +0000 (UTC) (envelope-from ml@netfence.it) Received: from cp-out9.libero.it (cp-out9.libero.it [212.52.84.109]) by mx1.freebsd.org (Postfix) with ESMTP id D9CA88FC0A for ; Tue, 31 Aug 2010 16:19:16 +0000 (UTC) Received: from soth.ventu (151.51.63.247) by cp-out9.libero.it (8.5.107) id 4C6EB96E0139CA4B; Tue, 31 Aug 2010 18:19:15 +0200 Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.14.4/8.14.3) with ESMTP id o7VGJ9F2058517; Tue, 31 Aug 2010 18:19:09 +0200 (CEST) (envelope-from ml@netfence.it) Message-ID: <4C7D2B7F.7080207@netfence.it> Date: Tue, 31 Aug 2010 18:19:11 +0200 From: Andrea Venturoli User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; it-IT; rv:1.9.1.11) Gecko/20100805 Thunderbird/3.0.6 MIME-Version: 1.0 To: Dan Nelson References: <4C7CF944.7030709@netfence.it> <20100831143545.GB5913@dan.emsphone.com> In-Reply-To: <20100831143545.GB5913@dan.emsphone.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.1.2.13 Cc: freebsd-questions@freebsd.org Subject: Re: Speeding up (caching?) shared libraries loading X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2010 16:19:17 -0000 Il 08/31/10 16:35, Dan Nelson ha scritto: > In the last episode (Aug 31), Andrea Venturoli said: >> Suppose I have an executable which I need to invoke repeatedly (e.g. to >> run tests in a makefile). This executables spend most of its time loading >> (rather than processing), due to the need of several huge shared >> libraries. > > Link your program statically and bypass the dynamic linker completely. Then my binary would be more than 200MB and it wouldn't load that fast either. Besides I have several binaries using the same libraries and linking them all statically would take up a lot more time. bye & Thanks anyway av.