From owner-freebsd-questions@freebsd.org Tue Sep 26 00:13:02 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3AE65E270B8 for ; Tue, 26 Sep 2017 00:13:02 +0000 (UTC) (envelope-from boards188@gmail.com) Received: from mail-yw0-x236.google.com (mail-yw0-x236.google.com [IPv6:2607:f8b0:4002:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EAC146E5BB for ; Tue, 26 Sep 2017 00:13:01 +0000 (UTC) (envelope-from boards188@gmail.com) Received: by mail-yw0-x236.google.com with SMTP id s62so5966102ywg.0 for ; Mon, 25 Sep 2017 17:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8G6EnE+drX26Ek1x7I4d5rnjw9p4sxMCmGpcoMAgbEg=; b=c+YJe7hbfuAgS6BTF/a2Vb59eqGDBKk+KmfF/4ZSnuaeEdTX/X/3OF2d5sgY7ejDno tt7Bf2pc4FsqNLMzReflch8NqKVD2qhWNu69yPQQRznF/tukT4InI9LUpch6CN5ArGnY mSrnS3PYEkAr+qs5flRTKR2Q2KOwTi5P14+YX7y0EmUvrfYZifp8VqDRmgHSe/p4CxyQ CujA3sUxB4v1jRe6aVD0O2lywwb37gevooqZEe9TywNYE0QALiB0G6VOjNC2yZwlRQ2F r/5gswDG1LwdWmstGGp7TMr+YPukHhtCpuM+9qFNMQYOFpFXU/oWQ+GicfOFaXFzCPCh BdvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8G6EnE+drX26Ek1x7I4d5rnjw9p4sxMCmGpcoMAgbEg=; b=QiS/bOd3KzZ9JahyMz3efITK3ySpMXy667z0V3tqNQrPvTArUBIxWKgnWLTYudaNvF E6MZSeVqCnKF/OIoObBCAkUr7YrqQhMrWP9tkHrb6dDwVptTeT3eXCL6LCz5Lxyfq+1J Igr2P2KGdG6QcryoB2j3OGI4mUUcfeMzOlWBnt3kwVqglApQcOe9pOUh55R8QIILVdbL xG1UMmggBjlrPlzxuSJzeyUiYk8h1IKQ3HK93KmecsCy6PkO8PP+C3TJ0Tz+qHpNfFYK 0c+SoKOKttm9ZFciQmve1mIgGiiZT/zoDfbZ6a0oSk1JHDjWmo+Ksw960IXHyaF2WO7i 043w== X-Gm-Message-State: AHPjjUgBbzNcD7G1uzsgGdHTJ6oHLErRfgdPLRzIuOnj1ny5KsaHx8EC kn7nzyujveMON8ufplDOP3aSHXubuRqSgGV+OMM= X-Google-Smtp-Source: AOwi7QCaS4fIY1HqWnFwcsiQxOdsiK2B4KXkQlpywFMMrC8DZXmmN5a8jmXqh0YcEgiBQhmA8VW+B9It9F5k91/55vo= X-Received: by 10.37.230.193 with SMTP id d184mr5557421ybh.509.1506384780910; Mon, 25 Sep 2017 17:13:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.163.12 with HTTP; Mon, 25 Sep 2017 17:13:00 -0700 (PDT) In-Reply-To: References: From: Jason Pope Date: Mon, 25 Sep 2017 19:13:00 -0500 Message-ID: Subject: Re: Pkg upgrade question To: Ben Woods Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Sep 2017 00:13:02 -0000 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 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 wrote: > >> On Sun, 24 Sep 2017 at 10:48 pm, Jason Pope 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 >> > >