On Thu, May 15, 2008 at 11:06 PM, Danek Duvall <danek.duvall at sun.com> wrote:
> On Thu, May 15, 2008 at 08:47:29PM +0100, Peter Tribble wrote:
>
>> pkg search /usr/bin/ls
>>
>> (Hm. Why is the latter so slow?)
>
> Probably because it is opening up and unpickling the search dictionary for
> each package which is or was installed on your system, which, if you've
> been following along for a bit, might be a thousand or two files.  If it'
> doesn't all get stuck in cache, it'll continue to be slow.
>
> Brock's in the process of rewhacking the way all this is put together, and
> the speed issue should come right along with it.
>
> As a workaround, you can safely blow away all the directories in
> /var/pkg/pkg which don't have an file called "installed".  We need to do
> this garbage collection at some point ourselves, but for now, it might
> help.  Do be very careful, though, because if you blow away the wrong
> directories, you're hosed.  Do the operation on a clone, or at least take a
> snapshot first.  :)

Well, in my case, this was on a brand new install, with no additional
packages or accumulated junk (yet - I need to start building up a full
software stack).

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/

Reply via email to