From owner-freebsd-questions@FreeBSD.ORG Tue Aug 31 12:45:04 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 7D7E2106566C for ; Tue, 31 Aug 2010 12:45:04 +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 160FD8FC0C for ; Tue, 31 Aug 2010 12:45:03 +0000 (UTC) Received: from soth.ventu (151.51.63.247) by cp-out9.libero.it (8.5.107) id 4C6EB96E012E82CA for freebsd-questions@freebsd.org; Tue, 31 Aug 2010 14:45:01 +0200 Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.14.4/8.14.3) with ESMTP id o7VCiobm022468 for ; Tue, 31 Aug 2010 14:44:50 +0200 (CEST) (envelope-from ml@netfence.it) Message-ID: <4C7CF944.7030709@netfence.it> Date: Tue, 31 Aug 2010 14:44:52 +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: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.1.2.13 Subject: 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 12:45:04 -0000 Hello. 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. I'd welcome an hint on how to speed this up. Possible thing would be to "cache" these shared libraries (and possibily the executable too) in memory, so that any invocation after the first is faster. Is this possible at all? Any other idea? bye & Thanks av.