Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4584784ioa; Wed, 27 Apr 2022 07:00:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlrd0SsRDlrRfxZIeqYXFYFCYtyi/yRQtQ0DtLG9/v/D9Y61rTX0J0AefV4jUBzcmBGwjR X-Received: by 2002:a05:6602:398b:b0:657:ab5a:ce2a with SMTP id bw11-20020a056602398b00b00657ab5ace2amr3030095iob.78.1651068047526; Wed, 27 Apr 2022 07:00:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1651068047; cv=pass; d=google.com; s=arc-20160816; b=bSSf3Sb1VWeLc9B2bKRVvuRl+IudQFBpQkPmIb5DjaKXS/B1c8cn6peLkgG+tE1v6D 7OB4VSiaK+eueTi4Qai+H4AelnR5GD2+bSPfKFKlIkzuFtHd/Bskl6PZBawebhBJjgNd E6X7RmVitHY/3jYJzm16MrVcYDM43jstpzbFFQ86Mug5Q7zCot7qmUQWMfxTy8FrxZ4U upg4OTbh6QLErfvkIpv2y23UzNtFZm5ISCRHD+3JeWLaHB+iKJi+BbNDMTeBXxN9Wu9B D4rmaDE5cqbCTSNMKifrSTOODrjazCNfvFL2zgTHtWgTOwW5t/IL0i2uHFNNxg2xaA7d pzbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=AF08QgFJ+b3+2ughpEGnkgzgCAGM2cMpZLowjOWHwwM=; b=CPG6rDyeC2KOv+h8IsGq0qbL/T9GSglwqtmlCmQatG7PCqoWyEjNp1eieK4EIKRKmU 2ESFs28SFp064UMBnKqetw7MhJBDrNDRWeUSoLw6gOCtkocabWxygchWob+WlxdfuH7Z LL2HUDh7FHuQ8/D07TeXtPssAKLwUUeLo8NYKsgI4rVrtqWqhQpUxOJ4ly9PfrUFh7tM jVU/+8Z9f3HddYD0uOwKtGV0Bfglz6PAvCZaMW73U8k3flzkRmkoRdREKd2vxc5XXnVu DWKJuYeRMNBcBAsEbNEihqUVTl7fPJ44sceUd0y7HmKiXOt8RnXkk/k5toYi6yYiZG44 ztkg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=S7TGHpyZ; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r8-20020a5d9b88000000b0064c57855f10si803190iom.52.2022.04.27.07.00.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 07:00:47 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=S7TGHpyZ; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BA9F147AE3; Wed, 27 Apr 2022 06:31:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236227AbiD0NeN (ORCPT + 99 others); Wed, 27 Apr 2022 09:34:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236131AbiD0Nd5 (ORCPT ); Wed, 27 Apr 2022 09:33:57 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2072.outbound.protection.outlook.com [40.107.223.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C27E47ACA for ; Wed, 27 Apr 2022 06:30:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MC0+hB1cwyX64i1jFmuhzkqcWYGvu863CUkuUx+QEtzBcsoxX6R/7H7ybosXpDBrHt4nC2d9XED7w2fgwouX2f8lnDCDD/hd/IJiw0ad2GqN0JTQc9hu3vvlXx13EO7PHyWVn4Mb40mgfG/eX/tFjKSnQ0zAaBi0fxjhKJ0ubkRamqI9Uz6tG9dnMiTPMc+MCdIcE5AG98+ijugWz42H3NLMXNxERf2tgkshlMIjef6m3cZqFMwAPkW0pFIOgjmDBX1Nbt3DTF6xETtogWzUVfncVUXhN/8jGKjVXP0RFvVUlC4FUdvZp4+Lbm50oyQ/YVpj9YsyRRm+TCjJ+iKjJw== 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=AF08QgFJ+b3+2ughpEGnkgzgCAGM2cMpZLowjOWHwwM=; b=G2JauI/Il7hO4C4kyUyKP0Uh/QDgKi+wSd35iy1M05yh1J9KXX7L/S1sIdjc81j7cjkGOOM6qWWM+cjtIUsugSd8spPp4kzUQnznel2YGuGXTz7R4uu98Kw/hKYZK1SsRyM3MB6NwBCdeM86MZP3loHuzSDDPjCxgrXz4aDrR4uS2tcG/mD7HMJKBM/wXmxJrSiUtqxwM70t25jukAD2l0I86dH53Ax3kJXiGYk8iGhz8DKcLA/U6JmEaK9Od6Ohs81FMhBvMURgc66h0c00oyQyDxKFWj0LLexht401VlIAFpuKMbEHC8wk6yaBIgViSkFxv61XJCUtXzl2Rf+nEw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AF08QgFJ+b3+2ughpEGnkgzgCAGM2cMpZLowjOWHwwM=; b=S7TGHpyZapMsw9CtZjN8egmCnL1Z+I+B6oagMCig2dgW2wnc1gRirWc3di+r2Zw6m0uwZwnddwgMtVlVF5Ks0DI6hLb7h0CTidRcTFKShC9bW+VzxB4dYBByZJSTL8q0hphPxvx+J+psDrcnbrmv3KJ0TK5LuvvEW7n49eAjNmpNket1jOr+Z4RiLQ5xiYXBCY/19mAZlfHoTsZXzVk2fHBeAQLyydV2plhfVTRfWokbRPB18I0v5vVOPfR6ooG/ENGHPTlMvGLXCnHWezFHHjoa+jSNMpU4My0HZN5y/al7aUxNVbGROm4nR8A3IpYBNiyDCVqVo00QJRNT5g5y+w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB3823.namprd12.prod.outlook.com (2603:10b6:208:168::26) by MN2PR12MB3008.namprd12.prod.outlook.com (2603:10b6:208:c8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.13; Wed, 27 Apr 2022 13:30:43 +0000 Received: from MN2PR12MB3823.namprd12.prod.outlook.com ([fe80::920:970d:6f94:1f10]) by MN2PR12MB3823.namprd12.prod.outlook.com ([fe80::920:970d:6f94:1f10%4]) with mapi id 15.20.5206.013; Wed, 27 Apr 2022 13:30:43 +0000 From: Zi Yan To: Qian Cai Cc: David Hildenbrand , linux-mm@kvack.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Vlastimil Babka , Mel Gorman , Eric Ren , Mike Rapoport , Oscar Salvador , Christophe Leroy , Andrew Morton Subject: Re: [PATCH v11 0/6] Use pageblock_order for cma and alloc_contig_range alignment. Date: Wed, 27 Apr 2022 09:30:41 -0400 X-Mailer: MailMate (1.14r5870) Message-ID: <1D88AE1B-4DFC-400F-A054-662E3824C9AF@nvidia.com> In-Reply-To: <20220427132720.GC71@qian> References: <20220425143118.2850746-1-zi.yan@sent.com> <20220426201855.GA1014@qian> <20220426210801.GA1038@qian> <2B9844C8-6D35-41E2-ACB2-9854E7A9C29F@nvidia.com> <20220427132720.GC71@qian> Content-Type: multipart/signed; boundary="=_MailMate_0AB0F1C2-2034-487C-BA7A-581A3A5B18CC_="; micalg=pgp-sha512; protocol="application/pgp-signature" X-ClientProxiedBy: BL1PR13CA0396.namprd13.prod.outlook.com (2603:10b6:208:2c2::11) To MN2PR12MB3823.namprd12.prod.outlook.com (2603:10b6:208:168::26) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: afef5d9f-f250-4d62-7282-08da28522116 X-MS-TrafficTypeDiagnostic: MN2PR12MB3008:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UUBFljBLbkyW1kyfP/tq6x27beLYf17yRA7BVMG2QEPKTZ0cGFnAd0/92iNofh1LFbKhl/PefiL5LJqi7SXboeJ05cPFz2q1R2BzXXcpAjTHVwBl3/k5lR2jaq+b0nOA/WiV8WSoOyGvIz2yA3uRpJjMkmoKiwNZb3+s78OPh/4dp/9Ffki6HbeqowE3TA/EAqaUwlXlV7ByaLT4NrFu67Ea3PGKoQCpSo4G75ooOU14QZ/y8B/ko4JywXiBp88ZrhThwRisfMoXV9NxAt7ofQzbSjRXbropMHPbADoSJClVXRjmL4QaeAriapyIVDs0AR2q0jX77OLAc7tMOff9oCgnhZa0FQQiVGfyqsVxbZv1qO5eyTz/x524eGE6BvTD+Op87P9skobfwXuzfS5rWPrFAvBcwOSxLQ1f/tNcR2Hsjy23kas1lHqnhNzvk1k1U/puKoJVa+ywWBQ+1WUQM7cZOEhEW1q0oR9IAI0oMmZo+Y+RgoXdNpTGFfzSdkO0G0pIfivxoYenLt+vYCnLufTS8RTAYKxs1F1JmdlqbhltDH/NjxEMbfOKPbCNtiG25shb2qoUaH6BOWD6A+RXHt/iymskKXYNzux45w2RhDcuGDz81HndaTElsIeFrN46yxSKflkd188mbPiDPQz0uauFTBHXg2YImje4U92UEcbxPOzkTFU5Xpg5utsvcXtRIR9suvY5YXzWgwPdFxkP7TjvQx7UNOfWjJRX0ITsxuo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3823.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(6916009)(66476007)(53546011)(26005)(21480400003)(6512007)(8936002)(83380400001)(66556008)(66946007)(6506007)(316002)(54906003)(4326008)(6486002)(38100700002)(508600001)(86362001)(2616005)(8676002)(7416002)(235185007)(5660300002)(186003)(36756003)(33656002)(2906002)(45980500001)(72826004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?cyrPS4zvkTXM0tAZ68/detitRpdhXJeCrXVXe41m+AnqvylXIq2wHOlJN5pR?= =?us-ascii?Q?5fiWUbJdMEW3EaK7aoHFhplRHgsBXeRO3CrBwqwW9m8ub6lTXhMBJQ5XG5dO?= =?us-ascii?Q?x/Bg8Y8Ft2NPmaIvkKM7BH6e4g9bN69qTGyUX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Rr1wYAwFJnCyx9BlTIhAI/4nwNTOJQANUbZi1xBEgAW1wI6WZ11Co+?= =?us-ascii?Q?2rJTB/yMvmiNF6B2JfSjCpdanwFkeWTcELOpgTldvh5/EmqMEJXoeY0YZgVd?= =?us-ascii?Q?jpt36LqS2temkbvTl55nqR3tAFPO11F3eTnFtjTEOgAJOiwv72n2e95fOuWk?= =?us-ascii?Q?2RkiGL+xogkajy32ymMOVkusLMZWuPutYXTo61tf+bLryMWfeZXTDs1a/vJc?= =?us-ascii?Q?idr9FF/1bVzmNXsYHiQ45ASm/APMvoCWmNu28vmjOm54xBgwKeIeYpsNtYs9?= =?us-ascii?Q?F/+lgJ0pAuHIga+2H/C+DmtyMYlp4N/ILtr+71qRnA26Bcs5Lvtmk9WbZJMi?= =?us-ascii?Q?Yt+Zhs4nB/fLqwT+CYDi+9T6vcbJucYS3Ros+tP1K77WUpxj31EZi2NCv5QC?= =?us-ascii?Q?VWRoJ1AG6/hqgfPmtJf6uZVSSLE2mGXHzOjaaDjQbkCpm+pzVC5WTSwQ6nyH?= =?us-ascii?Q?hKnr42ym6XJ5RHiAIIhubeB74bS1gabArnyK3LEQ6t6oy1uHXG3OBpzWk+kK?= =?us-ascii?Q?hopUAEh9xGJT4pXpFfXcaqeNUqYAkcQFIE78wDmnsagpJjYNdIJrWItBEtn0?= =?us-ascii?Q?bdFsmK+hBvok68d1v/b/vmI23//C6wQdcyqq558WMsLkc2CZVWmDTXuuivu8?= =?us-ascii?Q?Qs4OcocqBcywjqofNF2WERLFxNUC7pRPnTDNx7VeULrJ8x+qKQobgDAmpbUf?= =?us-ascii?Q?5z9yh7rPjQ=3D=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: afef5d9f-f250-4d62-7282-08da28522116 X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3823.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2022 13:30:43.5769 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 7/EgzbDR66FpLz7Ly3ecN1ROMqD3b416yqqVa3KSaVwChmmXgKRMT10UV2LN/oR2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3008 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 --=_MailMate_0AB0F1C2-2034-487C-BA7A-581A3A5B18CC_= Content-Type: text/plain On 27 Apr 2022, at 9:27, Qian Cai wrote: > On Tue, Apr 26, 2022 at 05:38:58PM -0400, Zi Yan wrote: >> Thanks. Do you mind attaching your config file? I cannot reproduce >> the deadlock locally using my own config. I also see kmemleak_scan >> in the dumped stack, so it must be something else in addition to >> memory online/offline causing the issue. > > Actually, it is one of those *offline* operations, i.e., > > echo 0 > /sys/devices/system/memory/memoryNNN/online > > looping forever which never finish after more than 2-hour. Thank you for the detailed information. I am able to reproduce the issue locally. I will update the patch once I fix the bug. -- Best Regards, Yan, Zi --=_MailMate_0AB0F1C2-2034-487C-BA7A-581A3A5B18CC_= Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJDBAEBCgAtFiEE6rR4j8RuQ2XmaZol4n+egRQHKFQFAmJpRYEPHHppeUBudmlk aWEuY29tAAoJEOJ/noEUByhU1BYP/0/PWRYgJrza56Dfa4mGN/ezdRD6aVh3dkVY nCiA6+rK9k47zYKxHgbtPvR8AxHa9NK+hkP5QtK2XRux+Pz+T8GkYZhrNX4PpxLz VyWyijsCZpj7Hq4YgJX2xJeQiq3Crj+7oD6ZNyO3Mb7grqm3R1NSTlh71qRNXHSJ qReEA6Soc6z4ur6l1oR8G5gakbog475q8znuiWx/LHiT8/g0wnqs+eK0eEHkeqvJ iueOC2GoqN9gjGiFGr3yQdkgNEhOXi1/vlVkf+0b5NDua8EXIP29N7N65p7FHE00 nBi+GdejduxozkExojM8nm6TpltwShSarA0IaNne22ofgb6weAlvgjuFxrm+nq52 D1fGcmAnApNsW/fhaVsN7kbXmbYC1cxuntZNsF6/S9tC3IcTvcda/4GGpn7GPz+L tPKqWp39tpCV6mXr+defK+C+YMH/R0kGaTh48ntf2TAekML7kk1NUIQUVKLD1STE f6SYG7urGUelNRu9a2A0uk4mSjYcHI8kgTW8KwoFSJC4kPeBtw6UaFOTLduxij9D 6mTrwa9e+Q9eqSLB4h2q/vO53OWYUm7wlmZtmTM9ioqJVX4Fed//WFrLyH/munwi j3OPrjMMtFnyC5BBTVrcZhXywPLjqa/veqFQylQZNmD6Z1oEHWd3wK05Nq8WyeWZ xJXs1rNH =5sJ1 -----END PGP SIGNATURE----- --=_MailMate_0AB0F1C2-2034-487C-BA7A-581A3A5B18CC_=--