From owner-freebsd-questions@freebsd.org Thu Jul 30 06:08:31 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 99D9E379B18 for ; Thu, 30 Jul 2020 06:08:31 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BHKjB2dKVz3X3j for ; Thu, 30 Jul 2020 06:08:30 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=Message-ID:Subject:To:From:Date:In-Reply-To; bh=fUQiGjWkywdmw9NNFriLp1hpTY+6t7qwZJlG5R7q5do=; b=MP7Yn6FWQi9rK/yeoBSYbv9+j/ 1CDlZPd9ROhaixLAfn95AArdM88+ouSa/w0/QISi3417e9agScnXnTG+5fOKePd/YDJEBzZ4PG5V7 pYlE3WqtDJO3AmAAKJ3BhrhoG+QuwaN9jLJ1xSeF2ZTvO20C8gSHRdRU8iKeEinM7RoQ=; Received: from vas by admin.sibptus.ru with local (Exim 4.94 (FreeBSD)) (envelope-from ) id 1k11jr-0005sp-2U for freebsd-questions@freebsd.org; Thu, 30 Jul 2020 13:08:23 +0700 Date: Thu, 30 Jul 2020 13:08:23 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: comparing top and htop output for memory Message-ID: <20200730060823.GA22448@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 X-Rspamd-Queue-Id: 4BHKjB2dKVz3X3j X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=MP7Yn6FW; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-5.47 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.02)[-1.017]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.03)[-1.033]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; NEURAL_HAM_SHORT(-0.32)[-0.324]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jul 2020 06:08:31 -0000 --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear Colleagues, htop gives a simplified output (used/buffers/cache) for free RAM. I think ZFS ARC is counted under "cache". On a certain box, it shows 24.5G as "used". On the same box, top gives a more detailed output: =20 Mem: 21G Active, 10G Inact, 13G Wired, 639M Buf, 15G Free ARC: 10G Total, 1142M MFU, 9057M MRU, 84M Anon, 60M Header, 102M Other Which of those above would go under the 24G of "used" according to htop? It's probably 21G of active + I need to account for 3G more. The total amount of RAM is 61G (which htop shows but top does not). But=20 22G Active+10G Inact+13G Wired+639M Buf+15G Free is indeed 61G --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJfImPXAAoJEA2k8lmbXsY0QcsH/01NyPGXYEcvbajqPn9sSlyo tR8+3bb6c/ZIwh0VCwIP/OvyXkJgQ2m+xgux1Pvgalfh6m6VyB+uUweATjbU5k7k bFedluhVP/2MblWABdOLUnuJ/jCotSpOmpMV2Bh9Xh57CGuloew99rVynUUuZ/X6 Yb3ThFWarLxTrIXQAnPTczqXl9/+HU47AwdFPMfjqr3HlH9nUvnCfxNnPSgKhv4v DcwwXliMaAHad6Wy/y6Xep4VOLSi+bQAnZU4ka9NPyc1AeSZe3JrclikoIFchlzl IKe2SBXS4BfZCMoTNlT4QwOXdd1hYm+GZzYP02UFJTyfFP3YK7f8DqpKyntq7wY= =5TvU -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM--