From nobody Sat Jan 24 00:32:25 2026 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 4dybNV4NYRz6Q1g5 for ; Sat, 24 Jan 2026 00:32:26 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dybNT6FwBz44vW for ; Sat, 24 Jan 2026 00:32:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769214745; 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=1woeZUwdza+8ZXjumuORQ8gkjhKwOckZxaFCjzKq4OQ=; b=haqNMubFYObP7BfiaW+AC1n2ic2iWFQuPUFHfKhpVu0715Qvni5XKTR5I+psFQyWvQtOD4 Ny7rsQalnHO+ppm6QCx3gv3JSRp0+GcYiRRuQ2B2p0qQwLJnhw2na+i7IiLmCe1WifBEpi n6E4kAUO+B0lqcFrCGZ4hoebvBbalpXLPR6sUUS3hgYoq6X6uj2mnAbU4ApEoggoweZ7WC 0Kx4mX7pGYVDSLoDbxwWBBUoWcCkp8Pt/iRmieN1bfpXXxt/5OEISctEsmEvFs9KZMCrMO zNPPCbE9aiAoXGdnrB9GzQJ/Y5f+7XrgbheciaBVhL7ZeJlhy8HxPSiTbGcXBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769214745; 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=1woeZUwdza+8ZXjumuORQ8gkjhKwOckZxaFCjzKq4OQ=; b=O3S4rl4xkIi2dTfng8xfXj90jq9y/9nfKDV667CMFWg0iQOgK2FK11C6F7chZPAP6Hh3sC QSsLkw/OfIBl3anJc/Z/IiyHck6kRDyAKFjhEgGwFrE8z5YKofBzPXO0WXMCyHrSAd5vak N5G0xCutFEL7DTZgm6mfIU4seIAcl4FjAI6VngS9mzGxIeYi/CR1749lPwTR5H2OskVu5o vy8JJE4KD7MbLe91J0Ntj1VUSBsPtjNBBidUYpw+PWtzfgdB/UVJtTGCd9qpAJtZR4HLnH 9AkZgb0/KL0TVcQrurPKl1wJTwxWdvfFekfm4Hahj+SC5hAK9FnWX6UZqx0elw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1769214745; a=rsa-sha256; cv=none; b=Z8RnoOjec4IAtDjHQyOXN8Y6aB/pLYyHTNlU5EABNoJFNmKzA2xBMjSFg5FGkUg4vGhdA4 P79lwXiTvxVnBKK6Xi5BhAKQdjlMmQcBjqJ7IVZA5wioFtvTjfuksoH2AHioTLnkXCEwjf vOsOx/bLt/TpbJr8cE4/dl1Lf6Md8eZiFMWp+YX901SgCxL0gUirsVK53p/TiAp6UtKAE/ ljAcbEu09b9smVqgmeBp7NC02Fcby6lR4QfnjjWwrHlWCWjTc7N6OTVrVGEWsXezm2Sgxv aT/qJ8i8krj2f/vBEMDzIUzcubxnVosDZgpgWrX2kK/pa2QanmVDmkF+PjIVNQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dybNT5dvWzhP9 for ; Sat, 24 Jan 2026 00:32:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id b240 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 24 Jan 2026 00:32:25 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 10af3b3b71a0 - stable/15 - tuning.7: add more explanation about swap (over-)accounting 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 10af3b3b71a0aeb992c5edbba8c4c52715fb7c5b Auto-Submitted: auto-generated Date: Sat, 24 Jan 2026 00:32:25 +0000 Message-Id: <69741319.b240.153b6b1e@gitrepo.freebsd.org> The branch stable/15 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=10af3b3b71a0aeb992c5edbba8c4c52715fb7c5b commit 10af3b3b71a0aeb992c5edbba8c4c52715fb7c5b Author: Konstantin Belousov AuthorDate: 2026-01-12 03:54:58 +0000 Commit: Konstantin Belousov CommitDate: 2026-01-24 00:26:45 +0000 tuning.7: add more explanation about swap (over-)accounting (cherry picked from commit 457b940bfb6a228af1281f357b627ecf1e26fea5) --- share/man/man7/tuning.7 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/share/man/man7/tuning.7 b/share/man/man7/tuning.7 index 44c427c4559d..a3709ce82b8c 100644 --- a/share/man/man7/tuning.7 +++ b/share/man/man7/tuning.7 @@ -222,6 +222,21 @@ and .Va vm.stats.vm.v_wire_count sysctls, respectively). .Pp +Due to the architecture of the +.Fx +virtual memory subsystem, the use of copy on write (CoW) anonymous +memory, e.g. on +.Xr fork 2 , +causes swap reservation for all three regions (VM objects), +as in the original pre-fork mapping, and its copies in +the parent and child, instead of only two. +Eventually the subsystem tries to optimize the internal layout +of the tracking for CoW and often removes (collapses) no longer +needed backing objects, re-assigning its pages and swap +reservations to the copies. +Coolapsing frees the swap reserve, but it is not guaranteed +to happen. +.Pp The .Va kern.ipc.maxpipekva loader tunable is used to set a hard limit on the