From nobody Thu Mar 10 11:44:00 2022 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 76B0219FFA1C for ; Thu, 10 Mar 2022 11:44:05 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KDnK12xkZz4xdf; Thu, 10 Mar 2022 11:44:05 +0000 (UTC) (envelope-from kp@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646912645; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oJEySUtpnnsNBduomJLd+pW0WE/giUWR6CQEwtovYEw=; b=EJRuzPQemYt1HJbgYEuXQYrAr/wW853h0IBb1Ri3vjt8fgWuCThyNeSw3zuvJnVhfLiJnQ 9BAvvUuoEB3QBqFPcjHv1RbnhDwVdA/MHuNw/69EHkdH34KgYb2uvvQCCIljI9EpGQuqxo hiUi2vjtZEwSK4Fd9/HE+uaA/J73WyFRRs+8wU0Dv4LoDFlaCi3zehB9YA0HnPyEPeqHGB 3Ojklz4QLCRteshiuSDag+0pMAGJzMVukbq3zqSjPyH7gZRyA19IkHjVCSd+OpIHB9tGIo 4fCsGmMHBc3na+FrS/c0+3Aq39jqZy6o7JAQJP6C+RKDG6YwkRPnCBbn5IT/qA== Received: from venus.codepro.be (venus.codepro.be [5.9.86.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.codepro.be", Issuer "R3" (verified OK)) (Authenticated sender: kp) by smtp.freebsd.org (Postfix) with ESMTPSA id 2BDEDF286; Thu, 10 Mar 2022 11:44:05 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: by venus.codepro.be (Postfix, authenticated sender kp) id 8A79D496AE; Thu, 10 Mar 2022 12:44:01 +0100 (CET) From: Kristof Provost To: Johan Hendriks Cc: "Bjoern A. Zeeb" , mops@punkt.de, FreeBSD Net Subject: Re: epair and vnet jail loose connection. Date: Thu, 10 Mar 2022 12:44:00 +0100 X-Mailer: MailMate (1.14r5852) Message-ID: In-Reply-To: <65a18f1b-ea22-a3d2-b4ad-41fd52b7fbae@gmail.com> References: <051d51b6-2a07-fbc6-7b4d-13947e7fcdbb@gmail.com> <65a18f1b-ea22-a3d2-b4ad-41fd52b7fbae@gmail.com> List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646912645; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oJEySUtpnnsNBduomJLd+pW0WE/giUWR6CQEwtovYEw=; b=eDFkTpIiB+83Gg4Y+KAHNHeMj7gVyBbyDvQLRvbWYTDA/bAJzE+tRzf4mupS+qbsDY+Uk4 23nMh48DTI6s1poqRaWRhdR+PbaSlgGNaf8lpNsvTqHhLU1FEl5E1Hyc53RMIBfeM0E0gy w7esljKBchAbmDFNe1cuuLhnac+j2xAJmPthFBPDzs/lg5TYzpzmgYOgHql8z09VD9w7OM XVqrk+uiDwTMwMJ9O1IzGEAwBHS9gC/Mt7EeDLKr4HaQAoUu7P4EyJEOl5QgU0mfeUpXAE hUmhMVCjcerw8G7hBdZ4/H59pd3dhgNIBD/Ij6veCa7fa8sQn2T1tyYWdac4yw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646912645; a=rsa-sha256; cv=none; b=k62NZ8XMkPwUa2vPqp8meo2HZRUUqSQPgp+LzSJZWnXXNge2yKSii4Q5v8F8tyQlMAPMKi ygzglgKn1EYXpPejl/J119etF3Ac1YMh7BwoCP1L2Dr6q7kpBMesom7OGBHSThHL4Wmx3J 3CREnIGow0polRtKQi5VvezNf6+NTnJ3Yu1Pnjwa9CDDy5RNa0VC+mPyOyo131JvGHOcwg AfpWEvRSgdkFMpmizH8Emjt4LVUZzsXZbx8GWkxD4CvVSrFOSpyyqxRCwE7zRnE66mszpJ FX/SCDm6tTf29X8QC0JxM6f6LR/fYyZdpK51LDjDfH2zIXiNxJJ/7u3QK+7HVw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 10 Mar 2022, at 10:13, Johan Hendriks wrote: > On 10/03/2022 08:54, Patrick M. Hausen wrote: >> Hi Johan, >> >> we experience the same on 13.1-PRERELEASE. Currently trying to collect= some evidence >> (dtrace) to send to Kristof Provost who was so kind to assist. We are = hit by the problem >> in production in 12-24 hour intervals. Have not done any artificial lo= ad tests, yet. >> >> May I ask you to run this dtrace script while at least one jail is dis= connected and while >> traffic is present that is trying to reach the jail? If you can afford= to do that in production (?) >> that would be great. Forward to Kristof (kp@), please. >> >> Thanks and kind regards >> Patrick >> ---------- >> #!/usr/sbin/dtrace -s >> >> BEGIN >> { >> self->in_menq =3D 0; >> } >> >> fbt:if_epair:epair_menq:entry >> { >> self->in_menq =3D 1; >> printf("In epair_menq"); >> } >> >> fbt:if_epair:epair_menq:return >> / self->in_menq =3D=3D 1 / >> { >> self->in_menq =3D 0; >> printf("Leave epair_menq"); >> } >> >> fbt:kernel:taskqueue_enqueue:entry >> / self->in_menq =3D=3D 1 / >> { >> printf("Enqueue task"); >> >> } >> >> fbt:if_epair:epair_tx_start_deferred:entry >> { >> printf("epair_tx_start_deferred"); >> } >> ---------- >> > I was asked the above, so hereby the output of that command. > I did do a=C2=A0 hey -h2 -n 10 -c 10 -z 60s https://wp.test.nl to that = machine and in the 60 seconds the jail became unresponsive. Then i did ru= n the dtrace.sh script above like so /root/bin/dtrace.sh > /root/dtrace_o= utput > > I hope this helps, if you need anything please let me know. Also root a= ccess is possible if you want. That way you do not have to create a test = environment. Were there other epair interfaces running at this time, with active traff= ic? The dtrace output appears to show that the appropriate callouts (to epair= _tx_start_deferred()) are getting through, so I=E2=80=99d expect traffic = to be flowing. Kristof