pkg_info and an active /usr/ports is slow

2010-12-26 Thread Chris Telting
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.


Most importantly there is no command line option to skip it.


Thanks Chris

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: pkg_info and an active /usr/ports is slow

2010-12-26 Thread Chris Brennan
On Sun, Dec 26, 2010 at 10:42 AM, Chris Telting
christopher...@telting.orgwrote:

 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.

 Most importantly there is no command line option to skip it.


 Thanks Chris


IIRC pkg_* checks a database that tools such as portupgrade utilize and this
could slow things down. But I am not 100% sure.

C-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: pkg_info and an active /usr/ports is slow

2010-12-26 Thread b. f.
 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.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org