From nobody Fri Mar 11 23:44:13 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 65D201A069FA for ; Fri, 11 Mar 2022 23:44:18 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KFjFY1HTGz4Vsy; Fri, 11 Mar 2022 23:44:17 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: by mail-ed1-x52a.google.com with SMTP id x5so12696097edd.11; Fri, 11 Mar 2022 15:44:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language :from:to:references:cc:in-reply-to:content-transfer-encoding; bh=6cHS1F/PG0Z7xctyRlgjfkLMN0nBYpFcY8llbfvh1cY=; b=ZMIihMovZdZ8Chci4QSQyboQJaF3vgOrJUg8pzwChj3kQG2bcCHWsfw/3PFbkvdlvm +8isWT5fHRWYRfiHSX4UERsSIEtdLo8zVK5Emfg7c16lpdMyhXJxlhobvJiaOz9X5jFf JnvDRUDy8GUCdoBUwXn3lgObyOLII7I+kFIiPdoBexDCvk4QZue/OuEHnQIlYzXoIto0 CRGEtFMyCiQrpenkade5P+W5mUuOKeNlpKQa1HEmbIIn4wOxg3vjZcARhXPXJDxwYvmj dRLFX3/HWM6z9otM0nmeLtckbPQdVx6tpkL0XNhKVBJyI6vm9R7CBbbsEzq6PlrAnD/q /9CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:references:cc:in-reply-to :content-transfer-encoding; bh=6cHS1F/PG0Z7xctyRlgjfkLMN0nBYpFcY8llbfvh1cY=; b=G0smwMZx6W8Yz6HNdhSArZgR5TLVbv092t7WWTgh8fArjBlH1OTfWGTVI1osEw1RNU MCNmzkX6MzymlfoY+Kgk5mcOh+ZVOjLI78erIvd21RhziMikr5H//TGEDWVhcdF35cDS 7bNYvirR2sPQq+piQnZDt26ScySRYWOqXmVki7f+2uC4RKUY9XR+eXGrBk5hUKcJSuKw EoKLdUhyJZLCqIB2EQKTtPMzsXCcRQSKwddmPH+mnqi22c3iKgrxwYxaubvpEpIsOjpB KMNVNAnviYUeiIyIdZSZ5po5UbNfEiRRDyObGs91MFAeqvnJ8Je7QWX3Wa+zEqus3qW8 OiAA== X-Gm-Message-State: AOAM533wN//1DLuhS0vkX2mUMGJspW1ejVcyqj/O18dazAh1yeoVBg6s Fmx0Qgqgf+VxbqDfgo3LUqulGiPqaMI= X-Google-Smtp-Source: ABdhPJxDEfD9oAVAPSuf+Vn9DzygP0jv0+1silwrBENd1t6+Kk+hd/1zvXH/Xw2Kns/FmG0hMGvNAQ== X-Received: by 2002:a05:6402:280a:b0:418:63df:4af9 with SMTP id h10-20020a056402280a00b0041863df4af9mr312494ede.84.1647042254672; Fri, 11 Mar 2022 15:44:14 -0800 (PST) Received: from [192.168.178.41] (85-147-130-226.cable.dynamic.v4.ziggo.nl. [85.147.130.226]) by smtp.gmail.com with ESMTPSA id dz10-20020a0564021d4a00b0041665989a9csm4086035edb.41.2022.03.11.15.44.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Mar 2022 15:44:14 -0800 (PST) Message-ID: Date: Sat, 12 Mar 2022 00:44:13 +0100 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 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: epair and vnet jail loose connection. Content-Language: en-US From: Johan Hendriks To: freebsd-net@FreeBSD.org References: <051d51b6-2a07-fbc6-7b4d-13947e7fcdbb@gmail.com> Cc: "hausen@punkt.de >> \"Patrick M. Hausen\"" , Kristof Provost In-Reply-To: <051d51b6-2a07-fbc6-7b4d-13947e7fcdbb@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4KFjFY1HTGz4Vsy X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZMIihMov; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of johhendriks@gmail.com designates 2a00:1450:4864:20::52a as permitted sender) smtp.mailfrom=johhendriks@gmail.com X-Spamd-Result: default: False [-3.72 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.72)[-0.718]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52a:from]; MLMMJ_DEST(0.00)[freebsd-net]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 09/03/2022 20:55, Johan Hendriks wrote: > The problem: > I have a FreeBSD 14 machine and a FreeBSD 13-stable machine, both running the same jails just to test the workings. > > The jails that are running are a salt master, a haproxy jail, 2 webservers, 2 varnish servers, 2 php jails one for php8.0 and one with 8.1. All the jails are connected to bridge0 and all the jails use vnet. > > I believe this worked on an older 14-HEAD machine, but i did not do a lot with it back then, and when i started testing again and after updating the OS i noticed that one of the varnish jails lost it's network connection after running for a few hours. I thought it was just something on HEAD so never really looked at it. But later on when i start using the jails again and testing a test wordpress site i noticed that with a simple load test my haproxy jail within one minute looses it's network connection. I see nothing in the logs, on the host and on the jail. > From the jail i can not ping the other jails or the IP adres of the bridge. I can however ping the jails own IP adres. From the host i can also not ping the haproxy jail IP adres. If i start a tcpdump on the epaira interface from the haproxy jail i do see the packets arrive but not in the jail. > > I used ZFS to send all the jails to a 13-STABLE machine and copied over the jail.conf file as well as the pf.conf file and i saw the same behavior. > > Then i tried to use 13.0-RELEASE-p7 and on that machine i do not see this happening. There i can stress test the machine for 10 minutes without a problem but on 14-HEAD and 13-STABLE within a minute the jail's network connection fails and only a restart of the jail brings it back online to exhibit the same behavior if i start a simple load test which it should handle nicely. > > One of the jail hosts is running under VMWARE and the other is running under Ubuntu with KVM. The 13.0-RELEASE-p7 jail host is running under Ubuntu with KVM > > Thank you for your time. > regards > Johan > I did some bisecting and the latest commit that works on FreeBSD 13-Stable is 009a56b2e Then the commit 2e0bee4c7  if_epair: implement fanout and above is showing the symptoms described above. regards, Johan Hendriks