From patchwork Mon Feb 28 07:10:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muchun Song X-Patchwork-Id: 12762465 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56D29C433EF for ; Mon, 28 Feb 2022 07:11:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D62C48D0003; Mon, 28 Feb 2022 02:11:29 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D12038D0001; Mon, 28 Feb 2022 02:11:29 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C00E18D0003; Mon, 28 Feb 2022 02:11:29 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.28]) by kanga.kvack.org (Postfix) with ESMTP id AD0138D0001 for ; Mon, 28 Feb 2022 02:11:29 -0500 (EST) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 6AC80211CF for ; Mon, 28 Feb 2022 07:11:29 +0000 (UTC) X-FDA: 79191317898.13.EDF6BC1 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by imf15.hostedemail.com (Postfix) with ESMTP id 3E0B3A0004 for ; Mon, 28 Feb 2022 07:11:28 +0000 (UTC) Received: by mail-pj1-f53.google.com with SMTP id bx9-20020a17090af48900b001bc64ee7d3cso10512354pjb.4 for ; Sun, 27 Feb 2022 23:11:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RCfkkHTFTbBZWN4MRRKByw8vOmHdfbN0IqiaDPGeNOg=; b=dOgU94T9dxNIYWE9VHh0hdTmT7ifAkOngLUMR8I3WSTsC9oIxFotYVEIZwliIXZcFQ VZ/UqJK22p8kBOQ/eeqe7CyK+HfhgDua9J6jUBt5qUd1XPStDXacH7kCI/NEdpwiTVgM RL2YaMCNt8hCeMRUzhCGOvX1DYB+ccEVpULIh90TIZotoY8GISEBZGnQsWizLZ0Lh2j5 hdCbnIkrBpRzhoNUk1w2CFGYkhm1lqNtWV0cDzDSK34PoZm+JbHkgrjPZRkBIX1Jf8Ml hA9jEH3wCC4ktKvZu9Qw+DFhJ1G1zrusDWH9mJv/C8R4iaEZuL+eDSj9sOsRc1S3m+0B qbBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RCfkkHTFTbBZWN4MRRKByw8vOmHdfbN0IqiaDPGeNOg=; b=pMI8R8z5IYJ27Cug2B00j0mFffRAcLhP1pPjGcv1k/ux9EzDWNIZZq1OmIK/JuBlq6 hUAFzhIwBREIUVI4mbSb19o3fIs9Z3BTTElj88QuN0jp2+JKRpV7TZAJBw3LozEsUH9J rqLrDrnDCnlmPVWXMqjdJ3UV3EOPAhgOksWUqr5KjbJ1cZxnPbRklU7uKob1W+ggxXzk 7OZPu9mOa2Ha2ZWkgg93oZ9grswDH/+aetfLZw4NTJo9TrNsAmoKeDSwa8J0wgzvxH6q UkXKLJIJ3GPAegsZprHR2vFH6K/TQGhfvH3SdW+ea3fjS5PRjDn3rRmj4J41zfdZlKOX N7tA== X-Gm-Message-State: AOAM533BeYXKHqYHFWmf75dx+EetMyHwbmqnXrfVr46ZKdS/nbLqG5ge Tp3RpErwzFjuNtF0H1v/lidGsQ== X-Google-Smtp-Source: ABdhPJwNiUWUQVyDl1VtKFWZYCiwhMGUytWFPX3AfhkBPGNgEoCG83MO5Y+CgnGGRhEqgdFkaMO6CQ== X-Received: by 2002:a17:90b:3cc:b0:1bc:692b:ad8 with SMTP id go12-20020a17090b03cc00b001bc692b0ad8mr15139329pjb.90.1646032287064; Sun, 27 Feb 2022 23:11:27 -0800 (PST) Received: from FVFYT0MHHV2J.tiktokcdn.com ([139.177.225.243]) by smtp.gmail.com with ESMTPSA id i7-20020a17090a65c700b001b936b8abe0sm16240390pjs.7.2022.02.27.23.11.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Feb 2022 23:11:26 -0800 (PST) From: Muchun Song To: corbet@lwn.net, mike.kravetz@oracle.com, akpm@linux-foundation.org, mcgrof@kernel.org, keescook@chromium.org, yzaikin@google.com Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, duanxiongchun@bytedance.com, Muchun Song Subject: [PATCH 0/3] add hugetlb_free_vmemmap sysctl Date: Mon, 28 Feb 2022 15:10:19 +0800 Message-Id: <20220228071022.26143-1-songmuchun@bytedance.com> X-Mailer: git-send-email 2.32.0 (Apple Git-132) MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 3E0B3A0004 X-Stat-Signature: 4heqqa46mndhoeswgzjgqixi78uyf6hw Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=dOgU94T9; dmarc=pass (policy=none) header.from=bytedance.com; spf=pass (imf15.hostedemail.com: domain of songmuchun@bytedance.com designates 209.85.216.53 as permitted sender) smtp.mailfrom=songmuchun@bytedance.com X-HE-Tag: 1646032288-483227 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This series amis to add hugetlb_free_vmemmap sysctl to enable the feature of freeing vmemmap pages of HugeTLB pages. Muchun Song (3): mm: hugetlb: disable freeing vmemmap pages when struct page crosses page boundaries sysctl: allow to set extra1 to SYSCTL_ONE mm: hugetlb: add hugetlb_free_vmemmap sysctl Documentation/admin-guide/sysctl/vm.rst | 13 +++++++++++++ include/linux/hugetlb.h | 5 +++++ include/linux/memory_hotplug.h | 1 + kernel/sysctl.c | 13 ++++++++++++- mm/hugetlb_vmemmap.c | 24 +++++++++++++++++++++++- mm/hugetlb_vmemmap.h | 4 +++- mm/memory_hotplug.c | 2 +- 7 files changed, 58 insertions(+), 4 deletions(-)