Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2515184pxm; Mon, 28 Feb 2022 00:06:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKEPMQm9uWWhbiiX3A5OygSYJTzcO0igxC4T6ET5A31Uen3vmXdWypxEtRN9qYTcoBdHC7 X-Received: by 2002:a17:90a:9517:b0:1bc:81ef:79cd with SMTP id t23-20020a17090a951700b001bc81ef79cdmr15256835pjo.164.1646035595041; Mon, 28 Feb 2022 00:06:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646035595; cv=none; d=google.com; s=arc-20160816; b=FeouOFeU/PMbnyW3jKgRyu3Xv3ZUhpCLm9MFf5uWAJqNaw26j7fwGU/BCl+qyRdktr Hmoy5IgVv85wTzg3Vt98UEJllBq+cVswgXJG5X2XoW7LFVMHH0q/MXcBEOAMUX98qA8C 4bkewiZGyOs+UCzyRsJJ2F8wFIpgCVw6Bp7oYaljmEFzJyLutCHqqeqeeMABkCkrhgHg slkePPs6hDkJ8RrNxYC+K7alm4bC43jNVdcyn/0qK3vy+l6f2jAgU7hvaFX84kE7epNM CCZgaCSsgVghggvIN5LOcD4Tspvp2EPjnkcYtAARghLocw11UTOMmFrZ84tYxMzfmkEC dwow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=RCfkkHTFTbBZWN4MRRKByw8vOmHdfbN0IqiaDPGeNOg=; b=wvUWxagrGFJagb3Qlmy9Wn1lTVpenXz6F6HlgyZ+YUzqpCKcel7A8EEom/stUTLG7v rR+RIzrN0ebJR6q87r0XmlNb/qVj43lKDpsb6f1ypW2Pks50WYg+Zu0rKo7NmHz+XVS2 oQKKBDh0fuCGvCcHSiIJpfh7ePwx5cYIAKaIuKtT5fARzXS2SCYsnDfwi78AhrHGYWCi mTXsHjAjvAdmu3X5u18TPQA8JmNz7qoEza+Wm2nm7MIvQcLV+CXZlM+FtS4EusUOFK83 uuJHziNe9f0iqsNz/ekwoBHuAPm3p+BB3eExEYR7s0ndjKjcBKC5Or+UBpJOMKVyVEJi sU0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=dOgU94T9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q4-20020a170902eb8400b0014adf3eb243si8181466plg.157.2022.02.28.00.06.20; Mon, 28 Feb 2022 00:06:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=dOgU94T9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233205AbiB1HMG (ORCPT + 99 others); Mon, 28 Feb 2022 02:12:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231732AbiB1HMF (ORCPT ); Mon, 28 Feb 2022 02:12:05 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 803C8673F1 for ; Sun, 27 Feb 2022 23:11:27 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id q11so9915601pln.11 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=u6N/HxlSFoahDZhUc9LKzzrE5vYu3/BGJVrz2mByvYeJqCy2cQONdk5sbgB+JaDmZ1 5aN1cL5NRFgSL135111JLjUYspwVRLWAcrS9vwK0FHT7f88uwViUvx4Yc6ZsdGG0qk6S I7p6+1aRWN52oUd/CBIr1ePJBC3O+2VWt19ZR+TVmyCiiSXiWtHgEoTveyUoPeNeMqnT tfk+YuqucLwweYeW+3HKMKWG2KvfDfU1U1bVpOIjSQnTAqHnpPRyCAGWBGUrHQDmGTaw 9j3U7GngVydWXDTJNnUaEdpeCGJSnVVbdiYSDuSwXm0uF+vSOURShpFB7VfvjmcBldpr BhkQ== X-Gm-Message-State: AOAM531yBa/Zd7dpVI/G8zNcWLPNtZ8SGyqbbZlXOoQZzTl2GD630zG0 85onkWh6RsFJSmluc8g5eshyzg== 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.11.0