Solved pkg download speed too low

My regular browsing and download speed is fine, but when I try to install a program with pkg install, the speed is horribly low. I've tried changing the URL in /etc/pkg/FreeBSD.conf to one of the mirrors on http://pkg.freebsd.org/. I change only the url part, for example:
Code:
pkg+http://pkg.FreeBSD.org/${ABI}/quarterly
TO
Code:
pkg+http://pkg0.bme.FreeBSD.org/${ABI}/quarterly
I've tried all the mirrors and every time I do a pkg update after the change, it says: "pkg: Repository FreeBSD has a wrong packagesite, need to re-create database" and fetches the packagesite from somewhere and updates the repo, but my speed is still the same. It's like what I did makes no difference. It shows me that message even if I change the URL back to the original.
I've also tried making a copy of that file in /usr/local/etc/pkg/repos and modifying that instead (leaving the "mirror type" part) and I get the same result.
 
Nothing to worry about. It's typical of pkg/mirror system. It's sometime much slower than some other projects. Project needs more capital for more servers!
The pkg uses GeoIP to locate the best mirror, hence there's no need to manually change any setting. Keep your mentioned settings at its own default states.
All that said, there're few temporary solutions. Restart your MODEM/ADSL/etc and if it's possible use a VPN to change your IP to connect to different mirror.
 
Nothing to worry about. It's typical of pkg/mirror system. It's sometime much slower than some other projects. Project needs more capital for more servers!
The pkg uses GeoIP to locate the best mirror, hence there's no need to manually change any setting. Keep your mentioned settings at its own default states.
All that said, there're few temporary solutions. Restart your MODEM/ADSL/etc and if it's possible use a VPN to change your IP to connect to different mirror.
Thanks for the reply, but is it really normal for it to be "this" slow? I'm talking about 8-16 kb/s. it took me ~3 hours to install firefox! Besides, shouldn't different mirrors have different speeds, even if they're all slow? the speed of my downloads are pretty much exactly the same, they fluctuate between 8, 16 and 24 kb/s. My internet's real download speed is 1 mb/s. Someone on another thread was mentioning the fact that it could have something to do with pkg trying to use IPv6 or something. I have no idea how to check for that or provide information that could be useful in identifying the problem. I'm pretty sure my modem doesn't have IPv6 tho.

I will try to set up a VPN and see if it makes any difference
 
My typical pkg download speed is ranging from 20K to 2M!, and
I can't find any pattern, e.g. day of week, time, changing ISP, etc.
 
I faced similar problem (8-16 kb/s, pkg download speed) in the past and all of my efforts to fix it were unsuccessful. However, recently this problem fixed by itself (without any of my effort). Maybe the server which is responsible to provide packages (to my region) is fixed/upgraded.
 
I changed the mirror one more time and now the speed is better for some reason (~100 kb/s), although I'm not sure it will stay that way. After reading through all the threads raising the same issue and experiencing it myself, I guess this is not about FreeBSD configurations or anything that the user could have any control over. It seems to be simply a matter of not having enough servers around the world to provide better speeds for users. I will declare the thread solved. Thank you all for being kind and helpful.
 
  • Thanks
Reactions: a6h
If your user information is correct you probably wont get good speeds from a server on the other side of the globe (bme which also is down for maintaince).
Depending on your ISP they might have better connectivity to some other parts of Asia than Japan, kul is hosted in Malaysia, twn in Taiwan and isc west coast US.
 
Back
Top