From owner-freebsd-ports@FreeBSD.ORG Sun Mar 27 12:59:05 2005 Return-Path: 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 DD46816A4CE for ; Sun, 27 Mar 2005 12:59:05 +0000 (GMT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id C63B243D31 for ; Sun, 27 Mar 2005 12:59:05 +0000 (GMT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id BDEC25CA0E; Sun, 27 Mar 2005 04:59:05 -0800 (PST) Date: Sun, 27 Mar 2005 04:59:05 -0800 From: Alfred Perlstein To: ports@freebsd.org Message-ID: <20050327125905.GI60345@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: pkg_* slow? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Mar 2005 12:59:06 -0000 I noticed that ports are very slow lately, what I realized is that the pkg_* tools on my machine spend a huge amount of time walking the /var/db/pkg/* files stat(2)'ing them and doing other operations. This gets really slow when one has 500+ packages installed. Is there any reason it's donig all this work? Any ideas on how it could be avoided? -- - Alfred Perlstein - Research Engineering Development Inc. - email: bright@mu.org cell: 408-480-4684