From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A177CA9EA9 for ; Fri, 18 Oct 2019 16:43:02 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D3DC42082C for ; Fri, 18 Oct 2019 16:43:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D3DC42082C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:43186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLVLB-00008I-0f for qemu-devel@archiver.kernel.org; Fri, 18 Oct 2019 12:43:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52579) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLVK7-0007m2-7P for qemu-devel@nongnu.org; Fri, 18 Oct 2019 12:41:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLVK6-0005lD-4U for qemu-devel@nongnu.org; Fri, 18 Oct 2019 12:41:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39922) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iLVK5-0005jX-Gx for qemu-devel@nongnu.org; Fri, 18 Oct 2019 12:41:54 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B5B4AC049E12; Fri, 18 Oct 2019 16:41:52 +0000 (UTC) Received: from localhost (ovpn-116-20.phx2.redhat.com [10.3.116.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id B9C713DB4; Fri, 18 Oct 2019 16:41:44 +0000 (UTC) Date: Fri, 18 Oct 2019 13:41:43 -0300 From: Eduardo Habkost To: Samuel Thibault Subject: Re: Python 2 and test/vm/netbsd Message-ID: <20191018164143.GP4084@habkost.net> References: <20191016030021.GD4084@habkost.net> <20191016224124.GF4084@habkost.net> <20191017220541.GJ4084@habkost.net> <20191017225548.GL4084@habkost.net> <20191018104439.c2tojlvi2c5zzesi@sirius.home.kraxel.org> <20191018142940.GN4084@habkost.net> <20191018160019.he52tpvjqolzgswg@function> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="5uO961YFyoDlzFnP" Content-Disposition: inline In-Reply-To: <20191018160019.he52tpvjqolzgswg@function> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 18 Oct 2019 16:41:52 +0000 (UTC) Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Peter Maydell , Thomas Huth , Alex =?iso-8859-1?Q?Benn=E9e?= , QEMU Developers , John Snow , Kamil Rytarowski , Gerd Hoffmann , Kevin Wolf , Cleber Rosa , =?iso-8859-1?Q?Marc-Andr=E9?= Lureau , Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --5uO961YFyoDlzFnP Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 18, 2019 at 06:00:19PM +0200, Samuel Thibault wrote: > Philippe Mathieu-Daud=E9, le ven. 18 oct. 2019 16:58:00 +0200, a ecrit: > > On 10/18/19 4:29 PM, Eduardo Habkost wrote: > > > On Fri, Oct 18, 2019 at 12:44:39PM +0200, Gerd Hoffmann wrote: > > > > Hi, > > > >=20 > > > > > > Running with V=3D1, I see packages being downloaded at reason= able speeds, but > > > > > > there's a huge interval (of various minutes) between each pac= kage download. > > > > >=20 > > > > > I've found the cause for the slowness I'm seeing: for each file > > > > > being downloaded, the guest spents at least 75 seconds trying t= o > > > > > connect to the IPv6 address of ftp.NetBSD.org, before trying > > > > > IPv4. > > > >=20 > > > > 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. > > > >=20 > > > > > I don't know if this is a NetBSD bug, or a slirp bug. > > > >=20 > > > > Both I'd say ... > > > >=20 > > > > First, by default slirp should not send IPv6 router announcements > > > > to the user network if the host has no IPv6 connectivity. > > > >=20 > > > > Second, the recommended way to connect is to try ipv4 and ipv6 in > > > > parallel, then use whatever connects first. Web browsers typical= ly > > > > 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 come= s > > > > from ... > > >=20 > > > 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. > >=20 > > Is this missing in SLiRP? >=20 > It was implemented at the time of introduction of IPv6 in SLIRP. Perhap= s > NetBSD has a slightly different behavior which makes the implementation > fail to notice the error. If anybody is interested in investigating it, a network traffic dump generated by `-object filter-dump` is attached. --=20 Eduardo --5uO961YFyoDlzFnP Content-Type: application/gzip Content-Disposition: attachment; filename="dump.pcap.gz" Content-Transfer-Encoding: base64 H4sICObTqV0AA2R1bXAucGNhcADtWHtsU1UY/869bbfdrXtgMJuguS4yp9l296aWOjsZT3VU thHE+Ojau3Uy2tJelKHRAY5KUIJBMUZjpsYAiY9ojBrFMIXEGMBFlD9EUfzH4B/iCxEVWr/v 3pa1t3fdwxni4yynOfc8ft/vd77zncc+3ffasxyYYCQx/AN4+9zu23ZuyoVlWKZcVxf75sSX S9thWv2yTcfupI6i2jElxbgRGOpvxy5mrNsIL5UYtZOV59/JhVasaDW2UmyPjWUlAgMH6CPa r1U+Nu3+vYVY/w6i7z3DYA3ypBxTk4aeDfOAdW/+GsBZ9P0LKiomaIG5rM3rYcwCS/jVC/SW KWnjjVr+mcmzoc3TwNi1F8VUXej+WY5tOZpKFyiMXcOZhxxXeH2eoMdbObuquqrR3ior17e1 VNqqqu3uVd7GevtaW+MdjfWPMjY7n/VdzlvyCi6ZWddon3NPjJwQQye0otMox53QIQDHoRMK OSeRcBb1Pk01qhPmQgtX8UcZp3MCthdQHyr/O53ANZpIIDPRLPBq2UK/fJ0J2M39aYHwf6LV 9clbHNyH4X2fUYj78w6rq+tl6n0+xFf8cvK/F+K8YYjX0gIr0BbeX4/04+iLDJHOVF88lRrp Z/6DkW7+P9InmGh1PVGSA1djmXJKpFuAZYMFp06/Wmgl0cg1O/NgPn5TrqvDHy7lklFoj+kv D0mXDErcAJw4SgUWt0Go63blgR/r/AlUtpRsc3FU2whqAkWHyjbB9NudkJV9viKOwJucQ7QQ EMRJ9dGh9NmYcYc1+Xr2Mlugv55l0MSo/8j1bPWzVKlvV8/uzdbk65neyljXM+wfAffRZA17 hna5X8X6dxF9+e+WSXiURv7wbtYYl9OM6lMup8+xNN7YvhetPLTBPAl+79GK+4gf10jqnzry uqXjs5k68n0ceTacP/GRPI20KPngxG/KWh913+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