From nobody Tue Jul 30 06:12:18 2024 X-Original-To: pf@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 4WY4dG62Lkz5RK43 for ; Tue, 30 Jul 2024 06:12:18 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WY4dG54MLz4srr for ; Tue, 30 Jul 2024 06:12:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722319938; a=rsa-sha256; cv=none; b=nIH7lA8la+0FPTYFNycFgsM1WHd6zRWXDhtxHjlml01O9XvmhfWWi1Zq+ij5lO+Dhk1Kmf +G6dKsmZeuQ5lu7BowDWVSrlv2pJEGbTVQqbaeg//zwWH+/B7xxPk5iC8B7p+Hq+izMOOp +DjEaWI/ZHMBvZb7A6BB0acipgjQHARxbOAAfxlA0RU4ZUx4zC4BzTSsClo5Z1DcnmsJ8A PLcluTCU7+QU8Yri79h+3JrUNsB+Lh4awqLbV3P3Uc2ycXROvfBtSbxt5ivS1oLjGM9eN0 oEmXAXqaKBnrc9jE9I7nDrG1gDhl/C/5kf9ZRdYad5K1FTeUPCrASg2TrC50xA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722319938; 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=lZ1nswrMGpbcxrVMij1ocpwWf+xa3XaehMDDCAq35pU=; b=R665n1cZv5D2+SUMzQyhO1FlK1/gexUv3rpIgRjpjvJWS0e+9DDZZ8mNMAR6k1vp16zobc P+8N9dkpBgEmu87x++sscZNBos1CoglofPMOwwYrmZdXB4q/ocZtHJgQtnuipjX/k5qXqP YKME6+paGrwF3TwbNds50EzyFipWsPHspWOFrhydlmbl5MMWkr8wtkxO5jvWkGdCteNIMq lzOkWC+5NbXjbaD0XHEebby8ob5tMndtqUYzXR903XNNve7Nxp+ZQHyuQ+VXtZMP9Z9Sdb Js6awB4DgFpzU4kHgxjxtVWkGQcUo+ioCJ1skUNyuS1qoybzmJJDGnSPmZ4x3A== 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 4WY4dG4fbdz15QT for ; Tue, 30 Jul 2024 06:12:18 +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 46U6CIT9061940 for ; Tue, 30 Jul 2024 06:12:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46U6CI28061939 for pf@FreeBSD.org; Tue, 30 Jul 2024 06:12:18 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: pf@FreeBSD.org Subject: [Bug 276870] mbuf cluster leak with on pf+bird2 bgp routers Date: Tue, 30 Jul 2024 06:12:18 +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.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: borjam@sarenet.es X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-pf@freebsd.org Sender: owner-freebsd-pf@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276870 Borja Marcos changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |borjam@sarenet.es --- Comment #5 from Borja Marcos --- I may have something related (or not). I have observed a severe mbuf leak with the following sysctl variables grow= ing steadily. vm.uma.mbuf_packet.stats.current vm.uma.mbuf_cluster.stats.current vm.uma.mbuf.stats.current THe server on which I have been observing this runs quite a lot of stuff, s= o, suspecting some particular process(es) causing this I checked for the culpr= it. Turns out the culprit (trigger I should say) is a version of nfsen that uses threads. My main suspects are the nfcapd or sfcapd daemons which create and destroy threads. The funny thing is, I run two concurrent versions of these daemons. The old ones do *not* leak mbufs, while the recent ones do. The daemons are supposed to be pretty straightforward, receiving UDP packet= s in Netflow/sFlow/IPFix format. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Jul 30 06:12:36 2024 X-Original-To: pf@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 4WY4dd5J1yz5RJpk for ; Tue, 30 Jul 2024 06:12:37 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WY4dd0zKdz4tbt for ; Tue, 30 Jul 2024 06:12:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722319957; a=rsa-sha256; cv=none; b=fUBkSTeObKUmbHlWZ4lgHHm3fPY32AozCzRHOaLVBFqk+Btz60gdVvdYMX7A4JbxdrA6sq u7NLLvaDSaCYE+gB4clTLyIiUcCacxdO07M8tOhlsu3VXhp2UAOOm/g+dJqlk5+gIfyOXx m3YI4PHOgT5Go+vvaaTfD7n+bk0OKZh88bUrgnmSyo/VMeFMI4+JFVleuL7slbXgKCRJcU bh35ETm/mAVYzzrfqn2kBgXReohQBlyekM5EfNW49fkwA9X5uQn+XUfEc/ROyiYYRqgCTO j77pBjOLouUYsNpm897c+Yu0Za17MSmZC09bhkonAHo0dQ5hugN/dOIcH2ZAgg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722319957; 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=aSIK3zao6rGQBmFQojYTFPeO8bxj/z2O7+lnpX69C80=; b=jr6Vi4+NZYkBTmjs/YjCPu1ZS5bulcU8G/BTCQpMOw7F+r0T1RHOWBQ4RDZ007mM7G4LPO qcI+JMk6S5sTWom+EsGaNcVJOansSJVGFTneKZEJXKFU7VqBV4n7j5sxlsV7UJ0hcmL1Sa xS7QtJ4TXdS6FPfdRfwcF8OXs7+JQtO4U7AxePvF4ezE+vQHsyXmJHNYmRxMGKWWJm91ZV W0fIf2jq9dDTgC0C4vi5OmaOzzIqPvNy70Kch4+W1g+B+ezlEXw3U38cYDP9hClb6l9Jip uW1zSY0jFBeK7qYltACXN8epAPvSCPYzdJh/iUxQgXTNMplYhvIvAUarVaH4PA== 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 4WY4dd0ZYRz169c for ; Tue, 30 Jul 2024 06:12:37 +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 46U6Ca4f063712 for ; Tue, 30 Jul 2024 06:12:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46U6CawF063710 for pf@FreeBSD.org; Tue, 30 Jul 2024 06:12:36 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: pf@FreeBSD.org Subject: [Bug 276870] mbuf cluster leak with on pf+bird2 bgp routers Date: Tue, 30 Jul 2024 06:12:36 +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.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: borjam@sarenet.es X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@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: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-pf@freebsd.org Sender: owner-freebsd-pf@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276870 --- Comment #6 from Borja Marcos --- I may have something related (or not). I have observed a severe mbuf leak with the following sysctl variables grow= ing steadily. vm.uma.mbuf_packet.stats.current vm.uma.mbuf_cluster.stats.current vm.uma.mbuf.stats.current THe server on which I have been observing this runs quite a lot of stuff, s= o, suspecting some particular process(es) causing this I checked for the culpr= it. Turns out the culprit (trigger I should say) is a version of nfsen that uses threads. My main suspects are the nfcapd or sfcapd daemons which create and destroy threads. The funny thing is, I run two concurrent versions of these daemons. The old ones do *not* leak mbufs, while the recent ones do. The daemons are supposed to be pretty straightforward, receiving UDP packet= s in Netflow/sFlow/IPFix format. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Jul 30 06:15:01 2024 X-Original-To: pf@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 4WY4hR1L7Jz5RK7m for ; Tue, 30 Jul 2024 06:15:03 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WY4hQ6jhLz4vVB for ; Tue, 30 Jul 2024 06:15:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722320102; a=rsa-sha256; cv=none; b=MVVKGpvOB8j1qEl0qm4TjuiuH0u8FMcyKOHr+xsOCAC8u4VFKyMcn3fWkguJU23YnzIoCF gv+W4GEVwC8I6S4VaopxSYs8YF+lOuyLBgzo6qL1QhrMAmzmvDkqUOazZhcjFfN6gGwDrG BOvJ5IhALq4trls7NovqoixfzuHdLuK7+SEhmVFA98GhcV/mLTJ/lmoKgmkbFxhbHibQkw Shi6yEVYg070I8DxUm71qDul417m4Fmt6xONQBDydQUwa0xjimWEAvEt77eqC5Fk2KOl+Z w2YuhMTFS98b31ETtUA3+iFtgZ58O4GeMCgZ6lKvweYYBu1sD/JOrMHzCHHoOw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722320102; 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=mt9Tk441qsEnYCTJF3rVYuD9D9TUKgUUVnVgo321gzY=; b=Q6NRCVf9RFAO2h+o/S8B/oU18PbtVd0xO9eTQDC03hm+VAfitt6IY+DyUjZFUM1WgZJ1zY oZVntjqJSqq5W7m1yZndFpFcW1cuQ+P7C2q196/WwIY3I4ZaqlU7TCmM0jPahsBAG7O3pJ OtDy7sHuTxuxOKMHBnI4vPQbDxk0oY6IcJ7d3vGQiReQIhlPpiu6YzJPGEThBm467eAwpn S2pwu+RtUDk4OelVRh2etFBgYNzgU24M37I3eU/vJ7gP3H58wNBAl5bp5qxzPBjhKTVNAP 8PvVvwMUVVgehQswzKVM9UAN9AX6pDbxvqmY02gWchgYihWqfYNNohd8uAm9Tg== 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 4WY4hQ6JZ2z1682 for ; Tue, 30 Jul 2024 06:15:02 +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 46U6F2NA071016 for ; Tue, 30 Jul 2024 06:15:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46U6F28l071004 for pf@FreeBSD.org; Tue, 30 Jul 2024 06:15:02 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: pf@FreeBSD.org Subject: [Bug 276870] mbuf cluster leak with on pf+bird2 bgp routers Date: Tue, 30 Jul 2024 06:15:01 +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.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: borjam@sarenet.es X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-pf@freebsd.org Sender: owner-freebsd-pf@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276870 --- Comment #7 from Borja Marcos --- Created attachment 252362 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D252362&action= =3Dedit vm.uma.mbuf_cluster.stats.current growth The number grows *only* when the version 1.7.4 nfcapd/sfcapd daemons are running. It goes back to near zero only when I reboot the server. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Jul 30 09:13:08 2024 X-Original-To: pf@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 4WY8dy4GJbz5RbGx for ; Tue, 30 Jul 2024 09:13:10 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WY8dy2R6lz4FWY for ; Tue, 30 Jul 2024 09:13:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722330790; a=rsa-sha256; cv=none; b=ZpfxejRJBiGhZLdcWhI32m78PRVmvgpp8Ufn7epPC4CUL3Kv2gnMQEZr/syMR6w7mJZmcO fEE4Twor2dXXECgUEnirdPANF3Wn/Mf7z1RqVl7I880cnleTCjhcheHJA7tqpuQ7+OBFMj /u9G0jk6WiqS9VLAqLu8+fD0G9dfmFeIwYflO4QNj4gFsGrZm4+FpEkcv1m0vb0bRzbVUq 5QHrUxn1DABwM2+ab9FhG28MgwjXu3E7Yljm5B09V85q0e/RTfc878YzVX4JsAODdziJUU zY9G3Aw0rRq8rUmakum/LBF5Dn0lJXdsrnhLtzVQvYs7qx0YOx1UhyNXSmnc0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722330790; 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=htthKzSCFHFC0k9JkXZNXHwFXeZavHH1GTtGZ97Fly8=; b=b2RW5ghB6NuOEHdI3lmqjePdxWPWDcDHnzq7tHGEuf+XPcUnXD2sPQtLzyTk9GGLjMex1N Xfta2ULQEsO3l/9jBgC/ZPCaLF6a5Hc5RPI4L5E232yj9a5WhcC1zDeZgi5B1lnlSuLEqa kOnA+K2IP1V8V72ag5lf6qMdlN6PmFXygmBVY7cfW8JS9aTS+UgqdRYM79tTdt0K0zPQI0 UrcyEt9Zv6VsQhfdBOZHJ49XZZmqcE3hLxArKHkyMBSWRXn1tClZtmL05/B3AHIg2otUZJ Evz/1W0WcEvJwpWkg13WdqaXIh1fkAm7ERx1PaPi3ovnl2QFCr22IJ4SKI7mfg== 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 4WY8dy242kz1BHD for ; Tue, 30 Jul 2024 09:13:10 +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 46U9DA5b096166 for ; Tue, 30 Jul 2024 09:13:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46U9DADi096161 for pf@FreeBSD.org; Tue, 30 Jul 2024 09:13:10 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: pf@FreeBSD.org Subject: [Bug 276870] mbuf cluster leak with on pf+bird2 bgp routers Date: Tue, 30 Jul 2024 09:13:08 +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.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: zarychtam@plan-b.pwste.edu.pl X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@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: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-pf@freebsd.org Sender: owner-freebsd-pf@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276870 --- Comment #8 from Marek Zarychta --- (In reply to Borja Marcos from comment #7) > The number grows *only* when the version 1.7.4 nfcapd/sfcapd daemons are = running. Perhaps you would rather submit a new PR reporting the leak for net-mgmt/nfdump? The original PR here refers to net/bird2 and seems to be o= nly loosely related to the problems you have encountered. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Jul 30 09:23:53 2024 X-Original-To: pf@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 4WY8tL5Xv6z5RbhH for ; Tue, 30 Jul 2024 09:23:54 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WY8tL3T1mz4GlM for ; Tue, 30 Jul 2024 09:23:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722331434; a=rsa-sha256; cv=none; b=nl0otnc34k7k5CzIERvCjeMQ9PIAxaQYn+H3uE66rRqOY9x4roOCi0QP0xKwsAwUHrS3vG eu43otewh5t9tYyKOLdeZiDM5rzTMFMvSuDLmFYeQPIU2pkjsQ2c8SpExV+wYTrhTPgSKe CMAC/ILnWVXqK2K3ooHhg+pOdyDLqhQcK8wMmj4YS/nqXr6H70moYMOGHpqpHfZRvj7/Sx fsC9yl5Ekt4iIbVeQ6uOGgH5M6pTS9JTjWsM47ZU9KODO3vMTz5894OBCGoFFpX4+lEmPh uJ0nDAodpGzkXtoc0rxAfxqL6iNtD5WqRGwB2fhg181kdk4IDd1op68KuEq4sw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722331434; 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=6lBzN57Pyb49TbyABsIIeZq1YVDGsrd3XGzHLLD+bhc=; b=vNKBO6+CBx5EQm5Axyqy5tWSvJw8WTlAwTLkdJbbiC35mEQVSPblCYsKR0NASchz0Zovfu P4Vl4lqtxBtVnsnucVvxU7ycLjvKHZKHH4icuFfUm9vEEYN8pyTkAEa5fnM6u8ifa3Wnf3 Pil/9+LBtVwze6a9g64EawFf7wRBa9hGvNsuj9dqZpKvXXM8ZYKKni3I70mazRXE8FskHL wT4aosGbMVxI43L+aNQiT5jRhDukDTg35efDex7Jd7YA16Q8iPL7hXKNRsAWuLnc0OeWW1 HsIzBRcmWsMam8ekmW+dgr4fkzVtPNTs7BNsQSJqPVx+0tFVdUTZ0ReGwwlTuQ== 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 4WY8tL33DPz1BMX for ; Tue, 30 Jul 2024 09:23:54 +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 46U9Nsdm036573 for ; Tue, 30 Jul 2024 09:23:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46U9Ns3u036570 for pf@FreeBSD.org; Tue, 30 Jul 2024 09:23:54 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: pf@FreeBSD.org Subject: [Bug 276870] mbuf cluster leak with on pf+bird2 bgp routers Date: Tue, 30 Jul 2024 09:23:53 +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.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: borjam@sarenet.es X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@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: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-pf@freebsd.org Sender: owner-freebsd-pf@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276870 --- Comment #9 from Borja Marcos --- (In reply to Marek Zarychta from comment #8) Sorry, given that I only suffer this leak with a recent version of nfdump w= hich uses threads (the other old version which doesn't trigger this bug is single theaded) I thought this might add a useful data point and ring a bell.=20 Is thread usage one of the differences between your Bird versions? Or some thread usage pattern? In my case I have identified the leak on FreeBSD 14 but in hindsight I had similar problems in the 13- branch. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Jul 30 09:42:32 2024 X-Original-To: pf@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 4WY9Hr4KRDz5RdjK for ; Tue, 30 Jul 2024 09:42:32 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WY9Hr3HVKz4KdF for ; Tue, 30 Jul 2024 09:42:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722332552; a=rsa-sha256; cv=none; b=fv0NJ1ySePtfhMJo05ekECr+miqDLQH5IK8uS3nA7esKAlL0r01xsGuXTPbkjpUQkmhH/q g+jE0/C2z0KiGmCcTjOU2l8j6w2q86OQHJ4mSiIa7uFww8HGBUZ9WZFWwOkj9SV6tV/FMz 72j1yzqYleE6Qbx0aJciqkjeNkQvPW5uQITrHO5JyKr9T3vs63KvFqpB2WVauXhxD6WgrF loxHbcsTkICDC4zwWxrbJm41t5qeFt6Oa1nwoF1UOeSfAlbbjzEhPsuACbV4Sn7jSuumU3 jsr455e/obYb3EIGCXQNR52QHQmoEPQ4+6Bbw44e/+DvQifUaNW/ArYFIeIHWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722332552; 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=VINm+uAzC6YeTH6JdQq1p9a/YoQa2KGg4VpB9qXFNoY=; b=qovfAbji4DejgZxjonfaUS1ffBcokpEUCrGTyNsuCd6Riq+5DODEiUlJpU7KaipjGYKidJ UmiRoPELxYej1O1OjckHscE4BBdeThVeEwHZ3pWURwR2KT4/llOzp0kSRRdnRy5H4gnpWE 6J4RHgKpb/nu+74Q+/kSdpiwx+z8nXAB052yFeTFBur6wKOhMXjRQ0BNCN7mlK2dfF6XvE tz43Bvgo962qlE12K6Ifq87vNsIWhuYR2g2sIS+iI2eGPljxJKj0huTPfSN/+V20wneqE7 5adWfl/oN9ZnQ9iNoq2rQ9ehO0IrNC3jlAvVBF1jCVHFYy0rSLuU03TD3pMaig== 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 4WY9Hr2l5Dz1BkT for ; Tue, 30 Jul 2024 09:42:32 +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 46U9gW3G011162 for ; Tue, 30 Jul 2024 09:42:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46U9gWEh011159 for pf@FreeBSD.org; Tue, 30 Jul 2024 09:42:32 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: pf@FreeBSD.org Subject: [Bug 276870] mbuf cluster leak with on pf+bird2 bgp routers Date: Tue, 30 Jul 2024 09:42:32 +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.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: zarychtam@plan-b.pwste.edu.pl X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@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: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-pf@freebsd.org Sender: owner-freebsd-pf@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276870 --- Comment #10 from Marek Zarychta --- (In reply to Borja Marcos from comment #9) > Is thread usage one of the differences between your Bird versions? Or som= e thread usage pattern? The BIRD daemon from the port net/bird2 is still single-threaded. BIRD 3, w= hich is currently in the early ALHPA stage will be multi-threaded, but we don't = have it in the ports tree. Moreover, I am not able to reproduce the original problem reported here. Running 4 full view sessions 2x(IP+IPv6) on BIRD 2.15.1 after 1,5 months of system and session uptime I see no memory leaks=20 2492 root 1 20 0 365M 339M select 1 51.4H 0.00% bird 31306/2717384/2748690 mbufs in use (current/cache/total`2/3554/3556/1014047 mbuf clusters in use (current/cache/total/max) 2/3554 mbuf+clusters out of packet secondary zone in use (current/cache) 26740/3740/30480/507023 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/150229 9k jumbo clusters in use (current/cache/total/max) 0/0/0/84503 16k jumbo clusters in use (current/cache/total/max) 114801K/701414K/816215K bytes allocated to network (current/cache/total) --=20 You are receiving this mail because: You are the assignee for the bug.=