From owner-freebsd-questions@FreeBSD.ORG Mon Dec 27 03:35:25 2010 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC90A106564A for ; Mon, 27 Dec 2010 03:35:25 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 48A418FC12 for ; Mon, 27 Dec 2010 03:35:24 +0000 (UTC) Received: by yxh35 with SMTP id 35so3883209yxh.13 for ; Sun, 26 Dec 2010 19:35:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to:date :message-id:subject:from:to:cc:content-type; bh=fxL8vN3biSoOz4Epvu7ewQ+fVISxzd+mKSoPnI9WbNE=; b=izQEGPMUFPVkH0ZjQ77+ud08OUoi+Vp6Fgj8WcI7HKot8aijrpSqKrnqr4ORlpOYRR Pe099ta8ghkcDijIrM0m7e1uLDdoMqa0D0L2GdPLX44LMmwY8qE0xt3d500S0noDnJe0 XErI/ED73AzOK0iVBqdFvloMbNeUoetDO3OB8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; b=V/OqX/l3ntrPkFcj1zs3aQO5bfeMmXDhUlCNls6ZALOM0vinum50WVU+zELMs5XhQK m5VrA4ammNhU0GtxhJW8YEuXjZQIXWq8H7gJJuNuueoSbPRoCtZgQ+oj8bcUI2JN8AYK a/JkQolSaGE4lP3teurSUtfjbQqj9ZJeS8PoY= MIME-Version: 1.0 Received: by 10.236.103.169 with SMTP id f29mr5786724yhg.36.1293420924514; Sun, 26 Dec 2010 19:35:24 -0800 (PST) Received: by 10.236.105.197 with HTTP; Sun, 26 Dec 2010 19:35:24 -0800 (PST) Date: Mon, 27 Dec 2010 03:35:24 +0000 Message-ID: From: "b. f." To: Chris Telting Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@FreeBSD.org Subject: Re: pkg_info and an active /usr/ports is slow X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Dec 2010 03:35:25 -0000 > Just wondering about the interaction of pkg_info (no args) and having a > ports directory. > > Without it it's blazing fast, with it it is just slow and sometimes just > breaks during the listing. > > There is nothing in the man page about it reading the ports directory or > why it would want or need to. Are you sure that this is actually the case? From a cursory look at the source code ( /usr/src/usr.sbin/pkg_install/info/* ), I don't see how the mere presence of a populated PORTSDIR could affect "pkg_info", at least for the most recent version ( # pkg_info --version Package tools revision: 20101012 ). Of course, if by "active" you mean that you are in the process of building, installing, or removing a port or package while running "pkg_info" at the same time, then this obviously would slow down both, because, apart from the usual delays involved in time-sharing, both may be attempting to simultaneously read and/or write to PKG_DBDIR, or other parts of the same disk. It is best to avoid such a situation. b.