[Bug 266272] top reports incorrect amount of system memory

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 07 Sep 2022 14:05:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266272

            Bug ID: 266272
           Summary: top reports incorrect amount of system memory
           Product: Base System
           Version: 13.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: eugene@zhegan.in

top on today's STABLE:

last pid:  3719;  load averages: 23,07, 23,36, 17,75                           
               up 0+00:33:11  17:03:28
40 processes:  1 running, 39 sleeping
CPU: 12,4% user,  0,0% nice, 15,2% system,  0,4% interrupt, 72,0% idle
Mem: 16G Active, 6059M Inact, 883M Laundry, 14G Wired, 3311M Free
ARC: 9583M Total, 1377M MFU, 6691M MRU, 3403K Anon, 237M Header, 21M Other
7543M Compressed, 16G Uncompressed, 2,14:1 Ratio
Swap: 32G Total, 13G Used, 19G Free, 41% Inuse

[...]

dmesg:

[root@db0-de:~]# grep memory /var/run/dmesg.boot
real memory  = 137434759168 (131068 MB)
avail memory = 133681565696 (127488 MB)

vmstat:

[root@db0-de:~]# vmstat -h
procs    memory    page                      disks     faults       cpu
r  b  w  avm  fre  flt  re  pi  po   fr   sr nv0 nv1   in   sy   cs us sy id
22  0  9 132G 3.0G  22K 2902 591 698  13K 338K 47132 15711 55073 132K 303K 13
16 72

Also reproducible on 13.0.

uname:

FreeBSD db0-de.findmykids.org 13.1-STABLE FreeBSD 13.1-STABLE #0
stable/13-n252309-f25bd922c97: Wed Sep  7 12:38:08 MSK2022    
emz@balancer1-de.findmykids.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

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