From nobody Fri Sep 16 20:25:33 2022 X-Original-To: dev-commits-src-main@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 4MTlv22gvpz4d6bC; Fri, 16 Sep 2022 20:25:34 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MTlv16mNXz3MH5; Fri, 16 Sep 2022 20:25:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663359933; 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=N1B3jHRMyPCn8LPkl/uqCD5jM76o9leSqj3+DJFH5O0=; b=sfedDpxfANysp1Z7V9ac5fPb4a1+N7wx46ToY7sgNEgWbmD9dNXWaV2NzCEvHA/kDDymfr bRiqpBfVkMFrDE+XKyi0s7eH7qSXmvdz2IJ2pfvY6NLD0AEJXvRkyup0pG2UkF1umjqjWT uo60ZpmqlXn9EQ5516ID0rnxfJLb6l0lAhQGDkEaKmAVrPFga+18n6Rq9RaYrMSG0qFSHU ATPGW/c1wTN60tEEN64BlwBRtXM+ih1yJRNgTx9lg2PA/KMPFZaub4kiXA4Ap6/CfNW4Kh 7EknYHVYvSC0j+r66tRm6fccUfWRd/eOUJpKR3O0lYxeQNWkx3KzVU9fWePl4A== 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 4MTlv15hg1zT4C; Fri, 16 Sep 2022 20:25:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28GKPXnP026210; Fri, 16 Sep 2022 20:25:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28GKPXIj026209; Fri, 16 Sep 2022 20:25:33 GMT (envelope-from git) Date: Fri, 16 Sep 2022 20:25:33 GMT Message-Id: <202209162025.28GKPXIj026209@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: ccdaa1ab1c5f - main - vm_overcommit: put into __read_mostly section List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: ccdaa1ab1c5fec116d02cad37626d13fbdf77352 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663359933; 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=N1B3jHRMyPCn8LPkl/uqCD5jM76o9leSqj3+DJFH5O0=; b=EmUp3e/fvJly0aFVXL9ilO3kbblkdFchVuM5K84ThfpRbZVlQNnL0J4vw4yFTw7FonAaHh 2iOqbPy3K0vCP404lkTBFrNbLXcxdnvkF2j1ETPoKhQfA1ZB4/r3uMI2VWA5G52xALmrZa 7GUB2NI8e3xyk3rSxFDbTEiZ8dAY4EMf7rZ6GpetjX2awh8Vygr4+3EXRY9xEKgYIBwDEH OYssdLt2yKiR4wZ1+xjbEaG9aN+yLVW05Daic08RBHxlpGXjWlShekLiAzGm7pMuyXitBY BCy0T5gh+0ORqKZt5xYKZCmAux7XC1QtDuf1BPSb2ekrY2wgZkApJYhZWnPLvw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663359933; a=rsa-sha256; cv=none; b=lBegIC4OiWLKV5otlU6F8JFJAl4WiaZsw9AbZZAd55qvfgrUsDUjYyIFp/4ZXwMMgXiAGs X5262wSnBbQGPohsoa8XsV2M2Rh5JfPD2bZDBaqlnaUbS11S05e7FXvuAUXPrPfzz+PNmE Mj6uDToyfIAMI9USRR29hWdxoMNg+kOWIgzdwN9v21wYi3/wMqns7CMQdpsGB7aTdtbORg d0NHEAE5XwNWBKVSDg0OssTEVoqseTJMU6f8f9o1FHEyHus2cPxd+YugurzF7NNWuDP877 AJw0A1TNWq+r8vWBvaJ8/OlAkmwcZW5cILotSw/64xtJmifFuSQ9TVR5qoJyOg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=ccdaa1ab1c5fec116d02cad37626d13fbdf77352 commit ccdaa1ab1c5fec116d02cad37626d13fbdf77352 Author: Konstantin Belousov AuthorDate: 2022-09-13 10:00:12 +0000 Commit: Konstantin Belousov CommitDate: 2022-09-16 20:23:04 +0000 vm_overcommit: put into __read_mostly section Suggested by: mjg Reviewed by: brooks, imp (previous version) Discussed with: markj Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D36540 --- sys/vm/swap_pager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 071296ad6443..d71d2ff27e6a 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -169,7 +169,7 @@ SYSCTL_PROC(_vm, OID_AUTO, swap_total, CTLTYPE_U64 | CTLFLAG_RD | CTLFLAG_MPSAFE &swap_total, 0, sysctl_page_shift, "QU", "Total amount of available swap storage."); -int vm_overcommit = 0; +int vm_overcommit __read_mostly = 0; SYSCTL_INT(_vm, VM_OVERCOMMIT, overcommit, CTLFLAG_RW, &vm_overcommit, 0, "Configure virtual memory overcommit behavior. See tuning(7) " "for details.");