All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthieu Baerts <matthieu.baerts@tessares.net>
To: Paolo Abeni <pabeni@redhat.com>, mptcp@lists.linux.dev
Subject: Re: [PATCH v2 mptcp-next] selftests: mptcp: fix diag instability
Date: Fri, 4 Feb 2022 16:53:54 +0100	[thread overview]
Message-ID: <932621cc-7db9-91cb-7daf-e37a4953a43c@tessares.net> (raw)
In-Reply-To: <db50196c67b30e7b89d241faffc78e5ffbb04e83.1643976999.git.pabeni@redhat.com>

Hi Paolo,

On 04/02/2022 13:17, Paolo Abeni wrote:
> Instead of waiting for an arbitrary amount of time for the MPTCP
> MP_CAPABLE handshake to complete, explicitly wait for the relevant
> socket to enter into the established status.
> 
> Additionally let the data transfer application use the slowest
> transfer mode available (-r), to cope with very slow host, or
> high jitter caused by hosting VMs.
> 
> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
> ---
> v1 -> v2:
>  - use wait_for_ instead larger sleep
>  - hopefully better commit message

Thank you for the new version!

It is being tested in the background. More than 175 attempts in a slow
environment with a debug kernel and no failures so far!

> diff --git a/tools/testing/selftests/net/mptcp/diag.sh b/tools/testing/selftests/net/mptcp/diag.sh
> index 2674ba20d524..ff821025d309 100755
> --- a/tools/testing/selftests/net/mptcp/diag.sh
> +++ b/tools/testing/selftests/net/mptcp/diag.sh-
> @@ -119,7 +149,7 @@ for I in `seq 1 $NR_CLIENTS`; do
>  				./mptcp_connect -p $((I+10001)) -l -w 10 \
>  					-t ${timeout_poll} 0.0.0.0 >/dev/null &
>  done
> -sleep 0.1
> +wait_local_port_listen $ns $((NR_CLIENTS + 10001))
>  
>  for I in `seq 1 $NR_CLIENTS`; do
>  	echo "b" | \

Do we need the change the last sleep (sleep 1.5) as well? We could wait
for a shorter time but well that's only 1.5 second once. And I guess we
might need to look for each connection because looking at the last one
might not be enough if there was an issue with a previous one.

So best to keep the "sleep 1.5"?

If yes, do you prefer if the test run for a longer time or can I already
apply it?

Just in case:

Reported-and-tested-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/258

Cheers,
Matt
-- 
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net

  reply	other threads:[~2022-02-04 15:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-04 12:17 [PATCH v2 mptcp-next] selftests: mptcp: fix diag instability Paolo Abeni
2022-02-04 15:53 ` Matthieu Baerts [this message]
2022-02-04 18:32   ` Paolo Abeni
2022-02-04 20:52     ` Matthieu Baerts
2022-02-04 22:57       ` Mat Martineau
2022-02-05 10:32 ` Matthieu Baerts

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=932621cc-7db9-91cb-7daf-e37a4953a43c@tessares.net \
    --to=matthieu.baerts@tessares.net \
    --cc=mptcp@lists.linux.dev \
    --cc=pabeni@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.