Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2018 11:56:06 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Michael Gmelin <freebsd@grem.de>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: pkg version is slowwww
Message-ID:  <20181026185606.GA54123@troutmask.apl.washington.edu>
In-Reply-To: <A979A1E5-0E4F-440E-868B-FD542C3A31C8@grem.de>
References:  <20181026180337.GA12282@troutmask.apl.washington.edu> <A979A1E5-0E4F-440E-868B-FD542C3A31C8@grem.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 26, 2018 at 08:40:07PM +0200, Michael Gmelin wrote:
> 
> > On 26. Oct 2018, at 20:03, Steve Kargl <sgk@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20181026185606.GA54123>