pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/52669: htop displays wrong used memory



>Number:         52669
>Category:       pkg
>Synopsis:       htop displays wrong used memory
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 29 07:35:00 +0000 2017
>Originator:     Eddie Cottongim
>Release:        NetBSD 7.0.2  htop-2.0.2
>Organization:
>Environment:
NetBSD ss20.cottongim.org 7.0.2 NetBSD 7.0.2 (ss20) #1: Sat Jan 21 16:19:44 EST 2017  root%ss20.cottongim.org@localhost:/usr/src/sys/arch/sparc/compile/ss20 sparc
Note, this is a two processor system and the kernel was compiled with SMP support.
>Description:
htop's memory display shows in use memory as 4TB; actual should be in the 200 MB range. "Bar graph" display looks about right so this may be a problem with printing the value. For example:

  Mem[|||||||||||||||||||||             4.00T/293M]   Uptime: 01:02:36
  Swp[                                     0K/144M]

Compare to /proc/meminfo:

ss20$ cat meminfo
        total:    used:    free:  shared: buffers: cached:
Mem:  306946048 115740672 191205376        0 53334016 88768512
Swap: 150790144        0 150790144
MemTotal:    299752 kB
MemFree:     186724 kB
MemShared:        0 kB
Buffers:      52084 kB
Cached:       86688 kB
SwapTotal:   147256 kB
SwapFree:    147256 kB

display from "top" looks reasonable: (taken later, values will have changed)
Memory: 75M Act, 32K Inact, 7220K Wired, 11M Exec, 51M File, 184M Free

>How-To-Repeat:
Happens every time htop is invoked.
>Fix:


Home | Main Index | Thread Index | Old Index