Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 2024 21:25:19 -0500
From:      Dennis Clarke <dclarke@blastwave.org>
To:        Current FreeBSD <freebsd-current@freebsd.org>
Subject:   top seems confused about memory ?
Message-ID:  <64c81235-7871-4c44-bef2-95210f12bf86@blastwave.org>

next in thread | raw e-mail | index | archive | help

On a machine here I see top reports this with " top -CSITa -s 10"


last pid:  6680;  load averages:    0.29,    0.12,    0 up 0+11:40:46 
02:23:01
51 processes:  2 running, 47 sleeping, 2 waiting
CPU:  0.6% user,  0.0% nice,  0.2% system,  0.0% interrupt, 99.2% idle
Mem: 587M Active, 480G Inact, 1332K Laundry, 7410M Wired, 456M Buf, 11G Free
ARC: 3624M Total, 85M MFU, 3359M MRU, 32M Anon, 118M Header, 27M Other
      2919M Compressed, 32G Uncompressed, 11.13:1 Ratio
Swap: 32G Total, 32G Free

    THR USERNAME    THR PRI NICE   SIZE    RES STATE    C   TIME     CPU 
COMMAND
100003 root         40 187 ki31     0B   640K CPU0     0 464.8H 3967.69% 
[idle]
101142 root          1  48    0  1530M   574M piperd  34   0:27  24.69% 
/usr/lo
100000 root        731 -16    -     0B    11M parked  18 112:10   3.14% 
[kernel
102993 root          1  21    0    30M    15M select  26   0:03   2.77% 
/usr/bi

Seems only 11G of memory is free ?

That seems impossible.

titan# sysctl hw.physmem
hw.physmem: 549599244288
titan#

titan#
titan# sysctl -a | grep 'free' | grep 'mem'
vm.uma.vmem.stats.frees: 0
vm.uma.vmem.keg.domain.1.free_slabs: 0
vm.uma.vmem.keg.domain.1.free_items: 0
vm.uma.vmem.keg.domain.0.free_slabs: 0
vm.uma.vmem.keg.domain.0.free_items: 0
vm.uma.vmem_btag.stats.frees: 523236
vm.uma.vmem_btag.keg.domain.1.free_slabs: 0
vm.uma.vmem_btag.keg.domain.1.free_items: 34398
vm.uma.vmem_btag.keg.domain.0.free_slabs: 0
vm.uma.vmem_btag.keg.domain.0.free_items: 34378
vm.kmem_map_free: 528152154112
kstat.zfs.misc.arcstats.memory_free_bytes: 11707904000
titan#

I have no idea what "top" is reporting but 11G free on a machine doing 
nothing seems ... unlikely.


-- 
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64c81235-7871-4c44-bef2-95210f12bf86>