From patchwork Tue Nov 29 22:50:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sidhartha Kumar X-Patchwork-Id: 2396 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp607498wrr; Tue, 29 Nov 2022 14:52:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf5iDTk5DsbqyYHpKQ0sZBCm5j2lGm5ZaiNnOXtzFC94z+whigzgmkLOQR9IOrUfPWtU00/z X-Received: by 2002:a17:90a:df93:b0:219:427b:69d7 with SMTP id p19-20020a17090adf9300b00219427b69d7mr9800087pjv.155.1669762351627; Tue, 29 Nov 2022 14:52:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669762351; cv=pass; d=google.com; s=arc-20160816; b=mN7mmLbhcQRZyrRWs7GBFsTKU7FLa6Ls6kkvbujDcL68yjUOIiUGOk4U6levmHcd6f isekLRONiLcF3ncWQvG1zcBkLZ52EqFeBc0ZqKbbRmHn6g/XiR4jGIhLmvpixjN7w0Gp OG+T4K5kudm1AU6J0vXVf/pVFJvuBOHQyZbrlEiJ5YZ5XBLlXbYEdpydhOnOYcmUC+R+ toiKyT3e7E8j1wmlErVCTpZ1pGm04LJ0W8BOEGSI0RwtAIjFlkIUxVyB0lnm03JvO5so dABZjb1Eja6bbLDfHsrhKhCofRk/E/tk04VfUJzu+TEHMbrBj+0q2dRrWRqy0bxt9ZRD 5E/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=HiiG3J/GVSoLp28/YcrN8mjUJVKd0uyNf+t/IRvxyY0=; b=RiIONh2zRsaaee65kIt5rkTKYaKMPhmsDYIaRNJvf2BZ6PyVSJX9nc9cznd6IAD+1x TZgio9LD3ORGWhFBjUFsZXlFYgxo5DNXTwxnu52oEJnDw/6HgOUAkZmmTG7UjCa4Rm5t CQR3ARoRyU6gV6J5nkFhf++vi0KZPBjLHCAUpX7zfDK8vxcsagem7VvCRlCDc01Y79l7 rm/2CQBnDiNLmO4NCMT4qHUJ+kcbfv71/LGoE7QgefbQjJs61ylzhYBTIh64xxaQ2t0w ix9w94DkD3lXZBbgulaNCMl6f/Z3zaR3v9NMrrBd/vCyNKFxhSrR0krWiLPHuHHChho6 2jbg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=BhDMfG1H; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=RbH7F5YU; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j33-20020a632321000000b00477e283d9b1si12868791pgj.430.2022.11.29.14.52.18; Tue, 29 Nov 2022 14:52:31 -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=@oracle.com header.s=corp-2022-7-12 header.b=BhDMfG1H; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=RbH7F5YU; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236950AbiK2WvW (ORCPT + 99 others); Tue, 29 Nov 2022 17:51:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236645AbiK2WvL (ORCPT ); Tue, 29 Nov 2022 17:51:11 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A3CD70DED for ; Tue, 29 Nov 2022 14:51:11 -0800 (PST) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2ATMDe6p030080; Tue, 29 Nov 2022 22:50:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : content-type : mime-version; s=corp-2022-7-12; bh=HiiG3J/GVSoLp28/YcrN8mjUJVKd0uyNf+t/IRvxyY0=; b=BhDMfG1H0BcD6o5oS443dVhTbSYNb7gEHPSWW4rDxgDThL6S6uGfD0DzyDtgLb5qqhks WweCm+Q/SIklVu1b7ediXgTyDgXB2xGB8QWxU9nuXVN3/8iS8ap1vRLOemFO2+EWTf+l NlCqFKE/aP2qQLGAq7dS3CsvsrN1sydkMb+hblQBmCAJi0Y7azJZkx9ANSKuk9mTSciH 0lX3kDaecw6KFdyDsVcEe1mQ66yPpU9pQZJ8i2DY4Jevq70QwSR0r2k7+QO9LHcAKrz0 tDp1Ixqm0yPOFcQ4tAVC2VxOWTxX9H7hG/2bNGisjpE3PoOsz668SWRIoVzXdEXK5X3T 0g== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3m3adt8g2e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 29 Nov 2022 22:50:46 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2ATLF0FG027905; Tue, 29 Nov 2022 22:50:45 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2171.outbound.protection.outlook.com [104.47.57.171]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3m39881gmu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 29 Nov 2022 22:50:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Lk9uL+imiJ4hBF+hUMhqcfvWUdDGNi7gZoQiSnvzv50VgJ5dN63TXahHDxkNFvmeAnyW5/JqkJ8S+vA9G9ogHL2pXXB4D28ECtLlNpe5hUx6NtZt1wIDGbyEqlvrQVO8uYKkR2XJSe0QdjMW86HOPI990+p223eMjApaliza+gG2a0gC7FC4IbqGX5T1QlQYSzJvUNUY49CDaDW21x4ZiAAz6GOIKqOsiyxOuedmTaPRtwPy8T/ieVN7nUbvkJ5iIzDwY+IhW/MapOj75FTSacteXP5+OjBQSMEDNlFelM6dVWGvmQNh1gVCiXPa+WwH4UWNmGWOMiCvQ96uFN06IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HiiG3J/GVSoLp28/YcrN8mjUJVKd0uyNf+t/IRvxyY0=; b=lxLCJFIOMuIa8vFJrnx1faUmF5c005uf2hYCf2WJRG2xqSNK5XdVlpzTJu8CWryBdgNhiuIcWPEK+n91JEcJHMNbtcZ9/1FnUuFvuCSdEe134O2QE3pHIU598F6O5FlYdw8+jWoUEL/wrej23LGe865BCIEG/DBrpDQFqK5g04fv6nkV49S2O/F70VP29nIUdbQWnWSTnD6OicHkDII9ARZ4AjMG5gnybUhwN/Hlf8LQedX9ngMyxzoqk8Ob5DO5DlVOF1QDFPwKCi2ZpO+iP8qjUOcZSBsMVFq67GpA+41NuJ2VCh0MLsOMmKeaqGY1/OW3fOGQCd8PAwLnJpX/dQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HiiG3J/GVSoLp28/YcrN8mjUJVKd0uyNf+t/IRvxyY0=; b=RbH7F5YUDONfl2MhrPkM8zJZGwXjrtfC/Sx5QDplykprX1yJXdkzeInwNwT5MTwIk2wzVBw92si6tZLiPLI0SNHWqxxLr4nuPCv5aXpxIP9l+39Vjvt46ueKUM6B17qq7Oj2SVlKq2kBf6yPanUYICFZftOUALcOCs6vbeoeOMk= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by CO6PR10MB5586.namprd10.prod.outlook.com (2603:10b6:303:145::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.23; Tue, 29 Nov 2022 22:50:43 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::3702:7db0:8917:9954]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::3702:7db0:8917:9954%5]) with mapi id 15.20.5857.023; Tue, 29 Nov 2022 22:50:43 +0000 From: Sidhartha Kumar To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: akpm@linux-foundation.org, songmuchun@bytedance.com, mike.kravetz@oracle.com, willy@infradead.org, almasrymina@google.com, linmiaohe@huawei.com, hughd@google.com, tsahu@linux.ibm.com, jhubbard@nvidia.com, david@redhat.com, Sidhartha Kumar Subject: [PATCH mm-unstable v5 00/10] convert core hugetlb functions to folios Date: Tue, 29 Nov 2022 14:50:29 -0800 Message-Id: <20221129225039.82257-1-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.38.1 X-ClientProxiedBy: CH0PR04CA0012.namprd04.prod.outlook.com (2603:10b6:610:76::17) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|CO6PR10MB5586:EE_ X-MS-Office365-Filtering-Correlation-Id: 13051708-8fe0-4ac2-536a-08dad25c2528 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JuVQa6f8uAGkn3MYZO9Mg7eml236//flKN76Ds0m86KCOhPFVucSRDi3RfMLWYDLiZWs5suUni86TcMza41eNeUlZIz53Md6W6J0oL+zExya+vTZNZYnNYfxU2HmpaED3Hr6TisotS416vL/5Wbthx4NKTSw523a/GMObv97eaAP2C42ga/ourMINe46Hk3TY9hz8MCz0uWcQ/jFDvM+2+atCu/Gu4IS/W6ewEZPRylFAn4iWl3V01rD6q8LpQ6O58XiYEwXIAZ9Yj/viSEnoFb+abx49OSgyOUcjmjrj5yS+rAJdlzw7Ozc/2rxZum0ln0SxdiApgE7hA2R0cHw/JNwo1oL9AOSS8EW3+zangTD8cBS7pPIeR5hFKMphRC7fCd1lkToFy2k3wWe/41IJPcX5wh7W9Ab6yYPN5U3Rh6EHDelBvJCJ2PNjvrduHzfwrXnyQ7sKCFXd7kmBg6iNnimQEdu/H+gfbBTiwjHw28cMW73Eswv1Sa7UGL/LXFWXWiBfBoy+bCbDPAGZt+aGrvfsTXgps4VmvEfVS4ZM33WzLdUeY5z8hy5Jp28U2CVe4VAWoG3ewE/4SP797GSmktanhbeexoIPit4zBayOdFARaubRCJXA0dqaQGakmAl3L7xgTAv0uxyF2mZjvLgPfK3P1UajaxdBaEk/ZT3MP8t/7vM3bRAOpeh8NWX8gYUt8+ORtanfyM/tH6hMh7BMg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH0PR10MB5113.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(376002)(346002)(366004)(39860400002)(136003)(396003)(451199015)(66899015)(2906002)(2616005)(6486002)(966005)(186003)(41300700001)(1076003)(478600001)(36756003)(6512007)(86362001)(26005)(7416002)(83380400001)(38100700002)(6506007)(8676002)(66556008)(66476007)(4326008)(6666004)(107886003)(44832011)(316002)(66946007)(5660300002)(8936002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BM6bWlZWyzXNM19r9OVsk4BQXnVZL+kbVu5M/5G0DKZGUA7cb1dl8+VK7Nua/QUsj0p+QQj4SeuVHI0Lft7wEiixg1EAO6AyAjtYVGg8Y29hzmu5/ewOgLFEyGuFBGe84Ou4ib07RthuHrCq+vNRXmPeT1U7/VXWdFN+bLqxGalcu3GdlR7Dh2aUxY8b1pC4e3fCdQzXr2gkJbulhaRnSprQDelTLy1EZO+0wzt58p37+PLOU/jJYtdYKDPK9pGbz+bbNTmnqtoiVgL8kINCUDhIimQLxwX+84exB2YtW4MuHR94tZdie3bUWg89ikA/RRpCZ4FKfmZ9kM/63o9e18O8GwwWeA1xr3QvzGsx2mY9ddF/fMk00/P4omupptYFjP6HM9JHQnaAb2yIVOiyTMHUnh7ioB+zoOxc+WoFQW2C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6HvJ6y2EjG4STsk/Mwei3vf2zl0BIa9PFO2hv0604InnWWxXqT6U22weENgamG66w7Mv4mtG9AcWzNt3/jqwsUargFvDyQLdzfDqf4GroUKI9f/PRau5rYFYK9pK0PIqk5zSAkRw6QOcsg3tubwHlLKDcXnaU58BY6JfcBVoAyPxCw7rtKEaUZXJEmrjrL4RPo/LvklGpHpxd8XOES3vQ+DDc1pvC2H8WFUlTw= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 13051708-8fe0-4ac2-536a-08dad25c2528 X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2022 22:50:42.9507 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sCjz3OxyuHlx8PbSIsNIJVqtPQYklzwF90+PR/TdxMNpvibHhLTgNiA1m0IfCoYFF+U+1q5YeSWY91Raq5Yuhd8iu4H5MlOEiHWZLoO4hhg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR10MB5586 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-29_13,2022-11-29_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 phishscore=0 mlxscore=0 spamscore=0 adultscore=0 malwarescore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211290137 X-Proofpoint-ORIG-GUID: fm3GYYD92o_Ps7zkhT21VltKmBZIRht5 X-Proofpoint-GUID: fm3GYYD92o_Ps7zkhT21VltKmBZIRht5 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750872727568105041?= X-GMAIL-MSGID: =?utf-8?q?1750872727568105041?= ============== OVERVIEW =========================== Now that many hugetlb helper functions that deal with hugetlb specific flags[1] and hugetlb cgroups[2] are converted to folios, higher level allocation, prep, and freeing functions within hugetlb can also be converted to operate in folios. Patch 1 of this series implements the wrapper functions around setting the compound destructor and compound order for a folio. Besides the user added in patch 1, patch 2 and patch 9 also use these helper functions. Patches 2-10 convert the higher level hugetlb functions to folios. ============== TESTING =========================== LTP: Ran 10 back to back rounds of the LTP hugetlb test suite. Gigantic Huge Pages: Test allocation and freeing via hugeadm commands: hugeadm --pool-pages-min 1GB:10 hugeadm --pool-pages-min 1GB:0 Demote: Demote 1 1GB hugepages to 512 2MB hugepages echo 1 > /sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages echo 1 > /sys/kernel/mm/hugepages/hugepages-1048576kB/demote cat /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages # 512 cat /sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages # 0 Rebased on 10/29/2022 mm-unstable [1] https://lore.kernel.org/lkml/20220922154207.1575343-1-sidhartha.kumar@oracle.com/ [2] https://lore.kernel.org/linux-mm/20221101223059.460937-1-sidhartha.kumar@oracle.com/ v1 -> v2: - fix conflict with "mm,thp,rmap: simplify compound page mapcount handling" v2 -> v3: - v2 contained wrong version of patch 1 v3 -> v4: - change instances of folio_{clear, set}_head() to __folio_{clear, set}_head() - rebase on top of hugetlb: Fix __prep_compound_gigantic_page page flag setting v4 -> v5: - change comment with HPageVmemmapOptimized to hugetlb_vmemmap_optimized per Tarun Sahu - fix Smatch warning in patch 10 by reorganizing alloc_pool_huge_page - fix NULL pointer dereference issue in patch 10 per John Hubbard - use NULL rather than 0 in patch 6 per David Hildenbrand Sidhartha Kumar (10): mm: add folio dtor and order setter functions mm/hugetlb: convert destroy_compound_gigantic_page() to folios mm/hugetlb: convert dissolve_free_huge_page() to folios mm/hugetlb: convert remove_hugetlb_page() to folios mm/hugetlb: convert update_and_free_page() to folios mm/hugetlb: convert add_hugetlb_page() to folios and add hugetlb_cma_folio() mm/hugetlb: convert enqueue_huge_page() to folios mm/hugetlb: convert free_gigantic_page() to folios mm/hugetlb: convert hugetlb prep functions to folios mm/hugetlb: change hugetlb allocation functions to return a folio include/linux/mm.h | 16 ++ mm/hugetlb.c | 409 ++++++++++++++++++++++----------------------- 2 files changed, 219 insertions(+), 206 deletions(-)