pkg version is slowwww
Steve Kargl
sgk at troutmask.apl.washington.edu
Fri Oct 26 18:56:15 UTC 2018
On Fri, Oct 26, 2018 at 08:40:07PM +0200, Michael Gmelin wrote:
>
> > On 26. Oct 2018, at 20:03, Steve Kargl <sgk at troutmask.apl.washington.edu> wrote:
> >
> > I recently updated to pkg-1.10.5_5, and I now
> > find to command "pkg version -vl '<'" to be
> > much slower than previous versions.
> >
> > Four consecutive executions of "time pkg version -vl '<'"
> > yields
> >
> > 54.15 real 27.28 user 25.66 sys
> > 48.80 real 26.04 user 23.01 sys
> > 48.35 real 26.30 user 22.59 sys
> > 48.43 real 26.54 user 22.32 sys
> >
> > During one of these timings, top(1) shows
> >
> > 47519 root 1 -8 0 21M 12M piperd 0 0:00 0.20% pkg
> >
> > Is slow down expected?
> >
> > Note, "time pkg info" gives
> >
> > 0.01 real 0.00 user 0.00 sys
> >
>
> What is the timing when using “-R” and when using “-I”?
>
Hmmm, it seems that -I may have found the cause of my
observed slowdown.
% time pkg version -I -vl '<'
pkg: Can't access /usr/ports/INDEX-13: No such file or directory
0.00 real 0.00 user 0.00 sys
I cannot find an announcement that FreeBSD-12 had branched.
I have /usr/ports/INDEX-12, but I also rebuilt world yesterday
where I track head and obviously head sources are from after
the branch.
% uname -v
FreeBSD 13.0-CURRENT r339736 HPC
Deleting /usr/ports/INDEX-12 and doing "make fetchindex" in
/usr/ports pulls the INDEX-13 file. I now see
% time pkg version -vl '<'
0.09 real 0.09 user 0.00 sys
which is what I expected. Apologies for the noise.
--
Steve
More information about the freebsd-ports
mailing list