Date: Mon, 25 Sep 2017 19:13:00 -0500 From: Jason Pope <boards188@gmail.com> To: Ben Woods <woodsb02@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Pkg upgrade question Message-ID: <CAEqUV_h-f1uztV5jmYxmQL6tG%2Bv4rKL8393smwdrD7Tx07n9yA@mail.gmail.com> In-Reply-To: <CAEqUV_iLEiRU4EY_tDCJWJxfuxZH6RYQyyAMN58kJ0Praegw3A@mail.gmail.com> References: <CAEqUV_h=RhJG=gCJ9tGTODhEMh=jAwzDXWJtsOkeF5Wi_oUD0w@mail.gmail.com> <CAOc73CAu2j69OjcFx10OBTE=uRYWUGy094uk63KBEzYrj2=2ag@mail.gmail.com> <CAEqUV_iLEiRU4EY_tDCJWJxfuxZH6RYQyyAMN58kJ0Praegw3A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
All, I fixed my issue with the "pkg" command. I forgot that I get an IPv6 allocation and I have seen that cause slowdowns on other machines due to DNS difficulties. So, I edited my /usr/local/etc/pkg.conf file and un-commented the IP_VERSION line and changed it from 0 to 4, which forces "pkg" to only use IPv4; it looks like this: IP_VERSION = 4 It is VERY fast on the updates now! Jason K Pope 214.566.8527 boards188@gmail.com Greater love has no one than this, that one lay down his life for his friends. John 15:13 On Sun, Sep 24, 2017 at 5:16 PM, Jason Pope <boards188@gmail.com> wrote: > Thank you for the quick response. > > No, I don't believe other connections take this long to establish. At > least navigating between websites works fine and appears to be very > responsive. > > I just installed a new package with "sudo pkg install wget"; it takes > several minutes for the "Updating FreeBSD repository catalogue..." to > complete. I then get the response, "Proceed with this action? [y/N]:". I > answer "y" and it again takes right at 75 seconds for the download to begin. > > Jason K Pope > 214.566.8527 <(214)%20566-8527> > boards188@gmail.com > > Greater love has no one than this, that one lay down his life for his > friends. > > On Sun, Sep 24, 2017 at 3:54 PM, Ben Woods <woodsb02@gmail.com> wrote: > >> On Sun, 24 Sep 2017 at 10:48 pm, Jason Pope <boards188@gmail.com> wrote: >> >>> I am new to FreeBSD (obviously) and have FreeBSD 11.1 installed as a VM >>> guest inside VirtualBox running on Mac OSX. I am using bridged mode for >>> networking. Network speed is very good. >>> >>> My problem is when I upgrade packages. I run "sudo pkg update", then run >>> "sudo pkg upgrade". The new packages download very fast, 400 to 800 kB/s, >>> but there is always ~75 seconds between the ending of one package and the >>> starting of the next package. Is that normal? >>> >>> I am currently updating 106 packages, so it will require 2 hours of time >>> between package downloads in addition to the time to download the >>> packages. >>> >>> Hi Jason, >> >> No, this is not normal, but I have never seen it before. >> >> Note that pkg creates a new connection for each package it downloads, so >> there is normally a couple of seconds to negotiate it, but not 75secs. >> >> Do other internet connections from the VM take this long to establish >> also? >> >> Regards, >> Ben >> -- >> >> -- >> From: Benjamin Woods >> woodsb02@gmail.com >> > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEqUV_h-f1uztV5jmYxmQL6tG%2Bv4rKL8393smwdrD7Tx07n9yA>