Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 2024 22:15:54 -0500
From:      Dennis Clarke <dclarke@blastwave.org>
To:        Current FreeBSD <freebsd-current@freebsd.org>
Subject:   Re: top seems confused about memory ?
Message-ID:  <24f1e839-d312-4ff0-b655-9a6bd185a0b8@blastwave.org>
In-Reply-To: <64c81235-7871-4c44-bef2-95210f12bf86@blastwave.org>
References:  <64c81235-7871-4c44-bef2-95210f12bf86@blastwave.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/28/24 21:25, Dennis Clarke wrote:
> 
> 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.
> 
> 

even worse ... under load it seems to make no sense at all :


last pid: 98884;  load averages:   32.01,   30.51,   25 up 0+12:33:20 
03:15:35
172 processes: 34 running, 136 sleeping, 2 waiting
CPU: 78.4% user,  0.0% nice,  1.8% system,  0.0% interrupt, 19.8% idle
Mem: 7531M Active, 450G Inact, 9588K Laundry, 27G Wired, 456M Buf, 14G Free
ARC: 17G Total, 7543M MFU, 4337M MRU, 37M Anon, 260M Header, 5005M Other
      7207M Compressed, 24G Uncompressed, 3.39: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 RUN      0 486.9H 792.70% 
[idle]
103554 root          1 156   i0   786M   632M CPU37   37   0:44  99.82% 
/usr/bi
101148 root          1 156   i0  1317M   822M CPU2     2   2:20  99.82% 
/usr/bi




-- 
--
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?24f1e839-d312-4ff0-b655-9a6bd185a0b8>