qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Eduardo Habkost <ehabkost@redhat.com>,
	Gerd Hoffmann <kraxel@redhat.com>,
	 Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: "Fam Zheng" <fam@euphon.net>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Thomas Huth" <thuth@redhat.com>, "John Snow" <jsnow@redhat.com>,
	"QEMU Developers" <qemu-devel@nongnu.org>,
	"Kamil Rytarowski" <kamil@netbsd.org>,
	"Kevin Wolf" <kwolf@redhat.com>, "Cleber Rosa" <crosa@redhat.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: Python 2 and test/vm/netbsd
Date: Fri, 18 Oct 2019 16:58:00 +0200	[thread overview]
Message-ID: <a0c2df74-360b-79de-132e-f4d5be5bfc12@redhat.com> (raw)
In-Reply-To: <20191018142940.GN4084@habkost.net>

On 10/18/19 4:29 PM, Eduardo Habkost wrote:
> On Fri, Oct 18, 2019 at 12:44:39PM +0200, Gerd Hoffmann wrote:
>>    Hi,
>>
>>>> Running with V=1, I see packages being downloaded at reasonable speeds, but
>>>> there's a huge interval (of various minutes) between each package download.
>>>
>>> I've found the cause for the slowness I'm seeing: for each file
>>> being downloaded, the guest spents at least 75 seconds trying to
>>> connect to the IPv6 address of ftp.NetBSD.org, before trying
>>> IPv4.
>>
>> Ah, that nicely explains why it worked just fine for me.  First, I have
>> a local proxy configured so the installer isn't going to connect to
>> ftp.NetBSD.org directly.  Second I have IPv6 connectivity.
>>
>>> I don't know if this is a NetBSD bug, or a slirp bug.
>>
>> Both I'd say ...
>>
>> First, by default slirp should not send IPv6 router announcements
>> to the user network if the host has no IPv6 connectivity.
>>
>> Second, the recommended way to connect is to try ipv4 and ipv6 in
>> parallel, then use whatever connects first.  Web browsers typically
>> do it that way.  wget and curl don't do that though, they try one
>> address after the other, and I guess this is where the delay comes
>> from ...
> 
> In addition to that, the connect() error should be generating a
> ICMP6_UNREACH message, and I'd expect the NetBSD guest to notice
> it instead of waiting for timeout.

Is this missing in SLiRP?


  reply	other threads:[~2019-10-18 14:59 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-16  3:00 Python 2 and test/vm/netbsd (was Re: [Qemu-devel] [PULL 0/8] Python queue, 2019-06-07) Eduardo Habkost
2019-10-16  6:11 ` Python 2 and test/vm/netbsd Thomas Huth
2019-10-16  8:25   ` Kamil Rytarowski
2019-10-16 10:59     ` Alex Bennée
2019-10-16 11:02       ` Thomas Huth
2019-10-16 12:23       ` Philippe Mathieu-Daudé
2019-10-16 22:41   ` Eduardo Habkost
2019-10-17 22:05     ` Eduardo Habkost
2019-10-17 22:55       ` Eduardo Habkost
2019-10-18  7:13         ` Thomas Huth
2019-10-18 14:51           ` Eduardo Habkost
2019-10-18 10:44         ` Gerd Hoffmann
2019-10-18 14:29           ` Eduardo Habkost
2019-10-18 14:58             ` Philippe Mathieu-Daudé [this message]
2019-10-18 16:00               ` Samuel Thibault
2019-10-18 16:41                 ` Eduardo Habkost
2019-10-22 13:16                   ` Samuel Thibault
2019-10-22 13:05                     ` Kamil Rytarowski
2019-10-22 13:10                 ` Samuel Thibault

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a0c2df74-360b-79de-132e-f4d5be5bfc12@redhat.com \
    --to=philmd@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=crosa@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=fam@euphon.net \
    --cc=jsnow@redhat.com \
    --cc=kamil@netbsd.org \
    --cc=kraxel@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=samuel.thibault@ens-lyon.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).