[Bug 271246] Kernel wired memory leak with repeated netstat

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 04 May 2023 18:43:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271246

            Bug ID: 271246
           Summary: Kernel wired memory leak with repeated netstat
           Product: Base System
           Version: 13.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: dave@jetcafe.org

Consider the following simple loop:

while(1) 
  netstat >/dev/null
end

Running this loop will increase wired memory as measured by
vm.stats.vm.v_wire_count. This memory is never reclaimed by the OS, which can
eventually lead to swapping, thrashing, and then a panic.

-- 
You are receiving this mail because:
You are the assignee for the bug.