From owner-freebsd-ports@FreeBSD.ORG Sat Mar 11 06:18:49 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D413616A41F; Sat, 11 Mar 2006 06:18:49 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from mail10.syd.optusnet.com.au (mail10.syd.optusnet.com.au [211.29.132.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF5E343D70; Sat, 11 Mar 2006 06:18:48 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail10.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k2B6IiBC011488 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 11 Mar 2006 17:18:44 +1100 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.4/8.13.4) with ESMTP id k2B6IiGv014997; Sat, 11 Mar 2006 17:18:44 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.4/8.13.4/Submit) id k2B6IiHq014996; Sat, 11 Mar 2006 17:18:44 +1100 (EST) (envelope-from peter) Date: Sat, 11 Mar 2006 17:18:43 +1100 From: Peter Jeremy To: Eric Schuele Message-ID: <20060311061843.GA3222@turion.vk2pj.dyndns.org> References: <20060310094514.GA688@turion.vk2pj.dyndns.org> <441246A6.30402@computer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <441246A6.30402@computer.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: freebsd-ports@freebsd.org, Ade Lovett Subject: Re: Excessive startup times following libtool upgrade X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Mar 2006 06:18:49 -0000 On Fri, 2006-Mar-10 21:40:22 -0600, Eric Schuele wrote: >Ade Lovett wrote: >>On Mar 10, 2006, at 01:45 , Peter Jeremy wrote: >>>I have rebuilt gnucash following the libtool upgrade (admittedly, I >>>had to downgrade guile to avoid an slib problem). After which gnucash >>>takes 15 minutes of system time to start (it used to take about a >>>minute), issuing a ridiculous number of syscalls (30K/sec). I've done >>>some poking around with ktrace and gdb and believe that the problem is >>>libtool trying to load shared libraries. >> >>This appears to be something unique to gnucash -- I've looked at some >>other libltdl-using ports, and they don't exhibit the same behavior. I've done some more poking around and I was wrong - it's not related to the FreeBSD libltdl because guile embeds its own - libguile-ltdl. This is a (slightly) customised version of the libtool15 code. >guessed". They said it was a known issue and that it was FreeBSD >specific. Their guess was that it had to do with how shared objects >were being opened multiple times. Sounds like a good guess given >Peter's findings. It used to be slow but it looked to be mostly CPU-bound so I assumed it was just guile. It's now glacial but I'm no longer sure why. I'm considering hacking libguile-ltdl to cache both positive and negative shared library lookup results but it would be nice to know what the real problem was. Unfortunately, I don't have any other guile-based applications so I'm not sure if this is guile-specific or gnucash-specific. -- Peter Jeremy