From nobody Sun Mar 24 22:47:51 2024 X-Original-To: freebsd-ports@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 4V2rnM08LGz5DfGK for ; Sun, 24 Mar 2024 22:48:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic307-8.consmr.mail.gq1.yahoo.com (sonic307-8.consmr.mail.gq1.yahoo.com [98.137.64.32]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4V2rnL11vKz50Z2 for ; Sun, 24 Mar 2024 22:48:05 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=MmQIQZxi; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.32 as permitted sender) smtp.mailfrom=marklmi@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1711320483; bh=XospEQrcdyrR2EIK6qtI5E+IElY6P/N6sgMulmz+Kz8=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=MmQIQZxiXw5/s6Oi2UHkDu3J8qFOSK/oLqOAkuS8lPJZ1RUcyrNfAM4GnPT/YN5yMQ5tBFJw/NHdPUziGXMLc+rSjtsaefi1B/5UgPQqUmd+KujTIj9yJUU/XY/TPGD97B9z2pyQLmp+l3l6h4GJDu0gNWvPeg8FDpYRX+J0916NE5DkU+UFAgv5wISzYno2ZYsl+Jk85pBt7tVqIRE+OSdp/9NOnKVmKHzZSF0hI8Nmtmh12+wnF8MAxXlw7Q5Z+Q2cA8SJnlaOZUVh0n3wIbhgSlJOa/wbQrsW9xnzPZd9b/lbM7SeEPBEwxSI3YosKWFBF3qhxFhZORMUcAokDw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1711320483; bh=Q4UwlRgfio+C1rEUxaGJykxeKOq0Y4shCx/pzlaaKE2=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=SpbJFGi3XD3LmQM3XiCeRSNO/V9iHxiALz6g5oQlWwP1dAgs5K3gJC4WMxEKZVKIpEjI5gJT3+khJooXTyQTQW0ic+2W/3XqjAJlG78l8LTVlfea+XgK0+g/axMg9rOcLlsH25m1MQyGoaIabR3gmbvR00XMId8yYYb+8zCuzdk7HcYa2HjXZ5/jNdIL+PMuOTq1Y+SLqr14bYDoyhdroSEV/LtshyRhikCyMlld3eO114pRXxQqphNljQLrGUg0kEUUrgNP/SWhKER1vHu9gWskpqFp8fnh8yKctD6MCGPUHG5Gsq/bw7++UxYWr7X++ijoGx0bt9jcgVBj045dcg== X-YMail-OSG: aion2AMVM1kvLkHMU26z34XY_.fyUtDu9eJ4OxyF5_upvWolnv..hq9JNqVSxO1 rRl0fofhBwE67mGUfg5Y3AFzIsI_FXlJsMzq_AQ2HCS7iwuMRnSo8eExgz5uLni66JFlGHlWkg_6 GVkQLnpVvcxl1U3IMd5NGe7MbRkotfmPUl8B_Jvczylei0kWYMNHZ5czNR0tMAALhlzayQdPibzH PYTjAscyrRFM0yO0GA9C6OnwuQqC.8g6GKZfYAGOFaFgB7mM7mOQYglLxEMSwA88HYTSfMkwzCOV JNxPzjTpXaSbgyOUaloJMhoLMOs9EqEmXt1t0UJasG9RQv5K7rshdMaunwyS.gMjg2hiF6OJTK.H OOTSQoBMqOSTlpzYELUq.7St_Kywx9pS578cOV8ojBTf36WWJykh8sGmXyI5y7KJZ8.rLfzlMFV5 Nb4NWlslg.t1oEm8ubuGZA5sHRjwpw_fHcI0mpkN8Ztrq.jqAocm86dvXQUcqRwuq4dfmEQmJFte imXoA6SPM0PX5KVYJXzX6TMl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ZH0xIPUpYl4AgBtNUJzhK9ORPMEFjLIcwRxXzofqCm8.QzBhl5cnwz fjQTVyn9aTOcV40ol3JdfAEj0MxOeFtDdGL7UPFTOYcixIyAfl0eZAfZ6KebEBfC6YqEFFQE8YYt csJtmAbvOuZrkpSJa64XHRPYsoG4EORjQ7xGbajO0O6Gvy6LuerBZZzl7YV61WGFgn2KCJA4HI85 Ll7PIK4oTROu_7bWorftibF3l3FFW8ZkcOoCXFcw.sXuSC.6P0i_KfnkSYbhNNRsTCxrf8KtsDYN WYsuqS1uhHnx.ZHh0cja0NEJRt73eQQq0xRqLtldumMuRoxedqQar4rFACkpKUJCd4bgf1knRo6i HaJZX1lj.fcGeK6wD6qW3JqpmBNui.5ku5vc1PBo7dO_hXq99Gwn5BfbgkxflncbvApAuU9aUBBU Se_tztidYMo.7FzA9asYcdiLJzv_YJsPIIzkzeYk8YCeLaCHnDKmy0eEfXNjnPBDg1Y1r2hA1r2n gZvRIaplLLverrq0BEQSbSt7225yLKd5G17Aep.yqzWdccCNsldcTci1ACT3NoYvv2OmKIa2pzUt Yox8V98HuFesBtejDeDZ3RcGwHcE6gaQg6Akf8A1l_zq3xKAAjZkPpELsDfIaTF4_.E6Mc6f.IlI .oFJWT92a_gIB97rBPZWNTCeFEEzA7NJVLMeVB7TOnMzwNUkXHyZ8v94qRFw- X-Sonic-MF: X-Sonic-ID: 5129b8cd-8cfb-4fed-a3ba-97849ce326b8 Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.gq1.yahoo.com with HTTP; Sun, 24 Mar 2024 22:48:03 +0000 Received: by hermes--production-gq1-5c57879fdf-hrd4s (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID e2574e66c9d55de8415ac4a0bbb112e7; Sun, 24 Mar 2024 22:48:01 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.400.31\)) Subject: poudriere(-devel) status -b %mem: based on sysctl's hw.availpages and on ->ki_p->ki_rssize (resident set size) [not on RAM+SWAP use] Message-Id: Date: Sun, 24 Mar 2024 15:47:51 -0700 To: FreeBSD Mailing List X-Mailer: Apple Mail (2.3774.400.31) References: X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.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)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.32:from]; APPLE_MAILER_COMMON(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.32:from] X-Rspamd-Queue-Id: 4V2rnL11vKz50Z2 poudriere's documentation is not explicit about which "memory" sizes = that the %mem is relative to. Nor is is explicit about how it gets the = figure. Tracing that "how" down lead to finding use of: ps -ax -o jail,%cpu,%mem (poudriere totals across the processes in the same jail [same builder].) The ps documentation is in turn not explicit about such. Tracking that down lead to: /usr/main-src/bin/ps/print.c: fracmem =3D ((double)k->ki_p->ki_rssize) / = mempages; /usr/main-src/bin/ps/extern.h:extern unsigned long mempages; /usr/main-src/bin/ps/nlist.c:unsigned long mempages; /* number of pages = of phys. memory */ /usr/main-src/bin/ps/nlist.c: oldlen =3D sizeof(mempages); /usr/main-src/bin/ps/nlist.c: if (sysctlbyname("hw.availpages", = &mempages, &oldlen, NULL, 0) =3D=3D -1) So: poudriere status -b 's MEM% reports the (scaled) fraction: (resident set size)/(hw.availpages) It expects the processes in a jail to all have the same hw.availpages value (a common denominator). It appears to expect the same across jails in order to have comparability across jails. This implies that if one is trying to see relationships to overall RAM+SWAP capacity, with a non-zero amount of SWAP available in the context, the MEM% is inappropriate. It would be good if the documentation indicated in some way what to expect one can reasonably do with the MEM% figures that "poudriere status -b" reports (vs. what one can not reasonably do with them). Note: It would appear that the TMPFS figures reported are not part of the resident set figures. So the MEM% figures look like they exclude the TMPFS related RAM+SWAP usage figures that are reported. =3D=3D=3D Mark Millard marklmi at yahoo.com