Message ID | 20211112150824.11028-1-joao.m.martins@oracle.com (mailing list archive) |
---|---|
Headers | show
Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72F3A2C8E for <nvdimm@lists.linux.dev>; Fri, 12 Nov 2021 15:09:28 +0000 (UTC) Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1ACESmW3007211; Fri, 12 Nov 2021 15:09:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : content-type : mime-version; s=corp-2021-07-09; bh=hvgB5mDweR/VBfiQqOnVjCs4R/lJvlvNs8vNJke0JvY=; b=K8gvcO+ndN6saHACAx8FW0Id6PiwHUbOcAzt9kqkDCv7XAGIiRlh1KZ+50NYykS3UMcn +Ogb2WejDakJxJc7G1VAkCJYbB2t2N3udoda5o6hrAHXD8n/SkWhz2jw8H+3Z4A1FJKn o6uzDI6NHA4wU3d3nb9fGaOv/2efZG4qALxeiV52rNhne+gQ0J4tqazKexl7vArI4a1U whEeH2aRD/Cml0V1PTVWZdeIn0iMIqafqyqO/FDiW4mVPH8hacwcxckx0rdQNuO9MpWz uxCmY1J4R2kyyCCPWwWuJTFjW5dGzzWbsm8sud4232JA2VOlsD2OTea5wpk4p8OTdc9h +Q== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3c9gvs2fbn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 Nov 2021 15:09:00 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 1ACF6DqJ094521; Fri, 12 Nov 2021 15:08:59 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1anam02lp2045.outbound.protection.outlook.com [104.47.57.45]) by aserp3030.oracle.com with ESMTP id 3c5frjhvs8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 Nov 2021 15:08:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D5riX09NsQuSGB/6NhPxqtBe3YObcQOgoUtbzKydMYLHDiOKul85PKSC0r8Sjht51kpZAcaaznbZW6OFqr+tgm/lF3unwFbsMq2mPq/HRzme5oTIa0gw14kvlYg5/qVI7zH1AkxtGgMIcL/wjxWAuS6/E3W3YUumDJvxuJ6LihcklnBLHGjdSUYE3WqI6n3fUQaQxT1dKOjHhxIvxeVGge0F4R+BIhTfeITZuZM39KDB/B0mLTCzZr8U/nAw4/6O5cDkllojTzqCMWnpz7zwnHB0K4IIqk8RuJ8GxV+nO67ERozHrfVjh5RwqzANXHGS82WWrsyWzrhwHxAHtrOFUg== 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=hvgB5mDweR/VBfiQqOnVjCs4R/lJvlvNs8vNJke0JvY=; b=F57wtMAdB7YYPcXfcCHw9Ajqit/JZPGtntRtQz/4fDomIrmRBroOVIQtjy0ciJTwnynU/B223Fa3/kH73pgB9mbKc9vVtznopBq+C/SJiZz8kXB3ZlCx/44FfYrfT2/iIct7WazYgxCBSGROg0YuNkjSwaJhGiRArL6CVhY7NXqAdDaujypEbvcuFmpgLeb2gjSXps6vZrWuCm8yw6nnz4td7ASTj/fxNZFXOwSDindXn4eUQmgadyv94nvM9QZRidYIBoV1k8yVpSWEquwoU1/W/xLr8Tva4gLvaMYubt9VLK1wqVvgMqe/dGACFZzOsJI9SDzJtpOPlGQG0KHUUg== 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=hvgB5mDweR/VBfiQqOnVjCs4R/lJvlvNs8vNJke0JvY=; b=tyLA9bgGTR8PuHRlvBHs305sjNVbUhLQKSachpvFHwjPVhlXry39uaFUpz/1yfKc1ptQI5+9lV/luyJ+GvTfVkHrWQkS32j5Tyk6EXouvEL5UegDo67ugE4k6ZF3vSUb8EXGO4qGabrd60pAL8oMZO4IKP/WV2Q4iYWSHp4rgoE= Authentication-Results: kvack.org; dkim=none (message not signed) header.d=none;kvack.org; dmarc=none action=none header.from=oracle.com; Received: from BLAPR10MB4835.namprd10.prod.outlook.com (2603:10b6:208:331::11) by MN2PR10MB4223.namprd10.prod.outlook.com (2603:10b6:208:1dd::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.17; Fri, 12 Nov 2021 15:08:57 +0000 Received: from BLAPR10MB4835.namprd10.prod.outlook.com ([fe80::d809:9016:4511:2bc6]) by BLAPR10MB4835.namprd10.prod.outlook.com ([fe80::d809:9016:4511:2bc6%8]) with mapi id 15.20.4669.016; Fri, 12 Nov 2021 15:08:57 +0000 From: Joao Martins <joao.m.martins@oracle.com> To: linux-mm@kvack.org Cc: Dan Williams <dan.j.williams@intel.com>, Vishal Verma <vishal.l.verma@intel.com>, Dave Jiang <dave.jiang@intel.com>, Naoya Horiguchi <naoya.horiguchi@nec.com>, Matthew Wilcox <willy@infradead.org>, Jason Gunthorpe <jgg@ziepe.ca>, John Hubbard <jhubbard@nvidia.com>, Jane Chu <jane.chu@oracle.com>, Muchun Song <songmuchun@bytedance.com>, Mike Kravetz <mike.kravetz@oracle.com>, Andrew Morton <akpm@linux-foundation.org>, Jonathan Corbet <corbet@lwn.net>, Christoph Hellwig <hch@lst.de>, nvdimm@lists.linux.dev, linux-doc@vger.kernel.org, Joao Martins <joao.m.martins@oracle.com> Subject: [PATCH v5 0/8] mm, dax: Introduce compound pages in devmap Date: Fri, 12 Nov 2021 16:08:16 +0100 Message-Id: <20211112150824.11028-1-joao.m.martins@oracle.com> X-Mailer: git-send-email 2.11.0 Content-Type: text/plain X-ClientProxiedBy: AM3PR07CA0134.eurprd07.prod.outlook.com (2603:10a6:207:8::20) To BLAPR10MB4835.namprd10.prod.outlook.com (2603:10b6:208:331::11) Precedence: bulk X-Mailing-List: nvdimm@lists.linux.dev List-Id: <nvdimm.lists.linux.dev> List-Subscribe: <mailto:nvdimm+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:nvdimm+unsubscribe@lists.linux.dev> MIME-Version: 1.0 Received: from paddy.uk.oracle.com (138.3.204.9) by AM3PR07CA0134.eurprd07.prod.outlook.com (2603:10a6:207:8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4690.12 via Frontend Transport; Fri, 12 Nov 2021 15:08:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 86e87a45-788f-400c-22cd-08d9a5ee594c X-MS-TrafficTypeDiagnostic: MN2PR10MB4223: X-Microsoft-Antispam-PRVS: <MN2PR10MB42234FCBF6E2DBC84D7D019BBB959@MN2PR10MB4223.namprd10.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:1107; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VjFP9TRqlTfS93dktC4ivjl9AT/+dV1sjDfeZPWVrEsstqe/2IphwT6FAqnfGp+/b8Zujxhmf7GoRrvSJ0BXI0Zc/FUd3F02Vq3LwDb67tz2FZT+RJfY3JWstZKVpa87EfxwDbAA8z11xL46C6F7Q3/fVDXGvQcS0ZIWCuccLKpW0HY1TEt4yynzptW/XVvaBJNOttwWkixfgS6yOnL1bN/CJkCk4Bu7Bf8s+Lw7DD6Odk7FWO/IV/DF7D35ZK7vjCp7EtGn5gDxAiBWdS1YZA3okhZhxQe70JzUAjelY2uYldjBCORjyYNcLSd3qAJws3wTIvpNwTNjVUk+0YyIQnLQDldciJ9lQLY1lL1FKMI2dvZea7+x2ffEsTXrXnwjKMutgFOUD6k2T+ldLhRyqaFh2QjYh03ZnvOYa8Tggb2YDW6CuNhn07xbui6duModoHHDoHL5NdwD2Klj7/FQj8/46px775m7Gt2+wz/iQ/VZRuhkxsD1kL8UB0wu29TiP9nhJFAsLNZ2lojXjg9QpCeOSxdF682s15PoenvLMzUOrQI3Q2F3pLvbS4mjLH59Voo5BOHyFIOjc9Xi2RKNAMvWS7Qnw1iEwBQctOe812e+EA5OLgljCnBnz5PdQznNXlhuv8WzaDUesPnzCr6WmQh1gOJkw3fb8bmxuonFGZJMw0O94sCFraRr5IzgbeHBgWtXPWO51SYI74gCTZ0hvPojMEOCewH3ZwNBcmC5/NQj0I/LNQbiUrf/YoID4g7D0/Kye/945WDspBkp9Lkw0gZD7XG5pZywuSKfGUUZWbn6mvLx+nuGiktWeo+D2K1UrtFd04ge9ep2OvvccYDRCw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BLAPR10MB4835.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(7696005)(5660300002)(2616005)(107886003)(2906002)(38350700002)(38100700002)(66946007)(6916009)(6486002)(66476007)(54906003)(1076003)(66556008)(6666004)(52116002)(4326008)(8936002)(966005)(86362001)(36756003)(103116003)(30864003)(186003)(316002)(26005)(956004)(83380400001)(508600001)(8676002)(7416002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZkEr+PzzP5Q6lISCijFj//SbIkJ5Xm/DvxdljGuCDRegcckcd8AZR/w1hoi6rEWIx0TSitKvXdUbaq759M+9K+D9Cjp77Q25MIpRIIOIGeMl6gkUQSadfYYTapTLdF4CidibyphM/CFRB9I8hliyiDLKuWdGh/HkwzY5L0barc1Fpgz7+kcKYJ+yytT25U83o9X/IUUicKD8CoeTjbdJjymdE2EuiWBaqk4TrEnViYlALyI7AOtx5oSdJvbj97b1/E1tNinzwvDdcZr7sfs/OBPtOqBOoAEqdazQx6XDDhZ60He1UZev5mEA7yeMgvLxnpybgFovp/QtvljRHOiunSVsUVnY/tAG7T1Yoz9xyLcRvaKxQRhLZVD6Pnmj356Az54EVOUGAEkNg41p/XC2alLYn9u2oVoCh3M5+Vw5nsOBxwkElifhjVLL9LY3nO4HqqQO7OPRc9ryOaayqItGZHKAyakIxtM6VINEXlahCGY0lldn84zDG5UVEGIDifL/qlCyb1G9VVBO3tFyKKR9zA2B3aJirltGhERs99Xml+elxMhhrkCSg8cJiEgjsnFXtsmXE1pJSW72KfzOiLV4wCR5XeZXPrFAiyBrY0tXlfPTBgyXESffsZ3NHDj/3y0q/m3SWWDu33FEHR6Cnr7mtp1UMdRKU30AzoNIiSeP5iq+Y9BmYlDsWqf3dStIHxoQJkvspy5Vo0f2b3ONeEnw7Kzv61lMccXx1EPCUQLr7nfxBbJJNwndSnqhSkPiN7P+alF83fxwrsjZbHzesH3ROjtRRz76j/RMqcQn4jfNt9b8rxsyvApMCeQ+uO6tOnLvyl+WP9e04kDrF0UFKCr5+0yeQ5ZHzfoXoBVOVR90mBJ2Mx/Dq9W78g26GoU1JIYP7OuWk+As5lWWA2YTHbUaSmridT5/kaQVKwUnxIwW6Dsv2upLCEa5Tcm78dz+TdcLIwsz4/WVJxWwqf94iGX1oL7RCgdjtwX9rrnvPDIV/4XiymPiMKxw3LvwfXaUXf6sCDva6h1D1cEG8Pwim+D+nRmjSwmuxjRMJN7HNFCYxmT/L0LWmBU5m0P11opgHHVlPBH8Lb2wd9DpiITfXJ9X7N7iT1kMcU4oCUcfSk/qh2FODNrUTEF2VktRxLIaX1hTMGMo4oi8IBZCdkqmtCMKEGA5Z3D3u7TVcbAX043TCdUkk5saxifxHUQuBjjwCLw3uXnYlvUb3AU+GKK3g4smPG//ZB5m7cv+2i9YrLc8WQm5F9PtHhIz9bHtHdHqqUvQp6o7m/q5vQ8eZGHYRLrzUx8s1jlz9l5eyBWiUnOed3KZMH400qBp0THLiAYBEbw273/AwMbazYmJba7ECdRytfkFbWr1E0OVIIAuE9eCjZ87g7qhgiqVq1xh96Jfm7hlRT2Z1gjgs1RtILPGprlSnCqw53dYJf/TRIxzbLo/Id2ofDmGynZvxFTqyrfKUbBrn8FlEmzhC/ilXFEHzSqSGDvKjrK+SZ21EhI7cGUQms6B2Or8nzzpNG+VjhQRG1dyncrYi+twoRrXOb94oJzvcSrhE5Yr8QU8KdhtwiPeMqxFZGjoQwFZI+k4w5tzcOhdiNpqITBV3m1HK77AsDslCcbAtAiJZxyH+ImFJYio8zs8pExoaorVvTjmGOR583w1NFfWSAGj+pj8kJZr6cWInA== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 86e87a45-788f-400c-22cd-08d9a5ee594c X-MS-Exchange-CrossTenant-AuthSource: BLAPR10MB4835.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Nov 2021 15:08:57.3316 (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: I/I7R9+khnMq+zuRf1agE3MjbxgcCN+WS5gT4DpMg4hJSYEwvR1j0KCDWCXBKnNPcntJVtE9hxXtaoDeFGFEy9W59sh3S6YX7MLhgDuQCZA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR10MB4223 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10165 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 mlxscore=0 suspectscore=0 bulkscore=0 spamscore=0 phishscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2111120087 X-Proofpoint-GUID: UXa9pUirXTS_E6STJ5MQUG9VZKqw4H2z X-Proofpoint-ORIG-GUID: UXa9pUirXTS_E6STJ5MQUG9VZKqw4H2z |
Series |
mm, dax: Introduce compound pages in devmap
|
expand
|
On Fri, Nov 12, 2021 at 04:08:16PM +0100, Joao Martins wrote: > This series converts device-dax to use compound pages, and moves away from the > 'struct page per basepage on PMD/PUD' that is done today. Doing so, unlocks a > few noticeable improvements on unpin_user_pages() and makes device-dax+altmap case > 4x times faster in pinning (numbers below and in last patch). I like it - aside from performance this series is important to clean up the ZONE_DEVICE refcounting mess as it means that only fsdax will be installing tail pages as PMD entries. Thanks, Jason
On 11/12/21 16:40, Jason Gunthorpe wrote: > On Fri, Nov 12, 2021 at 04:08:16PM +0100, Joao Martins wrote: > >> This series converts device-dax to use compound pages, and moves away from the >> 'struct page per basepage on PMD/PUD' that is done today. Doing so, unlocks a >> few noticeable improvements on unpin_user_pages() and makes device-dax+altmap case >> 4x times faster in pinning (numbers below and in last patch). > > I like it - aside from performance this series is important to clean > up the ZONE_DEVICE refcounting mess as it means that only fsdax will > be installing tail pages as PMD entries. > Yes, indeed. I should have emphasized that more in the cover letter. Will fix for v6 (if there's a new respin). > Thanks, > Jason >