From nobody Fri Nov 29 02:25:19 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 4Xzxq91GMPz5fdNk for ; Fri, 29 Nov 2024 02:25:25 +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 4Xzxq80gc0z4MKP for ; Fri, 29 Nov 2024 02:25:24 +0000 (UTC) (envelope-from dclarke@blastwave.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=blastwave.org header.s=default header.b="IWW+hn/6"; 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 4AT2PJER043121 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 28 Nov 2024 21:25:21 -0500 (EST) (envelope-from dclarke@blastwave.org) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=blastwave.org; s=default; t=1732847121; bh=QOZxBgvcMcMfYl3R789P+/LFcpBkkquWLFdNq6fSSC0=; h=Date:To:From:Subject; b=IWW+hn/6k2Douw2dOhRQ6Pcu8tGPUSvg3fldB9YzGvbeOHsSWOmcW1TJWKErHajjg VaO1luPbBZEpQAoB1MlHfeansVYEJOXtsTxyuJ9iWYzKPyNe2ZGweHZZ6FeV0N5xBd o8M85DyLXt6tXDrFu/30FAklccTIw9rKISnEQCEJcoMiIjwyCGHqgHL3AEU1lQLOr1 DMEFm0VmBQnJzsXdNToL36ZiF3S15BvMuJhxXBjnLIqEUqmAd/os/RMVPIo7bXmA7/ PiGsMF7PIkulxLREsnnrn386fiy9XGjPMcKe/it8degButLIUNFOb9rexu8j7eDO1H Nh2RY5A8J0J2w== Message-ID: <64c81235-7871-4c44-bef2-95210f12bf86@blastwave.org> Date: Thu, 28 Nov 2024 21:25:19 -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 To: Current FreeBSD Content-Language: en-CA From: Dennis Clarke Subject: top seems confused about memory ? Organization: GENUNIX Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-oetec-MailScanner-Information: Please contact the ISP for more information X-oetec-MailScanner-ID: 4AT2PJER043121 X-oetec-MailScanner: Found to be clean X-oetec-MailScanner-From: dclarke@blastwave.org X-Spam-Status: No X-Spamd-Result: default: False [-3.69 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; 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]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; TO_DN_ALL(0.00)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; 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]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4Xzxq80gc0z4MKP X-Spamd-Bar: --- 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