From owner-freebsd-ports@FreeBSD.ORG Sat May 12 19:09:43 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C3BC416A402 for ; Sat, 12 May 2007 19:09:43 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id B1E8C13C46A for ; Sat, 12 May 2007 19:09:43 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 78ED61A3C19; Sat, 12 May 2007 12:10:30 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id D1B6F52C9B; Sat, 12 May 2007 15:09:42 -0400 (EDT) Date: Sat, 12 May 2007 15:09:42 -0400 From: Kris Kennaway To: Stephen Montgomery-Smith , Kris Kennaway , "[LoN]Kamikaze" , freebsd-ports@freebsd.org Message-ID: <20070512190942.GA24508@xor.obsecurity.org> References: <464597C6.3030406@gmx.de> <20070512174011.GA22526@xor.obsecurity.org> <4645FF71.60100@gmx.de> <20070512175824.GA23103@xor.obsecurity.org> <20070512133054.B5588@math.missouri.edu> <20070512185321.GA62886@icarus.home.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070512185321.GA62886@icarus.home.lan> User-Agent: Mutt/1.4.2.2i Cc: Subject: Re: Time to abandon recursive pulling of dependencies? 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, 12 May 2007 19:09:43 -0000 On Sat, May 12, 2007 at 11:53:22AM -0700, Jeremy Chadwick wrote: > On Sat, May 12, 2007 at 01:33:40PM -0500, Stephen Montgomery-Smith wrote: > > I've done a little poking around. As of right now, I think that the > > registering takes a huge amount of time inside of a function called > > "sortdeps" which may be found in /usr/src/usr.sbin/pkg_install/lib/deps.c. > > Has anyone built a system with profiled libraries and a pkg_install > binary with gcc -pg? gprof output would be incredibly beneficial here. > We're grasping at straws until we figure out where most of the time is > spent during a port installation. > > The desire to "move to Berkeley DB and use hashes" (mentioned in another > post in this thread) is fine, but that's implying that there's a lot of > filesystem I/O going on which could be optimised by using a key/value > "database" somehow. No offence, but I'm sceptical of that being the > solution to this whole thing. It is not claimed that "move to Berkeley DB and use hashes" is going to be the solution to "this whole thing", so that's a straw man argument. It is claimed that it will solve certain specific problems. See my post to hackers@ yesterday for more discussion of the issues. Kris