From nobody Tue Dec 19 19:16:38 2023 X-Original-To: freebsd-stable@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 4Svmf12l2Qz54lrQ; Tue, 19 Dec 2023 19:16:57 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from mail.punkt.de (mail.punkt.de [217.29.41.227]) (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 4Svmf10XsTz4cyg; Tue, 19 Dec 2023 19:16:56 +0000 (UTC) (envelope-from hausen@punkt.de) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (unknown [IPv6:2003:a:d59:3800:fcdc:57c5:13f5:f2f8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.punkt.de (Postfix) with ESMTPSA id 784EA6DB1D; Tue, 19 Dec 2023 20:16:49 +0100 (CET) Content-Type: text/plain; charset=utf-8 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\)) Subject: Re: Odd values for various memory metrics via SNMP From: "Patrick M. Hausen" In-Reply-To: <8f4cf72e-8320-4bfd-a4d9-3db34db4580d@aetern.org> Date: Tue, 19 Dec 2023 20:16:38 +0100 Cc: FreeBSD-STABLE Mailing List , FreeBSD Net Content-Transfer-Encoding: quoted-printable Message-Id: References: <1EDAF2AC-3A2B-43BE-B66B-E095F5A80C2C@punkt.de> <84B7C7D7-BC06-4944-A7E0-5AFC47B6BC0E@punkt.de> <8f4cf72e-8320-4bfd-a4d9-3db34db4580d@aetern.org> To: Yuri X-Mailer: Apple Mail (2.3774.200.91.1.1) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16188, ipnet:217.29.32.0/20, country:DE] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4Svmf10XsTz4cyg Hi Yuri, first thanks a lot for your help and insight. Additionally I had a short exchange with Michael W. Lucas and I am also studying his SNMP Mastery book at the moment. > OK, guess the following (physical memory) looks correct for you as = well? Yes, physical is correct across all hosts - FreeBSD, Linux, ESXi, ... > So I guess what net-snmp reports makes sense and the only value that > should be used for alerts is that "physical memory" one. I learned from MWL that "real memory" is supposed to be all memory currently in use by applications. Allocated pages. That of course makes sense, too. Now only "virtual memory" is left - according to the book that should be the sum of physical memory and swap space - and for my single Linux host it is. For the FreeBSD systems this is the one left that still looks = nonsensical. OPNsense (8G RAM, 8G swap): 4.91 of 4.99G used. TrueNAS (64G RAM, 32G swap): 627 of 628G used. TrueNAS 2 (32G RAM, 32G swap): 512 of 516G used. Recompiling net-snmp is not an option for me for these appliance OSes, but knowing that at least the "real memory" values do make sense, I'll = try to teach Observium not to paint them bright red. Kind regards, Patrick --=20 punkt.de GmbH Patrick M. Hausen .infrastructure Sophienstr. 187 76185 Karlsruhe Tel. +49 721 9109500 https://infrastructure.punkt.de info@punkt.de AG Mannheim 108285 Gesch=C3=A4ftsf=C3=BChrer: Daniel Lienert, Fabian Stein