[Bug 291473] sysutils/htop memory bar misrepresent available space

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 07 Dec 2025 21:01:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291473

            Bug ID: 291473
           Summary: sysutils/htop memory bar misrepresent available space
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: bsdpr@phoe.frmug.org
                CC: gaod@hychen.org
             Flags: maintainer-feedback?(gaod@hychen.org)
                CC: gaod@hychen.org

It looks like the memory bar graph shows inactive memory as mapped to userland
(green part of the bar). This is not indicative of the available resource as,
if I understand correctly, inactive memory is in use by the kernel but
immediately available at any time for other uses, including allocation to
userland and kernel buffers. In the current situation, a growing green bar
could be interpreted as a growing memory pressure ultimately leading to swap
activity. But this is not the case. I think that inactive memory should be
represented differently (blue color?, on the right side of the bar?) to clearly
illustrate how much memory is actually in use by userland and how much is
readily available.

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