From nobody Fri Aug 11 03:24:27 2023 X-Original-To: virtualization@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 4RMTg026vtz4m61H for ; Fri, 11 Aug 2023 03:24:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RMTg00grwz4NkN for ; Fri, 11 Aug 2023 03:24:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691724268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oCZfubGpyx1QMTQUMw10pBURNz0qUxvlbhuPl+t7isM=; b=jhF7w5G9Bno7TKrA9Yv6RJNVwpZ+CO3XE6cbGZpFylphH/zUDfjVH0ZIVnjYGIQGOxhzvs va7OsSrWhEPErexQRtUm6qAomitFco5pfYzie2nqg2tUbG5bcpbGgDvCq5CadJUc/ae0Ce AT0tkJo1RTg5qJBk8E407jFtM9C+SP7cwSyBachRp5kENN3fWfhcxqbi7PPdmBuf2nKDX3 qPBYCldugefrhJtL5WNfrB3zPNkufI5Ja612sAg+dNzC8aei+TmwvwmowSLcQ0CchpNrIr Byz5OMg8+z/N1EAAq96svYceGNEMoAnHtymbJ3m1sAD+QNGsH0R8TykzDT7lBg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691724268; a=rsa-sha256; cv=none; b=jT3dHbEXeiIgGCWC34eUfwR+2z5laVFeg5geqdyd8asRmhoT9JvpGkPbvHkY6II5lb7VYV SC4Jmq12J3EW59gkBhcSWtDVIqJjesYm5DL5AO0DKsU+vwQS24as7XRtEInO7cEEAC6VIM PLCjBPCTfADlyJMXwzpVA54v8ug1p/XneY0Coa7HEVil/qzEo3YJXYnWr5CVBz4Pv27HPo ZQclghV7DvEA2Ecu6xquvi59OGYgsAOtfNPVAxUQOlh74S62e6IDuo3oKsQ70j+5Vwt1t8 Y0mGN5q9P/IJ9dTwfRI4PCw+5eab7wwfDNkaR/ZlCyXsV7QrwoXI5WM4/Ac/YA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RMTfz6sbmz80M for ; Fri, 11 Aug 2023 03:24:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 37B3ORnL074372 for ; Fri, 11 Aug 2023 03:24:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 37B3ORjm074371 for virtualization@FreeBSD.org; Fri, 11 Aug 2023 03:24:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 263062] tcp_inpcb leaking in VM environment Date: Fri, 11 Aug 2023 03:24:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: fjoe@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263062 --- Comment #11 from Max Khon --- With the help from glebius@, kib@ and afedorov@ the root cause has been identified to be this: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D= 269823 The patch (https://reviews.freebsd.org/D38898) resolves the issue with inpcb leak in 13-STABLE (and with user processes stuck on close(2) in 14-CURRENT). The symptom (without the patch) is as follows: --- top -HSP --- last pid: 2699; load averages: 4.35, 3.16, 1.41=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 up 0+00:02:53 03:35:34 807 threads: 8 running, 773 sleeping, 26 waiting CPU 0: 0.0% user, 0.0% nice, 99.2% system, 0.0% interrupt, 0.8% idle CPU 1: 47.5% user, 0.0% nice, 2.8% system, 0.3% interrupt, 49.4% idle CPU 2: 46.9% user, 0.0% nice, 2.9% system, 0.3% interrupt, 49.9% idle CPU 3: 47.2% user, 0.0% nice, 2.6% system, 0.5% interrupt, 49.7% idle Mem: 4098M Active, 1130M Inact, 955M Wired, 483M Buf, 1522M Free Swap: 3676M Total, 3676M Free PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND 5 root -16 - 0B 16K CPU0 0 2:51 100.00% rand_harvestq 11 root 155 ki31 0B 64K RUN 1 1:27 73.97% idle{idl= e: cpu1} 11 root 155 ki31 0B 64K RUN 2 1:30 71.97% idle{idl= e: cpu2} 11 root 155 ki31 0B 64K CPU3 3 1:29 69.97% idle{idl= e: cpu3} 2665 sentry 79 0 338M 143M CPU2 2 0:03 23.97% python3.9 910 kafka 21 0 5150M 443M uwait 1 0:07 1.95% java{C2 CompilerThread0} 1246 sentry 20 0 241M 148M uwait 3 0:00 0.98% python3.9{rdk:main} 0 root -16 - 0B 640K swapin 3 690:21 0.00% kernel{swapper} 1204 www 78 0 24M 13M RUN 0 0:07 0.00% nginx ... --- cut here --- --=20 You are receiving this mail because: You are the assignee for the bug.=