From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7789 Path: news.gmane.org!not-for-mail From: Timo Teras Newsgroups: gmane.linux.lib.musl.general Subject: Re: Question re: dynamic linking in musl Date: Wed, 27 May 2015 16:09:55 +0300 Message-ID: <20150527160955.1bda26cf@vostro> References: <20150527100844.GA306@alex-ThinkPad-L530> <5565A812.9090004@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1432732212 6099 80.91.229.3 (27 May 2015 13:10:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 May 2015 13:10:12 +0000 (UTC) Cc: musl@lists.openwall.com To: Alexander Monakov Original-X-From: musl-return-7801-gllmg-musl=m.gmane.org@lists.openwall.com Wed May 27 15:10:11 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Yxb63-0002Uo-JG for gllmg-musl@m.gmane.org; Wed, 27 May 2015 15:10:11 +0200 Original-Received: (qmail 30441 invoked by uid 550); 27 May 2015 13:10:09 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 30419 invoked from network); 27 May 2015 13:10:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=wvyVZJuZU0aUVgpzQT+SbM/ZAKFLdrUaj6HoJLLS4yw=; b=SIE8VG7ktORVfIPfN2GCQ5fXgv389QDdxvvS0idyej/K/w0P6yRs08+oVrRABLL9L1 o7KKVPULctlXACgPCpF7a0yvUfavVT09WbcLqgVQUsZrEW/TQ+/pi06Q1BmEihD/VzK8 lW/6oH4xJ6sLoI0IBq5f6QooGutledkeF9R3HNKYzIqqHCIQUsEOvHomz7tFbABGamUx iRxqtkhKc/hDVRLv5bwOvgzd91fu5m9a/NRD+n/eyzodKXBAuxfesbVJrd2BQl/mpf08 A3czw4QuGYIvBEyKJL/FtrRVkOLr5NQjV++cSTtk/puZVTBmPdQnZpLuRgtUqL8YNxMD 9nkQ== X-Received: by 10.152.3.33 with SMTP id 1mr27913021laz.109.1432732197414; Wed, 27 May 2015 06:09:57 -0700 (PDT) Original-Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= In-Reply-To: X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-alpine-linux-musl) Xref: news.gmane.org gmane.linux.lib.musl.general:7789 Archived-At: On Wed, 27 May 2015 16:01:50 +0300 (MSK) Alexander Monakov wrote: > On Wed, 27 May 2015, Alex Dowad wrote: > > > Can you also provide exact figures? For example your callgrind > > > logs? Or just > > > 'time' statistics for executables that spend much time in the > > > dynamic linker. > > Callgrind data attached. > > Oh. The profile makes it evident that most of the libraries > lack .gnu.hash, and the lookup is almost always using SysV lookup. > With many dependencies SysV lookup is slower: in my testing with > Clang/LLVM I got something like 420 ms (compared to 240 ms unpatched > or 110 ms patched musl with .gnu.hash lookup). > > I'm not familiar with Alpine. Hopefully someone else can chime in > whether .gnu.hash is deliberately disabled. We have not touched, so we are using the gcc default. Which apparently then is sysv only (bummer). I wonder if it's better to have both, or gnu only? /Timo