pkg icon indicating copy to clipboard operation
pkg copied to clipboard

pkg is super slow (not internet speed)

Open rajhlinux opened this issue 2 years ago • 3 comments

I have been using FreeBSD for a longtime and now I downloaded FreeBSD 13 and pkg installations are super slow. Has nothing to do with the internet speed. Something is wrong with pkg.

If I am installing a large software... pkg fetches the files, it pauses like 10-15 secs for each and every downloaded file and then repeats for every next file. This is crazy.

Basically its pausing after every download...

pkg install firefox will take an hour to install...

has nothing to do with internet, seems pkg is not functioning right. I have fiber optic internet.

I guess I'll use older versions of FreeBSD...

Thanks.

rajhlinux avatar Apr 19 '22 09:04 rajhlinux

That could be possibly because of the pkg mirror and the DNS server you're using. Can you show us your outpuot of dig pkg.freebsd.org ?

lwhsu avatar Apr 19 '22 09:04 lwhsu

pkg uses libfetch, can you try manually fetching via fetch(1) one of those packages?

bapt avatar Apr 19 '22 10:04 bapt

It's a little far-fetched, but I just reported #2038. Try invoking pkg to install something from an interactive shell, and type control-T at it during one of these pauses. That'll show us what pkg is waiting for.

cgull avatar Apr 21 '22 22:04 cgull

closed by https://github.com/freebsd/pkg/issues/2038

bapt avatar Oct 18 '22 11:10 bapt

This is still going on, I’ve used the pkg-t as mentioned and having the same issue. To me this looks like traffic shaping gone wrong? Maybe cause it’s not SSL>? Doesn’t make sense to me. I’ll check it out on wireshark once I have a working system up, but this is crazy.

jknoxdev avatar Mar 10 '23 09:03 jknoxdev