From owner-freebsd-bugs@freebsd.org Fri Jan 22 12:53:13 2021 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 143C44F49F5 for ; Fri, 22 Jan 2021 12:53:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4DMfLw6xG1z4tVZ for ; Fri, 22 Jan 2021 12:53:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id EE0794F4C19; Fri, 22 Jan 2021 12:53:12 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EDCE24F4B2C for ; Fri, 22 Jan 2021 12:53:12 +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 4DMfLw6L5yz4tMR for ; Fri, 22 Jan 2021 12:53:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 CCA701EE8B for ; Fri, 22 Jan 2021 12:53:12 +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 10MCrCSC002846 for ; Fri, 22 Jan 2021 12:53:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 10MCrCoA002845 for bugs@FreeBSD.org; Fri, 22 Jan 2021 12:53:12 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: bugs@FreeBSD.org Subject: [Bug 252913] Enable option TCPHPTS and WITH_EXTRA_TCP_STACKS=1 in the kernel causes a massive mbufs leaks Date: Fri, 22 Jan 2021 12:53:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: iron.udjin@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2021 12:53:13 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252913 Bug ID: 252913 Summary: Enable option TCPHPTS and WITH_EXTRA_TCP_STACKS=3D1 in the kernel causes a massive mbufs leaks Product: Base System Version: 12.2-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: iron.udjin@gmail.com OS: 12.2-STABLE stable/12-c243266-gd970a8218e16 In kernel conf: makeoptions WITH_EXTRA_TCP_STACKS=3D1 options TCPHPTS "netstat -m" in a few weeks of usage under high network load: 78365279/16/78365295 mbufs in use (current/cache/total) 43996/18104/62100/12244576 mbuf clusters in use (current/cache/total/max) 2429/16 mbuf+clusters out of packet secondary zone in use (current/cache) 12584/2975/15559/6122288 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/1814011 9k jumbo clusters in use (current/cache/total/max) 0/0/0/1020381 16k jumbo clusters in use (current/cache/total/max) 19729647K/48112K/19777759K bytes allocated to network (current/cache/total) 42375955/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 404032/0/33003 requests for mbufs delayed (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters delayed (4k/9k/16k) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 1899771 sendfile syscalls 399 sendfile syscalls completed without I/O request 1004979 requests for I/O initiated by sendfile 7900311 pages read by sendfile as part of a request 399 pages were valid at time of a sendfile request 0 pages were valid and substituted to bogus page 0 pages were requested for read ahead by applications 0 pages were read ahead by sendfile 0 times sendfile encountered an already busy page 0 requests for sfbufs denied 0 requests for sfbufs delayed As you can see, almost 20Gb of RAM allocated for network. Finally server becomes unreachable: [zone: mbuf] kern.ipc.nmbufs limit reached Additional info and counters: https://forums.freebsd.org/threads/mbufs-leaks.78480/ --=20 You are receiving this mail because: You are the assignee for the bug.=