Date: Mon, 27 Dec 2010 03:35:24 +0000 From: "b. f." <bf1783@googlemail.com> To: Chris Telting <christopher-ml@telting.org> Cc: freebsd-questions@FreeBSD.org Subject: Re: pkg_info and an active /usr/ports is slow Message-ID: <AANLkTim6xOWbxPyJXt9Z3zK8vmRQ1z25yHqUXLbANizc@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTim6xOWbxPyJXt9Z3zK8vmRQ1z25yHqUXLbANizc>
