pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/55626: sysutils/conky reports too low used memory
>Number: 55626
>Category: pkg
>Synopsis: sysutils/conky reports too low used memory
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Aug 30 03:25:00 +0000 2020
>Originator: Stefan Schaeckeler
>Release: pkgsrc-2020Q2
>Organization:
>Environment:
NetBSD XXX 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
The current implementation of some memory related objects makes NetBSD look more memory efficient than it really is :D. Memory related objects such as membar or mem report too low numbers.
patches/patch-src_netbsd.c has a similar fix for info.memeasyfree:
+ /*
+ * Counter-adjust for the adjustment in update_stuff in common.c so
+ * that memeasyfree is the inactive memory. Since inactive memory
+ * partially overlaps with buffer memory, but the size of the
+ * overlap is not measured, attempting to split it into non-bufmem
+ * and bufmem parts, as common.c does, can't work. So instead we
+ * report inactive memory as memeasyfree.
+ */
+ info.memeasyfree -= info.bufmem;
I propose to do the same for info.mem. Perhaps merge below patch into patches/patch-src_netbsd.c.
>How-To-Repeat:
in .conky, display any memory related objects such as membar or mem. They report too low numbers.
>Fix:
$NetBSD$
--- src/netbsd.c.orig 2020-08-29 19:41:43.917427148 -0700
+++ src/netbsd.c 2020-08-29 19:57:28.978328623 -0700
@@ -145,6 +145,11 @@
* report inactive memory as memeasyfree.
*/
info.memeasyfree -= info.bufmem;
+ /*
+ * Counter-adjust for the adjustment in update_stuff in common.c so
+ * that mem remains used memory.
+ */
+ info.mem += info.bufmem;
return 0;
}
Home |
Main Index |
Thread Index |
Old Index