Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp726979pxb; Fri, 14 Jan 2022 15:07:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWJ0N2Hyw0m+VwSC9M+4puEPs6VSRf5eDxiZN//VYad9Uvcl28bL3g2PLxFOAVlU/G++fP X-Received: by 2002:a17:906:58cc:: with SMTP id e12mr9037014ejs.164.1642201651690; Fri, 14 Jan 2022 15:07:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642201651; cv=none; d=google.com; s=arc-20160816; b=EI+sQ0mPtwdYXG+/R7FGfzT5IP87RVFp+u1RnsTpBgq/eQRrHDsGMuBAZT5idFoKBG gQTSgc6RODQpifaUwF0hQaF/NwC8nbhgodSxnWdQlgSMP0DyWU9tcwnSZpqRIIErAzhc /63SPLfkCIAYzTOqfwL33WU9r4U5kGVAibBhk4CzbGhHeYd41L00U5BxSPt9rRf6XwWy CEvpHgIFGNjnq3noGfNcb78v/KrT5A1FfmTfcNFhiXNC6CqCJz95JFMeqQR0or3o0O9P go0cf3ruoiFAmFQE9OVbliO6S7nYmfRJj/oLTqTbNTHlbhs+LaBzfYFyOwFufktFcaQc e8HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vwcJEe7KVEoEeL5xGFwt3EirY63Q+AX9CFPC0QWO1YE=; b=Dr54PJCxBnopJ6lA+0FU7dYYe7iI57Rt98SniuP9epT2XJ4WQ8cx87Cysxy/+lVElR V9FXfDKnCa1TvuK16v7l7Tn5tOKw/dtKG5+ts22EMtUewgN/R3cAos+Z1weGynfqy3xz 5IxaMUh3FKFYHawaaIn7CQf1M8gc78kAdCpEoUvYJaVhxTjWZEqTRAkqKmy2c20gJobJ RCuAr+V6OGXroxkYPpsSoHdrW5+4d8NybOMuiaZw531a1XHs1mckxsE1U4GxGtUQsrHJ MvMTL7a66Yr1iCB0+kpkadwn/k7zXAcyGB7mahiBZKkWEiChJzQ8AEitG/3RctsLAFoX 01Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=BMCw4it2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g26si2212029edr.269.2022.01.14.15.07.06; Fri, 14 Jan 2022 15:07:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=BMCw4it2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240009AbiANUus (ORCPT + 99 others); Fri, 14 Jan 2022 15:50:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240439AbiANUur (ORCPT ); Fri, 14 Jan 2022 15:50:47 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0C95C061574 for ; Fri, 14 Jan 2022 12:50:46 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gtucker) with ESMTPSA id AA3581F46833 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1642193444; bh=/D7GORu6+Vj+1KmZAnbEE304v+0UWWC1Oq7u9QgdQzA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=BMCw4it2vZ4nN8L0JwG8cLk1mSxrK+5FeZnyTqaclJoEL+rlod67zvjkGlsqdfjde +/jXsP8GSoC8rRj7aAfUyd6A++kQ9MElfn03bCXH8cN4C/+ewozoR3L/6XTh6NG1Ex Gm9hBEsxtt+5ZM8LSSLLkbzR2iN9wVLqVTY0/4aioNjWvUNBeMcKpSMT1Pd9gHCjMb WYcT5vpTsyiwo2HxLJRdVwdnoedCndwAIaNXTOcAnAN+ZUFCLYpGJ7lBcUYCqwR37G lq+lH7J/+k9Oklsn0sf0dKxlQMfRJm+DYx9c42qMtB4cc5hT5p+LGgbm9n2PQUydzt CxEdPLXtmgrVw== Message-ID: Date: Fri, 14 Jan 2022 20:50:42 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: [PATCH] mm/page_isolation: unset migratetype directly for non Buddy page Content-Language: en-US To: Chen Wandun , akpm@linux-foundation.org, vbabka@suse.cz, iamjoonsoo.kim@lge.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: wangkefeng.wang@huawei.com, "kernelci@groups.io" References: <20211229033649.2760586-1-chenwandun@huawei.com> From: Guillaume Tucker In-Reply-To: <20211229033649.2760586-1-chenwandun@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chen, Please see the bisection report below about a boot failure on Meson arm64 platforms as well as QEMU when enabling 64K pages. Reports aren't automatically sent to the public while we're trialing new bisection features on kernelci.org but this one looks valid. Some more details can be found here: QEMU: https://linux.kernelci.org/test/case/id/61dfcaa1dee57d03ffef673e/ ODROID-N2: https://linux.kernelci.org/test/case/id/61dfc93ac88e282ca8ef676b/ Here's a sample log showing some OOM errors before hitting a kernel panic: https://storage.kernelci.org/next/master/next-20220113/arm64/defconfig+config_arm64_64k_pages=y/gcc-10/lab-baylibre/baseline-meson-g12b-odroid-n2.html <4>[ 24.666707] Out of memory and no killable processes... <0>[ 24.672056] Kernel panic - not syncing: System is deadlocked on memory Please let us know if you need any help to debug this issue or if you have a fix to try. Best wishes, Guillaume GitHub: https://github.com/kernelci/kernelci-project/issues/91 ------------------------------------------------------------------------------- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This automated bisection report was sent to you on the basis * * that you may be involved with the breaking commit it has * * found. No manual investigation has been done to verify it, * * and the root cause of the problem may be somewhere else. * * * * If you do send a fix, please include this trailer: * * Reported-by: "kernelci.org bot" * * * * Hope this helps! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * next/master bisection: baseline.login on meson-g12b-odroid-n2 Summary: Start: 27c9d5b3c24a Add linux-next specific files for 20220113 Plain log: https://storage.kernelci.org/next/master/next-20220113/arm64/defconfig+CONFIG_ARM64_64K_PAGES=y/gcc-10/lab-baylibre/baseline-meson-g12b-odroid-n2.txt HTML log: https://storage.kernelci.org/next/master/next-20220113/arm64/defconfig+CONFIG_ARM64_64K_PAGES=y/gcc-10/lab-baylibre/baseline-meson-g12b-odroid-n2.html Result: 075782149abf mm/page_isolation: unset migratetype directly for non Buddy page Checks: revert: PASS verify: PASS Parameters: Tree: next URL: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git Branch: master Target: meson-g12b-odroid-n2 CPU arch: arm64 Lab: lab-baylibre Compiler: gcc-10 Config: defconfig+CONFIG_ARM64_64K_PAGES=y Test case: baseline.login Breaking commit found: ------------------------------------------------------------------------------- commit 075782149abff45ee22f27315eced44d02b96779 Author: Chen Wandun Date: Thu Dec 30 20:28:40 2021 +1100 mm/page_isolation: unset migratetype directly for non Buddy page On 29/12/2021 03:36, Chen Wandun wrote: > There is no need to try to move_freepages_block for pages that is not > in buddy in function unset_migratetype_isolate, it can directly set > migrate type. > > It will save a few cpu cycles for some situations such as cma and > hugetlb when allocating continue pages, in these situation function > alloc_contig_pages will be called. > > alloc_contig_pages > __alloc_contig_migrate_range > isolate_freepages_range ==> pages has been remove from buddy > undo_isolate_page_range > unset_migratetype_isolate ==> can directly set migratetype > > Fixes: 3c605096d315 ("mm/page_alloc: restrict max order of merging on isolated pageblock") > Signed-off-by: Chen Wandun > --- > mm/page_isolation.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/page_isolation.c b/mm/page_isolation.c > index f67c4c70f17f..6a0ddda6b3c5 100644 > --- a/mm/page_isolation.c > +++ b/mm/page_isolation.c > @@ -115,7 +115,7 @@ static void unset_migratetype_isolate(struct page *page, unsigned migratetype) > * onlining - just onlined memory won't immediately be considered for > * allocation. > */ > - if (!isolated_page) { > + if (!isolated_page && PageBuddy(page)) { > nr_pages = move_freepages_block(zone, page, migratetype, NULL); > __mod_zone_freepage_state(zone, nr_pages, migratetype); > } Git bisection log: ------------------------------------------------------------------------------- git bisect start # good: [81ff0be4b9e3bcfee022d71cf89d72f7e2ed41ba] Merge tag 'spdx-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/spdx git bisect good 81ff0be4b9e3bcfee022d71cf89d72f7e2ed41ba # bad: [27c9d5b3c24af29de643533984f1ba3e650c7c78] Add linux-next specific files for 20220113 git bisect bad 27c9d5b3c24af29de643533984f1ba3e650c7c78 # good: [cf9e126911a1438ff36588f548a4137fe149d86c] Merge branch 'for-next' of git://git.kernel.dk/linux-block.git git bisect good cf9e126911a1438ff36588f548a4137fe149d86c # good: [05333947ad98119466c1bba228de30ab30aefa3f] Merge branch 'char-misc-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git git bisect good 05333947ad98119466c1bba228de30ab30aefa3f # good: [2f978ceb8fee3221c479d0caffcd296ff58f058d] Merge branch 'hyperv-next' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git git bisect good 2f978ceb8fee3221c479d0caffcd296ff58f058d # bad: [d2bcbbe9073423477e7552a440e46f29a2ba0c55] panic: Remove oops_id. git bisect bad d2bcbbe9073423477e7552a440e46f29a2ba0c55 # good: [fd4eb4516f5a2cc80d9ccff05900a3ff29bf4515] selftests/uffd: allow EINTR/EAGAIN git bisect good fd4eb4516f5a2cc80d9ccff05900a3ff29bf4515 # bad: [98f4df2922a74f2369cf86b2df0375994766cdfe] mm/damon/reclaim: provide reclamation statistics git bisect bad 98f4df2922a74f2369cf86b2df0375994766cdfe # bad: [0212633f011d67bc1afe1b3611d9f61e4709c5b8] zsmalloc: introduce obj_allocated git bisect bad 0212633f011d67bc1afe1b3611d9f61e4709c5b8 # bad: [34db36a7fab0af966a28cca95f2e08e89b33e700] mm/migrate: move node demotion code to near its user git bisect bad 34db36a7fab0af966a28cca95f2e08e89b33e700 # bad: [a85e687fe7e5932b641d3abf99f66f3d57023850] mm/mempolicy: fix all kernel-doc warnings git bisect bad a85e687fe7e5932b641d3abf99f66f3d57023850 # bad: [ed68b8bb2a653a1bedc8e1607a050e4200a75ebc] mm/mempolicy: add set_mempolicy_home_node syscall git bisect bad ed68b8bb2a653a1bedc8e1607a050e4200a75ebc # bad: [075782149abff45ee22f27315eced44d02b96779] mm/page_isolation: unset migratetype directly for non Buddy page git bisect bad 075782149abff45ee22f27315eced44d02b96779 # good: [918650729924a97d11b38a38199c6ef96bcf9a73] vmscan: make drop_slab_node static git bisect good 918650729924a97d11b38a38199c6ef96bcf9a73 # first bad commit: [075782149abff45ee22f27315eced44d02b96779] mm/page_isolation: unset migratetype directly for non Buddy page -------------------------------------------------------------------------------