From nobody Mon Oct 07 16:48:55 2024 X-Original-To: dev-commits-src-all@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 4XMlTz2qGJz5YQSR; Mon, 07 Oct 2024 16:48:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XMlTz2Ccdz4Zrd; Mon, 7 Oct 2024 16:48:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728319735; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G64bX6z/gYKAjnKsGNvCLeyv6XZCcMYLHF+jkPTWZn0=; b=AfQQwKU9wCMSKAvSnc+zS9jM6L6ZPR3pGOp/8AMTdR6G3R13KZbiePDYPljA9gadBRJsCJ OiuT5/ihMLixpk5TJOmBz508V6EH8UfCj46Fq66ZEqgRzK1Uj6tKiZC1cTyYkc6/DslAzs vLq0TPncucyW7Vywfwk/630owCYlv+NFaZDP41pV7imWewZBA93VV/r7WDhaC+JyX0HooL /OTOR6eux1gq+xp6ZLFoXrYT1beu37o3ThfSNLBVV+4RLaI9wOXJgKbgmWmBu4MH5CCUc2 tAdFJyuBE1zqgiSbYCgP+cmBYVX4p0ulrA1JpHzZyvWJO44M/NvrDLg1GWFhAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728319735; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G64bX6z/gYKAjnKsGNvCLeyv6XZCcMYLHF+jkPTWZn0=; b=L2qmZCZsUVAAyYE7dvIfRdDaL7OZsuznRSAAFbHOOU3F6XqQ81zdt/jeGMAYYTwVL+LOdy xcGso8HR7ro2FZTWkeFJhaVheczv4JFGA7kVdsrYvGXFSnUfgaol2agrD96w4VFSRfbxE5 Q0ALtQi8DPcKapdqhUlZ199xcLVSRbhBKnuo0hw56IdnQw9XkUlc93c9UUmmDN51bRCU8c anL26uZGY80ZZdeF+kSMZXGnehEnCJO5G+U/xc4kvkIW64BgxcN40vGQ6T6/fl8ZbtASUh +EYsIW4uTmm0LZ2n5BOyDcFCHuLzUC+ZfcTu6DNbb1EdslxOxNExbSmph4NbGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728319735; a=rsa-sha256; cv=none; b=shC/sMvE0hS52tSzWqxI0vCipsLaVOnyWP81Tq+yXLbnUlOZl9IOw5wqlb92hjI8Cf8/na U81jASZnHHCBKu1XGzY44GTRq4I5RKSpvL6i3Wv8tC79QpI0GywszNZR7JjY+0GzFpJv0w KzuCWWBKlvq3pmXIjmfY79Ju4AUcSG+TTwBYBXyM+mEAm6GMoSiJfm4BpY3KLmqiagmiF1 MUmmiju+w8L1XuYWKxHlM7t0W+zCRW6ovbk0mRW791A4Xan1/9NtBL0G9e+Z3hiCx4V6AY oB7//0WKI5wCXByBQOwGzgkcPEOvpdTo+G0Hh2X9MCfl1zMa/DY9tRCrXCyPOw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XMlTz15yxztX8; Mon, 7 Oct 2024 16:48:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 497Gmt1G086148; Mon, 7 Oct 2024 16:48:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 497GmtRj086145; Mon, 7 Oct 2024 16:48:55 GMT (envelope-from git) Date: Mon, 7 Oct 2024 16:48:55 GMT Message-Id: <202410071648.497GmtRj086145@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Bojan =?utf-8?Q?Novkovi=C4=87?= Subject: git: 596a36ddc478 - main - vmstat: Add NOFREE page count to -s report List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bnovkov X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 596a36ddc47889e1b3bde00566cef2d8695c2847 Auto-Submitted: auto-generated The branch main has been updated by bnovkov: URL: https://cgit.FreeBSD.org/src/commit/?id=596a36ddc47889e1b3bde00566cef2d8695c2847 commit 596a36ddc47889e1b3bde00566cef2d8695c2847 Author: Bojan Novković AuthorDate: 2024-10-07 15:02:42 +0000 Commit: Bojan Novković CommitDate: 2024-10-07 16:46:32 +0000 vmstat: Add NOFREE page count to -s report This change adds the number of permanently allocated pages to the 'sum' structure report. Differential Revision: https://reviews.freebsd.org/D46980 Reviewed by: markj --- usr.bin/vmstat/vmstat.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 8c7790403786..8d6c40a4d2fd 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -142,6 +142,7 @@ static struct __vmmeter { u_int v_free_count; u_int v_wire_count; u_long v_user_wire_count; + u_int v_nofree_count; u_int v_active_count; u_int v_inactive_target; u_int v_inactive_count; @@ -558,6 +559,7 @@ fill_vmmeter(struct __vmmeter *vmmp) GET_VM_STATS(vm, v_free_count); GET_VM_STATS(vm, v_wire_count); GET_VM_STATS(vm, v_user_wire_count); + GET_VM_STATS(vm, v_nofree_count); GET_VM_STATS(vm, v_active_count); GET_VM_STATS(vm, v_inactive_target); GET_VM_STATS(vm, v_inactive_count); @@ -1004,6 +1006,8 @@ dosum(void) sum.v_wire_count); xo_emit("{:virtual-user-wired-pages/%9lu} {N:virtual user pages wired " "down}\n", sum.v_user_wire_count); + xo_emit("{:nofree-pages/%9u} {N:permanently allocated pages}\n", + sum.v_nofree_count); xo_emit("{:free-pages/%9u} {N:pages free}\n", sum.v_free_count); xo_emit("{:bytes-per-page/%9u} {N:bytes per page}\n", sum.v_page_size);