From patchwork Wed Feb 15 15:24:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zheng X-Patchwork-Id: 13141808 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29CC7C636CC for ; Wed, 15 Feb 2023 15:24:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 627D16B0072; Wed, 15 Feb 2023 10:24:29 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5D8976B0073; Wed, 15 Feb 2023 10:24:29 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 49F696B0074; Wed, 15 Feb 2023 10:24:29 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 379FE6B0072 for ; Wed, 15 Feb 2023 10:24:29 -0500 (EST) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 034CF40A7A for ; Wed, 15 Feb 2023 15:24:28 +0000 (UTC) X-FDA: 80469897858.26.A373115 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by imf28.hostedemail.com (Postfix) with ESMTP id 02B19C0010 for ; Wed, 15 Feb 2023 15:24:25 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=yLEs2XLy; spf=pass (imf28.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.216.47 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=none) header.from=bytedance.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1676474667; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=7ChDZzA05xcm0/ZNkR3nCKSD7audyj5A66jkFmfs4d8=; b=iJoDiXPSf+t3uHM+mqcO8Qor70KfluLSM8e8ItyXXPIsPalZXzNDUPdWDPybjtjTXq82We g08u9zDvwpc7KHrpOososneCt8+9VaoIoKKGmFtZ1z6PewiPCDMhZFXYBAgMf1DuRIhyX0 YldDruxSHwRBdUoYsPlomEe+g4Jxs1c= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=yLEs2XLy; spf=pass (imf28.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.216.47 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=none) header.from=bytedance.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1676474667; a=rsa-sha256; cv=none; b=yCJqPJtWERo/ZKuhm2P6nO+zyrhvNdGSxgixrtGxnqKeg9TXKC65pWJFYyWph3KNJ2S5jC LCNSfrM59XCHZdqhiSjqU6dSfjIQURntISQV4E0pyW17cgeEXXPyy56zj1Mov239kJsZf4 4Nd/vEQK8EPF4F+2fSEcKe1WRzfKdHo= Received: by mail-pj1-f47.google.com with SMTP id d2so18437182pjd.5 for ; Wed, 15 Feb 2023 07:24:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; t=1676474664; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7ChDZzA05xcm0/ZNkR3nCKSD7audyj5A66jkFmfs4d8=; b=yLEs2XLyyLIQyBX9kJhyGXQFLvTTHVODzB7wQaKILm+o6Yr0dDoX2ewO5IUD/PxcDL T4C+fwMnNhrqLFlUythIvtY3soGh4e9zffOctzbN1rIBu7axKgEyH445iImwETYzenfs QsMct5QxgRVnQ6rw/FLHmr5WHjCdR6pMUvelD2yn/tPWEKEcooOXvzdYnrqMASZV/Uka uhpXEb0ZwStEc12OL4x52UTdGpptKC33+TGYSYUUFkqnnlNlR2RnOJ39lC4hfb2Na+xW qxTfas6tXekVjFwf8X1Q1zVRYSHrGLRo0GdkDkhgikNQeq6U4VZQum/JQdMKOVB6mIrZ BDQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1676474664; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7ChDZzA05xcm0/ZNkR3nCKSD7audyj5A66jkFmfs4d8=; b=DJXEwiz5av95SjmFPuxZ+O8m/k/8FnDUWp0/PmTK7S5iaVz4POCQqpzIsUCSvbBvhq 6MTjpv8A2TCL1y133TvorT5RND7uaAJjTwtFiTv808DlemCMfb4SjR/bbNS5Q5+MyrYY /5nMIyAizrrKIo/ivfmnD99qyFBvFa+gucjJLbQZd4ZgCQC5aBQzdmJ5VPmKXQFtLkYx RgT1NWnTuS8k5mpRalPDjdeR797W44JyauxBYBkVS0N0d2q3H1/3MbHBCqOzUMRQImLH YOKqoiywhQqxDS/gBz7El7mvAmkc9mXFczPGIHHYJqsUztuC7cB6RzcaC5rML/uPNTfh yEag== X-Gm-Message-State: AO0yUKXDhKSTg4sUxOyP4xVLMuGxU2xsdhOnLoofMkkGKepsmbfsioNl ZBKDEYIM7awH21lIZJhSC4TFXA== X-Google-Smtp-Source: AK7set/sEz9TYpPCi4z/Nc1UBcRAV6t/tAeN55ColrML/Tw+taqRhsKQEEDpjSciqcePc0rgoVoW2Q== X-Received: by 2002:a17:902:c40d:b0:19a:84b0:4845 with SMTP id k13-20020a170902c40d00b0019a84b04845mr3233632plk.5.1676474664443; Wed, 15 Feb 2023 07:24:24 -0800 (PST) Received: from localhost.localdomain ([139.177.225.228]) by smtp.gmail.com with ESMTPSA id jh12-20020a170903328c00b0019682e27995sm6176997plb.223.2023.02.15.07.24.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 07:24:23 -0800 (PST) From: Qi Zheng To: akpm@linux-foundation.org, vbabka@suse.cz, david@redhat.com, rppt@kernel.org, mhocko@suse.com Cc: willy@infradead.org, mgorman@techsingularity.net, osalvador@suse.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Qi Zheng Subject: [PATCH 0/2] handle memoryless nodes more appropriately Date: Wed, 15 Feb 2023 23:24:10 +0800 Message-Id: <20230215152412.13368-1-zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 02B19C0010 X-Stat-Signature: aezurnmyy8too7hq9mr4ps8do3yuq3rd X-Rspam-User: X-HE-Tag: 1676474665-824839 X-HE-Meta: U2FsdGVkX19sZzEiXCaEncjccnLHPMDs0i1iZhLNcS5/kGyrHkXVOSkwyD7V8buuun80ohjx8LNrqJbFf779aqwKDbGVt++Qx0r4b3ujpD3pIIxN6LIBNJC5wKmEcH9otRhqhGiu6VgtfoeDcFOGgHVmYHkg1eXlAvdoWc9MuCjHLAEpm2xqkQcekceHXun91uROoZYx3H2fzFoZtn2ZVn/siEc0WmbjXFZ2bN/mWb1ZHEM0lQj4FtyqrMePBtA3NEpsel7jKFvLO931fjBK8wz/R1UlcERtIGdW+5mJhooVBxOCGXBnDinZkzrdgNzTFDVYZIbYWhtP4cUHbq7n59qRnyyBgBXpEIF2pzg8jzE9Ci4fbtp7EevTaEv5EKFADcTHI+uu8rCoRAYcvCxKgsOX5Pkk//cuF0QCHXYEykQiTi+gL1qwdAuYnoYZeB/HqgKjlQgj05k/6vGrjdIp2IEMjaLH44zX8Or4O+PnGDCXKDxrjRroZnIP/N3Vcq25c86mUD5QT/qrcthWg94AcYIZ+yzPJaRq0R0lYHoRLrL61kofk4Zhb67VKPA2KRI+mjsC+crymDQ4uavHK0SUsng9VJNHp8JcMXc+6VjQccDfW4eVVHgvcsUhMhEpmTNC+XkeXnlVNz6G5rFB8js4J7PYE1xokjLFErCNuETtBDP1jMA9KYegwukriuFJZYrrQolpOmszU2Z1Hcd1fu0dqWdQsEVZR3mBikj5TRcPQ5gnrdKA41pXJSRftgmlLhP7b9mwPuOkLtAxjy7HZpUntzBCdBGSMk8jwbiOw96t1lB6iKEqF7nMQyuyNBYzmbr/MPCmKi7/ehYEC9zyMdPy00bJ9RuUWy5U01l/pXMqB737bIkVOpL1gAsYqJwLoc8IsJI2t+dSBxuqoXIDALC0ikHEpQQkBSsscy8D4+z7ALSgbrrs3+QAtfSgUGH2iWasLjL1MeD+K1+h3AqpXJs VqJFYIGr 9u7CUtD8piw3hGqxXu4KNgCNH3RIuddLutKtehgEhUeQOqexBoaUXtEHSfCOlVUC/LNWGLPsF50uazhexocjuorl5AZ3mxmZ9k08ky043QJ43tJTju6oZH9aV2jUnxVGPfgsiv244ggpQ5yWwU60QxKHI8g4KWWm/Bh/o45WNXYR9IN169Ar48hbG1V4EG8yfCd+Oh0ztFTXZfsmcYrl77BKes/SppwgIwMG9Hx0bw5j1+vXmAjxpaClolpXv9Dp3N8r1Iriu6qm1xLv3gTNr3JlCwD4v573G5A3/5kTJ57/qlxXP937lkjEeTb38g0f5BZ1+TI6jhDSp7JpjUsQeMyCI3HsjwjUhjwiL4wKUkwirqjXshtV8bGALWB6pQcxqNL8evrEVSNxsPSVqIKQxEIYsiGT8dVIcDQEraWlEchBceZQ= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi all, Currently, in the process of initialization or offline memory, memoryless nodes will still be built into the fallback list of itself or other nodes. This is not what we expected, so this patch series removes memoryless nodes from the fallback list entirely. Comments and suggestions are welcome. Thanks, Qi Qi Zheng (2): mm: page_alloc: skip memoryless nodes entirely mm: memory_hotplug: drop memoryless node from fallback lists mm/memory_hotplug.c | 2 +- mm/page_alloc.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-)