Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp2176623lfo; Fri, 20 May 2022 16:33:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHaeX5jH0G3sP92nDx03v2YQ17S1H4YzkgIMmVJKE5ePy5yvE3Q+89eAwl0n8dFanMLWIj X-Received: by 2002:a17:906:d54e:b0:6f6:3ea:8e7b with SMTP id cr14-20020a170906d54e00b006f603ea8e7bmr10750284ejc.292.1653089618678; Fri, 20 May 2022 16:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653089618; cv=none; d=google.com; s=arc-20160816; b=PXn1g/+rZqAQSJO6+BTdQOwPpCRYWrT4OoLRCN6ip6ntWvfmG6hfAMngSC2tAkxReA S/KXlcDqfqRweGsV4a9NLMsePdiP3qT51l4v4WefLoylb4rLF917zVGth+N6Nx6ALx5U ua1FrQqho0arrrAFd0bVRsGvqMPNrn3Yee5EegCeQ/FiD0XdNClpe1TjY+YTvHDRUo6U IxfdYkVMsEnsKxYURR+IETS+0ecnXCJyWrIp3bBXBcWnq7tpyOSSRpwsNPE678n8ltWj KrytzEfYVnLp+YPIBMy+DXbDvv0JmR6t9ieqSKrYyYg7Di7cq40nu9jnWaFTwMI5u/BE g3xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=u0Oy9BNZh8dXJmknsxZwwxQLExu6lgBD77SlAD1vJO8=; b=GaBXmg22VQsn/7Dln6F0EOqjpLLmfso4Ymi97/nPrAY711hY9GvjGrHzEgRxIvZ4hC HqXhN4ZwsiHk/Ydj89/wPIOKLEzcgpus3/EcxqhGVX5v9DCOgdlyWf8oSko6nX/5WDG2 3XVsm+Vo4fRdLys5tciL18URPIyeEoAo4FReY8BtmT0BV3Yg4pN+mh2/joFrOntSbkKN SRBqNCvAvhiaz9Pn9cQRuM9IfW3fk3Wqc03En9Mru1W4/ACi+DM4XHa22EGKmgTHMQp5 M8+bDk/iu2CgNm5SXN0SCP/AZbYcqJOEyHgwrgq6FrEx19h49Hu/hXoeuLyvTPP94OKv CJDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=vxdx+VWy; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gl1-20020a1709073c8100b006feba2fff4dsi905642ejc.840.2022.05.20.16.33.12; Fri, 20 May 2022 16:33:38 -0700 (PDT) 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=@quicinc.com header.s=qcdkim header.b=vxdx+VWy; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244925AbiESU6H (ORCPT + 99 others); Thu, 19 May 2022 16:58:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244902AbiESU6C (ORCPT ); Thu, 19 May 2022 16:58:02 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37B41EC3D1 for ; Thu, 19 May 2022 13:58:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1652993880; x=1684529880; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=u0Oy9BNZh8dXJmknsxZwwxQLExu6lgBD77SlAD1vJO8=; b=vxdx+VWy9SsfWcHsctIt+ru159asf4YzuE0XWKWB09c0G8tgCvCsxrH5 WWR0xFhHqpk1FVy6DzEXz+u/TD87Y9xr8lbenOpEwSe5+wQR4kMFG2jrc RwvwWmrzk+VZFGny0DIk+zGVbRoLpNVKRnV37LVFzmKU+/tyXJpkJiaez o=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-02.qualcomm.com with ESMTP; 19 May 2022 13:57:59 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2022 13:57:59 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 19 May 2022 13:57:59 -0700 Received: from qian (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 19 May 2022 13:57:57 -0700 Date: Thu, 19 May 2022 16:57:55 -0400 From: Qian Cai To: Zi Yan CC: David Hildenbrand , , , , 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. Message-ID: References: <20220425143118.2850746-1-zi.yan@sent.com> <20220426201855.GA1014@qian> <20220426210801.GA1038@qian> <2B9844C8-6D35-41E2-ACB2-9854E7A9C29F@nvidia.com> <20220427132720.GC71@qian> <1D88AE1B-4DFC-400F-A054-662E3824C9AF@nvidia.com> <20220428123308.GA71@qian> <0E75B247-8150-48A3-83AE-56C586030006@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <0E75B247-8150-48A3-83AE-56C586030006@nvidia.com> X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,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 On Thu, Apr 28, 2022 at 08:39:06AM -0400, Zi Yan wrote: > How about the one attached? I can apply it to next-20220428. Let me know > if you are using a different branch. Thanks. Zi, it turns out that the endless loop in isolate_single_pageblock() can still be reproduced on today's linux-next tree by running the reproducer a few times. With this debug patch applied, it keeps printing the same values. --- a/mm/page_isolation.c +++ b/mm/page_isolation.c @@ -399,6 +399,8 @@ static int isolate_single_pageblock(unsigned long boundary_pfn, gfp_t gfp_flags, }; INIT_LIST_HEAD(&cc.migratepages); + printk_ratelimited("KK stucked pfn=%lu head_pfn=%lu nr_pages=%lu boundary_pfn=%lu\n", pfn, head_pfn, nr_pages, boundary_pfn); ret = __alloc_contig_migrate_range(&cc, head_pfn, head_pfn + nr_pages); isolate_single_pageblock: 179 callbacks suppressed KK stucked pfn=2151120384 head_pfn=2151120384 nr_pages=512 boundary_pfn=2151120896 KK stucked pfn=2151120384 head_pfn=2151120384 nr_pages=512 boundary_pfn=2151120896 KK stucked pfn=2151120384 head_pfn=2151120384 nr_pages=512 boundary_pfn=2151120896 KK stucked pfn=2151120384 head_pfn=2151120384 nr_pages=512 boundary_pfn=2151120896 KK stucked pfn=2151120384 head_pfn=2151120384 nr_pages=512 boundary_pfn=2151120896 KK stucked pfn=2151120384 head_pfn=2151120384 nr_pages=512 boundary_pfn=2151120896 KK stucked pfn=2151120384 head_pfn=2151120384 nr_pages=512 boundary_pfn=2151120896 KK stucked pfn=2151120384 head_pfn=2151120384 nr_pages=512 boundary_pfn=2151120896 KK stucked pfn=2151120384 head_pfn=2151120384 nr_pages=512 boundary_pfn=2151120896 KK stucked pfn=2151120384 head_pfn=2151120384 nr_pages=512 boundary_pfn=2151120896