From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 27 23:47:45 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D945106566B for ; Thu, 27 Jan 2011 23:47:45 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.160]) by mx1.freebsd.org (Postfix) with ESMTP id 9562D8FC0A for ; Thu, 27 Jan 2011 23:47:44 +0000 (UTC) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQv0cW+St/nW/afgnrylsiWuobih/yw== X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de (ip-109-45-5-133.web.vodafone.de [109.45.5.133]) by post.strato.de (jimi mo9) (RZmta 25.1) with (DHE-RSA-AES128-SHA encrypted) ESMTPA id m03859n0RKBcIc for ; Fri, 28 Jan 2011 00:47:41 +0100 (MET) Received: by britannica.bec.de (sSMTP sendmail emulation); Fri, 28 Jan 2011 00:47:37 +0100 Date: Fri, 28 Jan 2011 00:47:37 +0100 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20110127234737.GA31603@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <201101271305.21510.naylor.b.david@gmail.com> <20110127203126.GN2518@deviant.kiev.zoral.com.ua> <1296161448.20060.40.camel@dt.vicor.com> <20110127205907.GP2518@deviant.kiev.zoral.com.ua> <1296162754.20060.42.camel@dt.vicor.com> <20110127213536.GR2518@deviant.kiev.zoral.com.ua> <1296165538.20060.43.camel@dt.vicor.com> <20110127182418.77c53c60@kan.dnsalias.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110127182418.77c53c60@kan.dnsalias.net> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: rtld optimizations X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2011 23:47:45 -0000 On Thu, Jan 27, 2011 at 06:24:18PM -0500, Alexander Kabaev wrote: > For starters, the number of libraries given binary is linked too is > completely and utterly irrelevant :) The change NetBSD guys claims to > revolutionize his application startup times only applies to programs > that dlopen (read - load dynamically) libraries with long largely > identical dependency chains and calls dlsym on them many, many > thousand times. I do not think you will find any real app out there > that fits this description close enough to actually demonstrate the > effect of the change that is distinguishable from the statistical noise. > Pressing ^C certainly not precise enough for that. (1) The program itself needs to have a large enough number of linked libraries. (2) The program needs to dlopen() modules. (3) The program needs to search for missing symbols often enough. >From memory, the real world example that fulfilled all three cases was Evolution. (1) and (2) are pretty typical though. Joerg