Message ID | 20191116125936.3563275-11-matthieu.baerts@tessares.net |
---|---|
State | RFC, archived |
Headers | show
Return-Path: <mptcp-bounces@lists.01.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.01.org (client-ip=2001:19d0:306:5::1; helo=ml01.01.org; envelope-from=mptcp-bounces@lists.01.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=tessares.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=tessares-net.20150623.gappssmtp.com header.i=@tessares-net.20150623.gappssmtp.com header.b="uQPZ5vNF"; dkim-atps=neutral Received: from ml01.01.org (ml01.01.org [IPv6:2001:19d0:306:5::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47Fb0m3KR8z9sPK for <incoming@patchwork.ozlabs.org>; Sun, 17 Nov 2019 00:00:08 +1100 (AEDT) Received: from new-ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 52082100DC3F5; Sat, 16 Nov 2019 05:01:21 -0800 (PST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::342; helo=mail-wm1-x342.google.com; envelope-from=matthieu.baerts@tessares.net; receiver=<UNKNOWN> Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id AF757100DC3F2 for <mptcp@lists.01.org>; Sat, 16 Nov 2019 05:01:18 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id j18so12117828wmk.1 for <mptcp@lists.01.org>; Sat, 16 Nov 2019 05:00:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tessares-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=V2D6Eoob3tKf9DmVtAuZ4hJLHx0r933G+VbBQVE6ciE=; b=uQPZ5vNFNDM+agZqVG5B/JrXbfupLNLyZccXxOrPl+jv68K2tGVqo4llGwOwjKpcAE 3IphV0X+RPqwhciK3HGTRxM14Z8M17icMJYaq/W8iRL4NiEAbM2rfl7pjo3MsVnObmLe qkXMHMM29sonz/AbJm8WNk/SyACdoHkkaW3Ln2LkrA5v8TJgEMU5L5K+ojdmsu98DyiW C8Ivph2SALyHdlbTX3u3z0wdZ73bUo03xR8TJN3bTuhVPJB3exNHYUGqgmXVEtKtSoG4 i5UvjhRi31UNCXqro7zHdK+WPf9C3u9QKG9hbEYljbEzz8nrwZ3FmU7qMRQLVKjaZ4YV 54LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=V2D6Eoob3tKf9DmVtAuZ4hJLHx0r933G+VbBQVE6ciE=; b=Q4r2Dul7/l0Mgp42hnd3P9nTpe82VWqW6nPSzu6ltdUdG+QxIql50kXoAeHEpeLyfe JFLfGX5LCe9NzOyqDxCYSVtZ0i/sF8LNv+TlmNJtiZCwMPthgugfJTJ6PKFk6A+lsuvQ eBrpTBMILXpJsxRhA7rV+tiNAp68HHjx827wUsa7qlneRH2+ebWTHULt3x5/iY48A/fm fgiERok7df15mIVHQcFvT1SNHS0OqAu0XvLhZpKYd1vE3s3rR8WXhtfaBRHA94V68jxv oMnZVRA2GhzvkM04TRSDphFLI7qVgyS9HL+CNrfhN1qCUYBmu6sem56ZSTbhuPtM5qGH yemA== X-Gm-Message-State: APjAAAU7LmOsOm9jD3KBCXkxzkJFd0+BL5ou6E+gY+IvHquv3W0KECl0 TusdrkDYM6dSgap4gYh4/p2FWHeBgpPYSQ== X-Google-Smtp-Source: APXvYqy+vj3+NE0zbYCZT+bhyKKyVL8WpeOHamJ89SVPrG9UYHghI+SiSnwp/Z89Xc4XsyU5l5QE3w== X-Received: by 2002:a1c:4606:: with SMTP id t6mr19256867wma.73.1573909202170; Sat, 16 Nov 2019 05:00:02 -0800 (PST) Received: from tsr-vdi-mbaerts.nix.tessares.net (static.23.216.130.94.clients.your-server.de. [94.130.216.23]) by smtp.gmail.com with ESMTPSA id r15sm18381834wrc.5.2019.11.16.05.00.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Nov 2019 05:00:01 -0800 (PST) From: Matthieu Baerts <matthieu.baerts@tessares.net> To: mptcp@lists.01.org Cc: Matthieu Baerts <matthieu.baerts@tessares.net> Date: Sat, 16 Nov 2019 13:59:36 +0100 Message-Id: <20191116125936.3563275-11-matthieu.baerts@tessares.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116125936.3563275-1-matthieu.baerts@tessares.net> References: <20191116125936.3563275-1-matthieu.baerts@tessares.net> MIME-Version: 1.0 Message-ID-Hash: MGIT6ZSTV3FI3HZHYGQEYNA3CUMQDBPU X-Message-ID-Hash: MGIT6ZSTV3FI3HZHYGQEYNA3CUMQDBPU X-MailFrom: matthieu.baerts@tessares.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.1.1 Precedence: list Subject: [MPTCP] [PATCH 10/10] [RFC] selftests:mptcp: decrease timeout to 100 sec List-Id: Discussions regarding MPTCP upstreaming <mptcp.lists.01.org> Archived-At: <https://lists.01.org/hyperkitty/list/mptcp@lists.01.org/message/MGIT6ZSTV3FI3HZHYGQEYNA3CUMQDBPU/> List-Archive: <https://lists.01.org/hyperkitty/list/mptcp@lists.01.org/> List-Help: <mailto:mptcp-request@lists.01.org?subject=help> List-Post: <mailto:mptcp@lists.01.org> List-Subscribe: <mailto:mptcp-join@lists.01.org> List-Unsubscribe: <mailto:mptcp-leave@lists.01.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
Series |
selftests: IPv6 by default and time reduction
|
expand
|
diff --git a/tools/testing/selftests/net/mptcp/settings b/tools/testing/selftests/net/mptcp/settings index 026384c189c9..a953c96aa16e 100644 --- a/tools/testing/selftests/net/mptcp/settings +++ b/tools/testing/selftests/net/mptcp/settings @@ -1 +1 @@ -timeout=450 +timeout=180
In my tests, I first tried to use the worst random case we can have: 1% of loss, 399ms of delay and a max of re-order but I guess it really depends on what is lost and re-ordered. Most of my results are around 30 seconds on my machine But mostly when there is no re-ordering, the test can be very long! This can happen in the normal mode, when not specifying any parameter to the script: ns1 MPTCP -> ns3 (dead:beef:3::2:10013) MPTCP (duration 157ms) [ OK ] ns1 MPTCP -> ns4 (10.0.3.1:10014 ) MPTCP (duration 33023ms) [ OK ] ns1 MPTCP -> ns4 (dead:beef:3::1:10015) MPTCP (duration 36485ms) [ OK ] ns2 MPTCP -> ns1 (10.0.1.1:10016 ) MPTCP (duration 118ms) [ OK ] (...) ns2 MPTCP -> ns3 (dead:beef:3::2:10021) MPTCP (duration 126ms) [ OK ] ns2 MPTCP -> ns4 (10.0.3.1:10022 ) MPTCP (duration 15036ms) [ OK ] ns2 MPTCP -> ns4 (dead:beef:3::1:10023) MPTCP (duration 11507ms) [ OK ] ns3 MPTCP -> ns1 (10.0.1.1:10024 ) MPTCP (duration 129ms) [ OK ] (...) ns3 MPTCP -> ns2 (dead:beef:2::1:10029) MPTCP (duration 139ms) [ OK ] ns3 MPTCP -> ns4 (10.0.3.1:10030 ) MPTCP (duration 4317ms) [ OK ] ns3 MPTCP -> ns4 (dead:beef:3::1:10031) MPTCP (duration 4321ms) [ OK ] ns4 MPTCP -> ns1 (10.0.1.1:10032 ) MPTCP (duration 48538ms) [ OK ] ns4 MPTCP -> ns1 (dead:beef:1::1:10033) MPTCP (duration 39943ms) [ OK ] ns4 MPTCP -> ns2 (10.0.1.2:10034 ) MPTCP (duration 24599ms) [ OK ] ns4 MPTCP -> ns2 (dead:beef:1::2:10035) MPTCP (duration 23126ms) [ OK ] ns4 MPTCP -> ns2 (10.0.2.1:10036 ) MPTCP (duration 64512ms) [ OK ] ns4 MPTCP -> ns2 (dead:beef:2::1:10037) MPTCP (duration 37747ms) [ OK ] ns4 MPTCP -> ns3 (10.0.2.2:10038 ) MPTCP (duration 4766ms) [ OK ] ns4 MPTCP -> ns3 (dead:beef:2::2:10039) MPTCP (duration 4772ms) [ OK ] ns4 MPTCP -> ns3 (10.0.3.2:10040 ) MPTCP (duration 4699ms) [ OK ] ns4 MPTCP -> ns3 (dead:beef:3::2:10041) MPTCP (duration 4324ms) [ OK ] Time: 425 seconds I can reproduce this when there is no re-ordering: ./mptcp_connect.sh -r 0 I guess there is a bug and we should not take this into account to find the best timeout but while this is not fixed, I don't know if we can apply this patch. Most of the time, the tests take ~30 seconds. When the conditions make the test slower, if I remove the very long tests (no re-ordering), the tests take max 50 seconds. That's why I double this last value for the new default timeout. This could be doubled again if needed because I didn't use a very slow machine. Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> --- Notes: to be squashed in "mptcp: add basic kselftest for mptcp" tools/testing/selftests/net/mptcp/settings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)