From nobody Fri Nov 29 03:15:54 2024 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XzyxX1N3Tz5fhHQ for ; Fri, 29 Nov 2024 03:16:00 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from mail.oetec.com (mail.oetec.com [108.160.241.186]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "mail.oetec.com", Issuer "E6" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XzyxV6TFQz4RbV for ; Fri, 29 Nov 2024 03:15:58 +0000 (UTC) (envelope-from dclarke@blastwave.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=blastwave.org header.s=default header.b=X3ou8J+m; spf=pass (mx1.freebsd.org: domain of dclarke@blastwave.org designates 108.160.241.186 as permitted sender) smtp.mailfrom=dclarke@blastwave.org; dmarc=pass (policy=quarantine) header.from=blastwave.org Received: from [172.16.35.3] (pool-99-253-118-250.cpe.net.cable.rogers.com [99.253.118.250]) (authenticated bits=0) by mail.oetec.com (8.17.1/8.17.1) with ESMTPSA id 4AT3Fsed043852 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 28 Nov 2024 22:15:56 -0500 (EST) (envelope-from dclarke@blastwave.org) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=blastwave.org; s=default; t=1732850156; bh=EFsuZQr6D7wQWvIzLR5J8U3y+ZXZxt6MwbOSRHqVEeM=; h=Date:Subject:From:To:References:In-Reply-To; b=X3ou8J+m82YobMVda1gl4953U+K8h96BSw2hJI5j/SsqTINehLgmQUMnaK+EBYj0A XyFwVpI6X4GeELHamXIbR2jJTt5TBbJvzyIaRxB3u/mRHSwYdI6CTKRDZMk+hFPghw nXIHJ9wgxMKtVLQdQn67rTg4toyMqH4mNRu25L1pHR0Y4cx/Ta8D/+pUbHXsoOCVSL ffqA5YlGFv4Z1XkVeBRR38Hv/Dj4C4W4zaesHuRbbRX0AMesLLKCTqqovY77vbi9PQ lGSfsifhAYhjPpL0gMy3J/R4hFq6I7jJ2sSLqeXXOqRBV2Sid7S4JIfR48PZ/M12Vc HnWMGnNn0ZAKw== Message-ID: <24f1e839-d312-4ff0-b655-9a6bd185a0b8@blastwave.org> Date: Thu, 28 Nov 2024 22:15:54 -0500 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: top seems confused about memory ? Content-Language: en-CA From: Dennis Clarke To: Current FreeBSD References: <64c81235-7871-4c44-bef2-95210f12bf86@blastwave.org> Organization: GENUNIX In-Reply-To: <64c81235-7871-4c44-bef2-95210f12bf86@blastwave.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-oetec-MailScanner-Information: Please contact the ISP for more information X-oetec-MailScanner-ID: 4AT3Fsed043852 X-oetec-MailScanner: Found to be clean X-oetec-MailScanner-From: dclarke@blastwave.org X-Spam-Status: No X-Spamd-Result: default: False [-3.68 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.994]; DMARC_POLICY_ALLOW(-0.50)[blastwave.org,quarantine]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCVD_IN_DNSWL_MED(-0.20)[108.160.241.186:from]; R_DKIM_ALLOW(-0.20)[blastwave.org:s=default]; R_SPF_ALLOW(-0.20)[+mx:c]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; TO_DN_ALL(0.00)[]; HAS_ORG_HEADER(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[blastwave.org:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:812, ipnet:108.160.240.0/20, country:CA]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4XzyxV6TFQz4RbV X-Spamd-Bar: --- 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