From nobody Sat May 06 21:31:29 2023 X-Original-To: bugs@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 4QDLN13C7xz499cB for ; Sat, 6 May 2023 21:31:29 +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 4QDLN125bBz489D for ; Sat, 6 May 2023 21:31:29 +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=1683408689; 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=ThRZbAwi6uxX+ZiW2kE/oYxzesIkgX/fA2jwUmUmhwE=; b=Lkop0Noi1ETBxOYXr5SM7cuESyEzUFjWCYDvAYDkkqgGaBJFrcizqsd/C8vIz3zXHerbce KwuSLvjkKkFKqoANjid0qo52VzpFfdVRI0nX/KaAnjC1/qeJTVZRnkT9ZEPo9/ROoJ677p 0YrEKPWBF70QjsJnnNo+7gR7qrwAZAXdkRwrqAlkrPNaqpfQdXGOecRt3mDVV19ApWcDaG HECfjIifLI0H90cSzzABhOIk3U6JxkHgyZMbi9O9CCOSUEYHoJw17EJmJ4rRcUSB8Q03WJ 6Eh+CcCDmLvCT6tVB7FN/Sd2VUYle6MHs0MXrHTYyfbiSrpQaVopXMCeJOwoSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683408689; a=rsa-sha256; cv=none; b=Pmp8eFR//3zK1iy+ZcRzsgRKB0KaGe6jn/H3Z2S16Yw4VotqGdCAXts57OLSUzjDrYjjU0 qdWM9klhLuP+Lcf9GtdkSZ2AI0kW+kKeMo3OnNTq5YVNKCAdK0ha+uRA1mDo5+FJzWlKVW +iDt/Yz96tof2RSkNucs+dYk/2MulZ0sZhkIimbxFiCqnOFNOuDdDZKK9ONGwacpQpqltF +nOYBYG1Q4mnm0zstsjctZb9fZiBUkM5H0j/N+hxAFfzHaswclSrqc5enJv+LGotY0IGbO unkfftsOMuwrSK8RkltP7QgpEXn/nIZ0aIEz84zemHh8LQZRB/sLoWdpYH5MJA== 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 4QDLN11645zsFB for ; Sat, 6 May 2023 21:31:29 +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 346LVTBr059470 for ; Sat, 6 May 2023 21:31:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 346LVTTn059469 for bugs@FreeBSD.org; Sat, 6 May 2023 21:31:29 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 271246] Kernel wired memory leak with repeated netstat Date: Sat, 06 May 2023 21:31:29 +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: dave@jetcafe.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271246 --- Comment #10 from Dave Hayes --- Ok. Thank you for clarifying. It turns out this was easier than I thought it would be. Here's output from my script (source code on request). I stopped = at > 128 pages of lost wired memory but I can run this longer if you like.=20 Stopped at > 128 pages of lost wired memory. Total wired change: 130 pages (vmstat -z) PROC grew 1 bytes in that time period (vmstat -z) mbuf_jumbo_page grew -1 bytes in that time period (vmstat -z) pf states grew 248 bytes in that time period (vmstat -z) BUF TRIE grew -12 bytes in that time period (vmstat -z) pf state scrubs grew -3 bytes in that time period (vmstat -z) buf free cache grew 4 bytes in that time period (vmstat -z) malloc-32 grew 8 bytes in that time period (vmstat -z) filedesc0 grew 1 bytes in that time period (vmstat -z) tcpcb grew 4 bytes in that time period (vmstat -z) PGRP grew 1 bytes in that time period (vmstat -z) 4 Bucket grew -1 bytes in that time period (vmstat -z) 128 Bucket grew -7 bytes in that time period (vmstat -z) MAP ENTRY grew 50 bytes in that time period (vmstat -z) Files grew 8 bytes in that time period (vmstat -z) tcp_inpcb grew 4 bytes in that time period (vmstat -z) VM OBJECT grew 27 bytes in that time period (vmstat -z) 32 Bucket grew -2 bytes in that time period (vmstat -z) mbuf grew 3 bytes in that time period (vmstat -z) buffer arena-32 grew -1 bytes in that time period (vmstat -z) RADIX NODE grew 56 bytes in that time period (vmstat -z) 2 Bucket grew 10 bytes in that time period (vmstat -z) udpcb grew 3 bytes in that time period (vmstat -z) vm pgcache grew 101 bytes in that time period (vmstat -z) 64 Bucket grew 1 bytes in that time period (vmstat -z) socket grew 7 bytes in that time period (vmstat -z) udp_inpcb grew 3 bytes in that time period (vmstat -z) malloc-64 grew 13 bytes in that time period (vmstat -z) malloc-16 grew 1 bytes in that time period (vmstat -z) malloc-4096 grew 1 bytes in that time period (vmstat -z) mbuf_cluster grew -1 bytes in that time period (vmstat -z) VMSPACE grew 1 bytes in that time period (vmstat -z) KNOTE grew 6 bytes in that time period (vmstat -z) pf state keys grew 246 bytes in that time period (vmstat -z) malloc-256 grew -34 bytes in that time period (vmstat -m) freework grew by -3 Kbytes in that time perio= d) (vmstat -m) subproc grew by 4 Kbytes in that time period) (vmstat -m) freeblks grew by -1 Kbytes in that time perio= d) (vmstat -m) select grew by 1 Kbytes in that time period) (vmstat -m) newblk grew by -5 Kbytes in that time perio= d) (vmstat -m) freefile grew by -1 Kbytes in that time perio= d) (vmstat -m) bmsafemap grew by -1 Kbytes in that time perio= d) (vmstat -m) pcb grew by 1 Kbytes in that time period) These numbers come from slurping in --libxo json output. For vmstat -z I use the "name" and "used" keys. For vmstat -m I use the "type" and "memory-use" keys.=20 From this output, my likely naive analysis is that your leak is in -none- of these areas. :) --=20 You are receiving this mail because: You are the assignee for the bug.=